Re[4]: точнее .BuiltInDocumentProperties(wdPropertyPages)
От: Elena_ Россия  
Дата: 20.05.05 22:03
Оценка:
Здравствуйте, Julia.K, Вы писали:


JK>Смотрела счетчик количества слов — все верно показывает. Не пойму в чем дело...


Может быть, это поможет

MSDN WD2000: BuiltInDocumentProperties Returns Incorrect Page Count Q212653

SYMPTOMS
When you use a macro to insert page breaks in a document and then return a page count by using the BuiltInDocumentProperties property, the number of pages returned may be incorrect.

CAUSE
The document needs to be repaginated before you return the number of pages.

To work around this problem, use the Repaginate method to force document repagination before calling the BuiltInDocumentProperties(wdPropertyPages) property. For example:

   Sub GetNumberOfPages()
      ActiveDocument.Repaginate
      MsgBox ActiveDocument.BuiltInDocumentProperties(wdPropertyPages)
   End Sub

Пользователь — друг программиста!
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.