Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to mailmerge jpg to winword for print ?
Message
 
 
À
01/11/2001 23:02:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00576564
Message ID:
00576620
Vues:
15
Hi!

Prepare the document, then open it through OLE automation:

oWord=createobject("Word.Application")
.....

After you have an object to Word application, using its objects methods and properties you can manipulate document and its content, open document, print it etc.

To know how to do certain thing by commands without searching through HELP file for the entire objects modelf or Word, just record a macro. For example, in your case, record a macro for inserting JPG image into the document. then opem Word Basci editor and see VB code for that. It is not a problem to convert that code into VFP to call objects and methods from VFP code using the OLE Automation object created by the mentioned way.

HTH.

>is it possible to pass the jpg file name from foxpro into winword for printing ?
>if not, how can i do that ?
>
>Thanks
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform