Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count word pages
Message
De
05/04/2007 11:33:16
 
 
À
05/04/2007 11:07:17
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01212518
Message ID:
01212537
Vues:
19
This message has been marked as the solution to the initial question of the thread.
>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)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform