473,375 Members | 1,540 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,375 software developers and data experts.

Intercept Data Sent to Printer and Insert Into Database

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 VB.NET can I intercept items that
are sent to the printer? Can I read what is being sent to
the buffer with VB.NET and save to a file? Please let me
know if this is possible with VB.NET. Should I be using a
memorystream and window services? Please let know if you
have any ideas. I could use all the help that I can get.
Thanks

Nov 20 '05 #1
1 6313
"Patriicia" <tr*******@hotmail.com> wrote in message
news:4d****************************@phx.gbl...
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 VB.NET can I intercept items that
are sent to the printer? Can I read what is being sent to
the buffer with VB.NET and save to a file? Please let me
know if this is possible with VB.NET. Should I be using a
memorystream and window services? Please let know if you
have any ideas. I could use all the help that I can get.


The only *easy* way to do this would be to setup an IP port, then tell the
legacy app to print to that port. Next, you would need to setup a server in
VB to listen on that port, and then pass the data onto the final
destination. So you would be making a mini proxy server, just remember to
pass back any info that may come from the printer.

A better way would be to create a custom port, or to subclass the print
spooler/print messages, but this is beyond me, sorry. I'm sure if you dig
around in the Platform SDK / MSDN library long enough you will find what you
need.

HTH
~
Jeremy

Nov 20 '05 #2

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

Similar topics

0
by: Patricia | 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...
32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
0
by: Raymond | last post by:
Hi Guru, We have a LAN and printer, currently all print tasks are sent to printer directly, now we want to set up a print server with a printer attached to it, all the print tasks will be sent...
1
by: ellipsys | last post by:
- Open Access 2003 - Create new database (2000 or 2002/2003 format) - Create a report and insert a label in its Detail section - Save the report as Report1 - Copy Report1 as Report2 - Open...
0
by: nikolaos | last post by:
Hi all!! i am relatively new to this forum. i am working on a big project in athens greece. it is all about office and vba. basically it is an automated testing software that tests whetther...
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
5
by: Chris | last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL. Meeting info and Meeting docs reside on 2 related tables in the db. Users may want to upload anywhere from 1 to 10 or...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
3
by: =?Utf-8?B?QnJ5YW4=?= | last post by:
I have an application that hosts a web browser control. I would like to detect when ever the browser tries to print a page and rather than print the document, store the print job off in a database...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...

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.