Printing......

Posted by SarahHoalding on May 16, 2001

Hi guys... could someone tell me whether it's possible to print from delphi code???
I have file called DataBase.doc and i want to know how to print to a network printer (would this be the same as a regular printer??) this document.

Sarah.

Re: Jean Claude Servaye on May 17, 2001

ShellExecute(0, 'Print', 'C:\my documents\CV jc.doc', nil, nil, SW_NORMAL);


Re: Re: SarahHoalding on May 19, 2001

Great stuff JCS :) that worked like a charm. I haven't been programming in Delphi for long. Could you explain simply what the '0', 'nil', 'nil' and 'SW_NORMAL' are doing please?