Using printer object in Visual Basic, how will i generate the output into a disk file.can some body help me out of this.
Thanks in advance
Printable View
Using printer object in Visual Basic, how will i generate the output into a disk file.can some body help me out of this.
Thanks in advance
Where will the output come from? A text box? A Db table? A Recordset? If all you want to do is create a text file on disk, you don't need to use the Printer Object.
It should work if you set the port of the printer which the printer object will be using, to FILE: in Start-Printers. It'll ask you for the file name when you print to it.
Hack, I'm guessing he needs a print-formatted file as opposed to a text file, ie with control codes etc; perhaps for later lpr-ing to a printer or something.