|
Hi, I need to capture data (TEXT only) which is printed on a specified printer (no matter what is the type of printer).
I'm thinking about printer driver which will redirect print jobs to a real printer but this seems to be too complex.
May be nother solution exists (does it?). Could anyone tell me how can this be done in C++ or where can I read about this?
Thanks in advance
|
|
|
|
|
ibnhatab wrote: I need to capture data (TEXT only) which is printed on a specified printer (no matter what is the type of printer).
I don't think this is possible, either with C++ or any other language. Modern print functions do more than just write strings of text line by line to the device. They have to manage page positioning, headers and footers, etc.
Perhaps if you explain more of what you are trying to achieve we could offer some suggestions.
|
|
|
|
|
First of all I need to capture data which is going to be printed (no matter which format).
Getting TEXT only data is next step of this task.
Main task is to catch data which goes from a POS system to printer(usually TEXT only printer).
Thanks in advance.
|
|
|
|
|
This sounds quite a complex project. The only way I know of capturing all data, is by creating a printer driver program which can be used in place of a physical printer. This program will need to interpret all the print commands in order to layout the actual text on some form of virtual page. Finally the text information will need to be extracted and reformatted according to your requirements.
The only tools I'm aware of that may help are the Ghostscript tools found here[^].
|
|
|
|
|
|
What's your real problem that you're wanting to solve by intercepting text sent to the printer (which, I'll tell you now, is likely to be nigh on impossible, and incredibly fragile if you diod get something working)?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Stuart Dootson wrote: What's your real problem that you're wanting to solve by intercepting text sent to the printer (which, I'll tell you now, is likely to be nigh on impossible, and incredibly fragile if you diod get something working)?
POS systems - Text capture is quite common. Usually done via hardware by tapping serial printer's RX line and reading the ASCII bytes. In this case he wants to capture it at a software level not a hardware level. Since he's using the Generic Text Only driver, there is no graphics involved in the printing process - everything is ASCII. Text capture is done for security reasons in order to show / prove the proper change has been returned or that the operator actually puts the cash in the till and not in his pocket (text capture is usually superimposed over live video of the cashier.)
|
|
|
|
|
Hi All,
while doing CreateInstance("Msxml2.XMLHTTP.4.0"); it thows exception.
In my local system it is working fine but when i deployed it on server it thows me exception, any suggestion would be helpful for me.....
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Ash_VCPP wrote: ...but when i deployed it on server it thows me exception, any suggestion would be helpful for me.....
Does it exist?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi David,
Thanks for the reply...
but i didnt get you... about what you are asking? is it msxml dlls in system 32 or what...please make the point clear.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
If the ProgID does not exist on the machine (i.e., MSXML has not been installed), CreateInstance() is obviously going to fail, hence why I asked if it existed.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
CreateInstance returns an HRESULT. What is the value?
Best Wishes,
-David Delaune
|
|
|
|
|
Hi,
I am looking for a portible Email Client for Embedded OEM system.
Can someone help me?
Regards,
Kobi
|
|
|
|
|
Yeah sure, okay.
What's it's name?
You look over there, and I'll look over here. If I see anything I'll call out coo-ee.
|
|
|
|
|
I don't know what is the name of an Email client.
I am looking for it.
It should support all email protocols:
SMTP, IMAP4, POP3 and MIME.
|
|
|
|
|
Hello,
the question is related to automation with excel
I have used chart types and to draw stock volume option
xlStockVOHLC = 91 . The data is arranged properly in excel sheet but how to select data for the chart in columns
i m using the following for data range
_Chart newChart;
Range oRang;
oRang = newSheet.GetUsedRange()
newChart.SetSourceData(oRang,COleVariant((short)1));
pritha
|
|
|
|
|
prithaa wrote: i m using the following for data range
And is it working? Have you tried the sheet's GetRange() method?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
thanks for your reply
i got it . the chart is working now
|
|
|
|
|
Hi,
I have a question there are tools that can identify backdoors in a code by analising binaries of application i.e by doing re-engineering. Can anybody tell me how this works and is there any tool available for this.
Thanks
SNI
SNI
|
|
|
|
|
Why would you need to do this, are you trying to break into a bank?
|
|
|
|
|
No...I just want to know that is there any tool which does binary (.exe in release mode)inspection so that backdoors can be identified. If yes, whether it is possible with release version of exe or only with debug. Also would like to know are they using assembly code analysis of binary to come to conclusion?
SNI
|
|
|
|
|
It's always possible. Sometimes it's a little harder than otherwise, but it can not be impossible (since that would mean that you can not see any code, and then how would the CPU know what to do with your program?)
|
|
|
|
|
Yea, right, onevote it..
It's true though.
IDA should do, btw.
|
|
|
|
|
SNI wrote: No...I just want to know that is there any tool which does binary (.exe in release mode)inspection so that backdoors can be identified.
I think Google is the place to look. However, I am not sure that any such tool could identify what you term "backdoors".
|
|
|
|
|
You may use the dumpbin tool [^], looking for 'backdoor' or 'please hack here' or 'virus place holder' sections.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|