-
Printing
I've a problem with printing.
I've given printing option in my DB application which retireves records from the DB and sends then in custom format to the default printer via the printer object. I've alos give a printer setup option screen, where the user selects the default printer, using the commondialog control's showprinter method.
All I want to do now is to print to a file instad of a printer. I saw an option in the print setup screen labled Print To File. i ant to trap thias parameter and send the print data to a file instead of printer. Just like any other application does when this parameter is checked.
Pls. help me out of this.
Thanx in Advance
-
i also wanted to know how to generate a .prn file from my application. AS it does in MsWord or any other application when print command is given and the print to file is selected then it immediately asks for a prn file name and writes all the data inot the file instead of to the printer. then at a later stage i can print the prn file using the copy command.
How do I incorporate this into my application ie., generation of a .prn file etc...