Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set Word OLE PrintOut properties

Status
Not open for further replies.

dba2

Programmer
May 23, 2002
16
GB
Can anyone help please. I am using automation with Variants to interface with MS Word and I need to change the default PrintOut Property settings for 'PrintToFile' and 'OutputFileName'. If I call the PrintOut procedure with vMyDoc.OleProcedure("PrintOut") it obviously takes the default printer settings. How do I change the properties prior to calling PrintOut, only I don't understand the structure of 'eolProcedure(const AnsiString &name, P1 p1, P2 p2' etc. Should I be using this with Exec()? I cannot find any reference on the internet so any help would be appreciated.

Regards, David Aston
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top