|
-
Mar 6th, 2011, 09:45 PM
#1
Thread Starter
Hyperactive Member
[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
-
Mar 7th, 2011, 07:52 AM
#2
Re: Create a printer driver to print to a text file
-
Mar 7th, 2011, 11:53 PM
#3
Thread Starter
Hyperactive Member
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.
-
Mar 8th, 2011, 02:19 AM
#4
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"?
-
Mar 8th, 2011, 06:09 AM
#5
Re: Create a printer driver to print to a text file
 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.
-
Mar 8th, 2011, 08:52 AM
#6
Thread Starter
Hyperactive Member
Re: Create a printer driver to print to a text file
 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
-
Mar 8th, 2011, 09:08 AM
#7
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|