Printing files
Printing files
I know it is possible to print a file using ShellExecute() but it prints to the default printer.
There is a way to redirect the print to another printer ?
I need to print various types of files to a specified printer (doc rtf pdf ecc.)
There is a way to redirect the print to another printer ?
I need to print various types of files to a specified printer (doc rtf pdf ecc.)
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Printing files
Use SetPrintDefault() function just before calling ShellExecute().
EMG
EMG
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
On one PC *only* I have this problem:
though I have set wordpad as the standard app to open rtf files, when I issue the ShellExecute(0,"PrintTo",cMyDoc,cMyPrinter0,0) statement, the document is printed using MsWord
If I double-click the rtf file, then WordPad is used
Normally the application used to open the file is the same that is used to print it. How can I force printing using WordPad ?
Roberto
though I have set wordpad as the standard app to open rtf files, when I issue the ShellExecute(0,"PrintTo",cMyDoc,cMyPrinter0,0) statement, the document is printed using MsWord
If I double-click the rtf file, then WordPad is used
Normally the application used to open the file is the same that is used to print it. How can I force printing using WordPad ?
Roberto
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: