Solved

print output to a unique filename in text format

Posted on 2013-12-03
2
487 Views
Last Modified: 2013-12-16
I have a customer that has a program running on a Windows XP machine. It is set up to print out 'counts' of their data every so often. Right now, the only option is to print to a printer so that program is limited to where it can print. We would like to redirect or set up a new printer that would print to a text file with a unique name such as the date and time stamp. We can set up the generic text printer but it always asks for an output file name. we would like that to be automatic.
Is this possible?
0
Comment
Question by:johnny181
2 Comments
 
LVL 14

Expert Comment

by:Ram Balachandran
Comment Utility
Not sure if you can install PDF Creator Software, so that you can select a file to print

NOVA Pdf printer has that option :How to create a PDF file without displaying the Save PDF file as dialog



http://www.novapdf.com/kb/how-to-create-a-pdf-file-without-displaying-the-save-pdf-file-as-dialog-140.html
0
 
LVL 38

Accepted Solution

by:
Herman D'Hondt earned 250 total points
Comment Utility
You can select a fixed filename for the printer output. Go to Printer Properties > Ports. Create a new Local Port. Give it the file name (and path) as the port name, e.g. C:\test\output.txt. That way the output will always be sent to that file.

Now create a batch file that checks for the existence of that file. When it finds it, it changes the name to a one of your liking. Then it waits a few seconds (or whatever time is suitable) before it tries again.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now