By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,730 Members | 1,500 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,730 IT Pros & Developers. It's quick & easy.

how can i tap the information going to a label printer in a network

P: 1
I have situation where i must catch the information which is being sent to a printer in a hospital network.
Jan 5 '15 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 2.5K+
P: 4,677
1) Are you sure? In the US this has massive HIPAA implications - and many other countries have more restrictive privacy laws than the US...

2) Why? Do you need to just note that it's going? Or do you need to manipulate it in some way? If you're looking to manipulate it, I'd recommend going back to where it's being printed from and modifying it there - messing with packets across a network is definitely not the easiest way.
Jan 8 '15 #2

P: 30
The following is directly how to address your need of "catch[ing] the information."

The most efficient manner is to subclass the program that is sending the information to the printer, then record all data going to and coming from that program.

Subclassing has been around for a long time. It is nothing new.

If you need to know how to do this yourself, then the following is for that.

If you need to write (on your own) that kind of program fast (really fast) then use the Rapid Application Development VB6/sp5 for hooking and subclassing. There is code already on the internet written and stable in VB6 which can be adapted quickly to hook and subclass most Windows based programs. It has even been used to subclass internal parts of other programs. It is very stable.

If you want to write the code in a newer, but no less stable environment, use C++. I would suggest C++11. It comes packaged with CodeBlocks 17.12. CB17 is free.

C++ can do (I guess) every thing that VB6 can do, but it takes far longer to program to the same effect. It is your choice. I have found reason for each as needed.

I started learning C++ last summer (2019) and tried various avenues in that endeavor and settled on CB. I studied C++ editions, not to PhD level, but to my satisfaction, and I have chosen C++11.

I like both VB6 and C++11 each for what I may use them for. One is for very fast program development. The other is for Unicode and large number manipulations, etc.
2 Weeks Ago #3

Post your reply

Sign in to post your reply or Sign up for a free account.