Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening a pdf in word automation
Message
De
16/03/2016 12:05:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Opening a pdf in word automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01633179
Message ID:
01633179
Vues:
70
[Update]
I figured it out
oDoc= .documents.OPEN(cfname,.F.,.T.,.F.)
------------------------------------







I can open pdfs in word using aotomation
but this dialog comes up and i don't know how to suppress it.
all I need is to get the content into a memo field i dont need to save or edit the document
x1= "P:\Executive1\SPEECHES - REMARKS\Press Release - GO Bond Sale  10-4-12.pdf"

*SET STEP ON 


LOCAL o as word.application
oWord=CREATEOBJECT("Word.Application")
oWord.visible = .t.
oWord.DisplayAlerts = .T.

oDoc=oWord.Documents.Open(x1)
Peter Cortiel
Répondre
Fil
Voir

Click here to load this message in the networking platform