How to clean print buffer?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

How to clean print buffer?

Post by huangchenmin »

Hello everyone:
I need to 『PUSH』all data in print buffer to printer.
How should I do ?
I had tried spoolflush() ,which I got info from
http://www.itlnet.net/programming/program/
but it seems not included in hmg.ch
Complie error was occured.
I was confused that PRINTSEND(),another function from same web works well.
Could anyone help!
Best Regards
chen min
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: How to clean print buffer?

Post by Rathinagiri »

Can you post some sample code?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: How to clean print buffer?

Post by huangchenmin »

rathinagiri wrote:Can you post some sample code?
the same code i post before in another topic about print command.
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: How to clean print buffer?

Post by Rathinagiri »

If the printer is connected and used as Windows printer, once we give 'End PrintDoc' (if it is not in preview mode), the printer starts printing. In the case of Console mode printers, I think once we give the printer command, everything is printed immediately.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
huangchenmin
Posts: 157
Joined: Mon Jun 07, 2010 2:24 am

Re: How to clean print buffer?

Post by huangchenmin »

rathinagiri wrote:If the printer is connected and used as Windows printer, once we give 'End PrintDoc' (if it is not in preview mode), the printer starts printing. In the case of Console mode printers, I think once we give the printer command, everything is printed immediately.
Thanks for ypur supports!
I had posted my code block about thmeral 200+ printer.
Have you see that ?
Best Regards
chen min
Post Reply