General information
Category:
COM/DCOM and OLE Automation
>>Is there a way to determine the number of pages in a Word document? I'd like to test the number of pages to see if I need to run a shrink to fit function.
>>
>>Something like:
>>
>>if oWord.numpages > 1
>> oWord.ActiveDocument.FitToPages()
>>endif
>
>
>oWord= CreateObject( "Word.Application" )
>oDoc = oWord.Documents.Open( m.TFILE_NAME )
>lnPageCount = oDoc.ComputeStatistics(2)
THanks Jos
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only