Kbase P38280: ACTIVEX - How to know the number of pages in a MS Word document?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/15/2008 |
|
Status: Verified
GOAL:
How to know the number of pages in a MS Word document?
FIX:
DEFINE VARIABLE chWordApplication AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" chWordApplication.
chWordApplication:Documents:OPEN ("C:\Document1.doc").
MESSAGE chWordApplication:selection:information(4) VIEW-AS ALERT-BOX.
chWordApplication:QUIT.
RELEASE OBJECT chWordApplication.