Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to open a WordPerfect Document via OLE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00490919
Message ID:
00490925
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform