[RESOLVED] Create a printer driver to print to a text file
Hello,
I need to create a driver that can be installed as a printer and instead of printing to a physical printer it needs to print to a text file. I have no idea how to do this. I have searched for an answer on these forums but so far I haven't had much luck. I know it isn't easy to create a driver in VB but I don't know if this is technically a "driver" since it isn't interfacing with actual hardware. Any help with this would be greatly appreciated.
-Dan
Re: Create a printer driver to print to a text file
Re: Create a printer driver to print to a text file
Those links didn't really help because they just told me you couldn't do it. But there is a program out there called PDFcreator that is a PDF printer and it is written in vb. i just need to know how to do it so it writes a .txt instead of a PDF.
Re: Create a printer driver to print to a text file
Are you trying to create a textfile? Why don't you save it like "yourfile.txt"?
Re: Create a printer driver to print to a text file
Quote:
Originally Posted by
bagstoper
Those links didn't really help because they just told me you couldn't do it. But there is a program out there called PDFcreator that is a PDF printer and it is written in vb. i just need to know how to do it so it writes a .txt instead of a PDF.
I don't think its feasible to write code in vb.net for printer driver.:confused:
Re: Create a printer driver to print to a text file
Quote:
Originally Posted by
Radjesh Klauke
Are you trying to create a textfile? Why don't you save it like "yourfile.txt"?
Well i would do that but the program that i need to get the file from cant save or export files, it can only print files. So i need to build a virtual printer that can save the file to the hard drive. I cant modify the original program to allow exporting or saving because it is not mine.
Posted from my ipod touch
Re: Create a printer driver to print to a text file
Can you select a certain Windows printer?
You can try then to add a printer with the name "Generic/Text only"
Select this printer and choose option "Print to file".
I must say however that this file contain some white spaces, but perhaps it will help you.