Solved

Automating the Generic / Text Only Printer Driver

Posted on 2006-10-28
16
878 Views
Last Modified: 2007-12-19
I need to print to a text file in WinXP.  The Generic Text Only printer driver works great, but it always asks for a file name.  I'd like it to either create some new file with an automatically generated name or append to a single file.  

Or maybe there is other software out there?  I tried miraplacid, but just couldn't get it to work.

I also saw this solution, but I don't have the time to program steps 2 or 3
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/VB_Controls/Q_21142139.html?query=printer+%22generic%2Ftext+only%22+prompt&clearTAFilter=true
0
Comment
Question by:spathiphylum
  • 7
  • 6
  • 2
16 Comments
 
LVL 38

Assisted Solution

by:hdhondt
hdhondt earned 150 total points
ID: 17831531
It's easy to have it automatically print to a preset file name. Under the Ports tab in printer Porperties, click on Add Port. Select a Local Port as the type, and click on New Port. For the Port name, enter a fully qualified file name, e.g. c:\temp\test.txt

Unfortunately, if you want a different file name each time, or want to append to the same file, this will not help you. I don't know of a simple way to do this. Of course, a It's easy to have it automaticaally print to a preset file name. Under the Ports tab in printer Porperties, click on New Port. Selct a Local Port as the type, and click on Add Port. For the Port name, enter a fully qualified file name, e.g. c:\temp\test.txt

Unfortunately, if you want a different file name each time, or want to append to the same file, this will not help you. Of course, a VB script could be written...
0
 

Author Comment

by:spathiphylum
ID: 17831618
ok.  how would i do the VB script?
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 17831807
You've got me there - that's way outside my expertise. You could ask the experts in the Programming TA.

Ask a moderator to move your question. If you do need automatic file name creation, or appending, then my answer is not what you want, but it may point a programmer in the right direction.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 38

Expert Comment

by:hdhondt
ID: 17839998
Or you can create a 20 point "pointer" question in the Programming TA, pointing to the url of this one ( http://www.experts-exchange.com/Hardware/Printers/Q_22041005.html ).
0
 
LVL 8

Accepted Solution

by:
thoffman earned 350 total points
ID: 17900401
You can use hdhondt's suggestion, then use a utility that monitors your folder for new files and renames/copies them as they appear. There are plenty of shareware and freeware apps that will do this. This Google might get you started.

http://www.google.com/search?hl=en&lr=&c2coff=1&q=folder+monitor
0
 

Author Comment

by:spathiphylum
ID: 17900476
oh that sounds like a good idea.  i will try that next week
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 17904937
You're right, thoffman, that could do the trick without any fancy programming.
0
 

Author Comment

by:spathiphylum
ID: 17907002
well actually i couldn't get that to work -- i used foldmonkey but it doesn't grab/rename the file quick enough before the second one gets printed on multi-page documents, they always get overwritten by the last page
0
 
LVL 8

Expert Comment

by:thoffman
ID: 17942668
What application are you using? A multi-page document should show up as a single job, not multiple jobs.
0
 

Author Comment

by:spathiphylum
ID: 17943037
yeah, you would think, but this application prints out each page individually
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 17945441
That does not sound like a Windows application. Is this an in-house app? In that case you may be able to change it so it a creates a different file each time.
0
 

Author Comment

by:spathiphylum
ID: 17946233
it's a weird third-party application.  we don't have any control over the source code
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 17990969
You can try this application:

http://www.printdistributor.com/

It lets you print to file with file names set by some simple rules, which can include username, date, etc. Even a unique serial number can be added, so it should have no problems with pages generated one after the other. It's available for 30 day trial, and the price seems reasonable: $149

Note that I have not tried this...
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 18097876
Hi spathiphylum

Any luck with Print Distributor?
0
 

Author Comment

by:spathiphylum
ID: 18101766
No.  Those programs handle the rules fine, but don't duplicate the Generic / Text Only Printer functionality.  They have a "Print to File" option, but this just puts out a bunch of binary junk.

Here's what I ended up doing:

1.  Setting up FoldMonkey to move the files automatically to a different directory
2.  Print to the Generic / Text Only printer driver, and when prompted for a file name, just type "1", "2" for the next page, and so on

It's not so bad because usually by the time it's ready to print the second page, the first one has already been moved / renamed by FoldMonkey so I keep my fingers on the 1 and 2 keys.  Still ugly, but I guess there's not really a good solution
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question