Page 2 of 2
Re: How to use those printer control commands ?
Posted: Fri Nov 05, 2010 1:02 am
by huangchenmin
miras wrote:Hi!
Try this after your printing code.
SET CONS OFF
.......
WinPrintRaw(cPrinter, "CUT.TXT", "CUT")
Hope that helps.
Best regards
Miras
Dear miras
thanks for your supports. Could you tell me what is the contents in "CUT.txt"?
Should I replace the cut command, which you posted with mine ?
Best Regards
chen min
Re: How to use those printer control commands ?
Posted: Fri Nov 05, 2010 2:26 am
by Rathinagiri
As you can see, cut.txt is created using 'set alter to' command.
You have to give the command sequence at the line starting with ?
Re: How to use those printer control commands ?
Posted: Fri Nov 05, 2010 9:52 am
by huangchenmin
miras wrote:Hi!
Try this after your printing code.
SET CONS OFF
SET ALTE TO CUT.TXT
SET ALTE ON
?chr(27)+"i"+CHR(18) ///Cut if you can
SET ALTE OFF
SET ALTE TO
SET CONS ON
WinPrintRaw(cPrinter, "CUT.TXT", "CUT")
Hope that helps.
Best regards
Miras
Dear Miras
the HMG compiler told me he that could find reference of winprintraw().
What should I do next?
Re: How to use those printer control commands ?
Posted: Fri Nov 05, 2010 11:15 am
by miras
Hi!
It is Abbougaga Jr C function and it is free.
Grigory Filatov <
gfilatov@inbox.ru> translated for MiniGUI, but I'm not sure
whether the HMG has.
in my application works perfectly.
Best regardds
Miras
Re: How to use those printer control commands ?
Posted: Mon Nov 08, 2010 3:19 am
by huangchenmin
huangchenmin wrote:Hello everyone:
I need to work with a printer, which will printer number for people waiting in line.
Attachment is the commands maunal. I can't figure out how to use those control command in HMG code block.
Could anyone help!
Best Regards
OK!
Here is current status!
I work successfully with following combination.
the build-in printsend() function help to solve the issue.
but it's not so stable.
I arranged a cut after a page was printed.
whenever the first time executed after compilered, 2 cuts continueously after 2 pages were printed.
anyway, it is pretty close to mt goal.
Thanks all of the poeple been help!
Best Regards
chen min
Re: How to use those printer control commands ?
Posted: Mon Nov 08, 2010 3:41 am
by Rathinagiri
Can I see the relevant code Chen?
Re: How to use those printer control commands ?
Posted: Tue Nov 09, 2010 2:15 pm
by huangchenmin
rathinagiri wrote:Can I see the relevant code Chen?
Give me couples of days.
I will post the latest version!
Re: How to use those printer control commands ?
Posted: Mon Nov 15, 2010 5:44 pm
by huangchenmin
rathinagiri wrote:Can I see the relevant code Chen?
Still working on it!
Not steable enought!