Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to mailmerge jpg to winword for print ?
Message
From
02/11/2001 07:13:02
 
 
To
01/11/2001 23:02:14
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00576564
Message ID:
00576620
Views:
14
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform