Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening a pdf in word automation
Message
From
16/03/2016 12:05:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Opening a pdf in word automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01633179
Message ID:
01633179
Views:
71
[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
Reply
Map
View

Click here to load this message in the networking platform