473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Capture text sent to a printer to a file.

Does any one know how to caputer text data sent to a printer to a file. I
have seen a window service that captures text data sent to a printer on the
server and save it to a file. I would like to know how to do this. I have
many reports that are produced on an IBM mainframe as text that I would like
to send to a Windows' sever as printer output but capture to a text file.
Currently we use an FTP process and a print to printer would reduce new
report setup time by a few hours each and reduce the mess.

Thansk,
--
John Graves
Mar 19 '08 #1
1 6024
On Wed, 19 Mar 2008 05:43:00 -0700, John Graves
<Jo********@discussions.microsoft.comwrote:
If this is not the right newsgroup do you know what one I should use?
I'm sure I have no idea, sorry.
I can control printer driver on the server that will be receiving the
text
file from the mainframe.
But can you control how the mainframe uses the printer driver? That is,
can you require that the mainframe print to the text printer driver?
I have setup a pcl and text only printer on the server and ran test
from
the mainframe.
The reports are sent to the server and appear as *.SHD and *.SPL in the
windows spool directory.
This is true for the pcl and text (they are in EMF format).

I would like to write a .NET c# windows service on this server to
convert
these files from EMF to text and then
remove them from the spooler the correct way.

Any references about controling the spooler would be appreciated.
I'm sorry, but I don't have any. If you want access to those files,
you'll need to hook into the spooler somehow, because otherwise they could
appear and disappear before you get a chance to look at them. Parsing the
EMF to extract any text should be relatively simple, but you need reliable
access to the EMF.

Just from your description so far, it seems like the easiest thing would
be just to print to the text driver, which already should emit the results
to a file. Then you can just get that text file rather than messing
around with the spooler.

Other than that, I don't have any specialized knowledge in the area you're
asking about. So if you have other questions that you really want to post
here, someone else will have to answer them. If you get an answer,
great...but if not, you should really reconsider my advice that this isn't
a great place for the question. You'd be better off finding a forum where
there's more expertise on the topic, so that you have a better chance of
getting a useful answer.

Pete
Mar 19 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Larry Cheung | last post by:
I want to write a program to monitor each local printer When a print job is sending to a printer this program could be fired and capture the printed content as an image. It is easy to use API...
7
by: MouseHart | last post by:
I have written a small VB program which lists my music files on my computer, but I can't get it to print exactly the way I want it to. The data is viewed on screen in an MSFlexGrid named...
0
by: JerryB | last post by:
i am looking for a way to capture some data from a web DB that is set up to only allow a user to view one page of a query at a time or to print the entire query. i don't want to print and retype...
2
by: Salad | last post by:
It's been years since I captured printer output, basically I've forgotten how to do it. Can you refresh my brain and let me know how it's done if it can be done in Access? I don't want the...
2
by: Benny | last post by:
Hello Experts, Currently I working on a web application using vs.net with C#. I require to create an invoice to a text file and print the file. I have no problem with writing to the text, but...
1
by: Patriicia | last post by:
A legacy application (I don't have the source code for the application) transmits reports to a printer. One of the reports that are sent to the printer needs to be inserted into a database. With...
4
by: jxiang | last post by:
I created a child form that is much bigger than the MDI form in VB.Net. I am trying to capture the whole child form and save as an image or sent to printer. I tried to use BitBlt to capture the...
2
by: Ed Bitzer | last post by:
I can locate tab stops in a RichTextBox but have not found a way to maintain that positioning when I print. At the Knowledge Discovery Keys Site (http://www.kdkeys.net/forums/3122/ShowPost.aspx)...
6
by: Don | last post by:
How can I capture the name of the file a user right clicks in the open file dialog using the common dialog box control? I can capture the name if a file is double clicked, or OPEN is clicked...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.