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.comICQ #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.