Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to open a WordPerfect Document via OLE
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00490919
Message ID:
00490925
Views:
26
To create a WordPerfect object use (wordPerfect9):

CREATEOBJECT("WordPerfect.PerfectScript.9")

For WordPerfect8 try
CREATEOBJECT("WordPerfect.PerfectScript.8")

I found WordPerfect8 to be very uncooperative so I went to 9. Using the VB editor in Wordperfect9 I figured out the commands to use for the Automation.

>How can I open a WordPerfect document using Ole in order to grab the first line of text from within the document.
>
>I can do this with a Word document.
>
>1st I tried doing OLE on WordPerfect and it did not work well at all. There are big difference between Word and WordPerfect 8.
>
>
>2nd I tried opening the WordPerfect document using Word. Word will open the document but I can't get this to happen via OLE, it only works interactively.
>
>
>
>I need to be able to have word do this via OLE Automation.
>
>
>Can anyone help???
Ken Wardwell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform