Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone help me, I created a sales system. And now I
want to print a recipt of the sale. I was thinking on
using reports.

I have'nt used reports alot before aswell, so any help
would be appriciated please.
Posted
Comments
dineshkumar51 24-Apr-12 2:55am    
Have you found the soultion. Can you send me the sample please
mdineshamu@gmail.com

1 solution

There are two types of printing techniques are in computer, One is DOS print and another is windows print. In windows print it uses the windows default printer but in DOS mode printing it prints directly to the printer.DOS mode printing is faster and is suitable for receipt printing

This DOS command will print your file to the printer

SQL
PRINT [/D:device] [/B:size] [/U:ticks1] [/M:ticks2] [/S:ticks3]
[/Q:qsize] [/T] [[drive:][path]filename[ ...]] [/C] [/P]




One easy way to print receipt is,

1, Save your receipt as a text file
2, Run command prompt in hidden using code and execute above DOS command with appropriate arguments


This will print only the receipt area not in whole page

Search in Google for more details about DOS mode print
 
Share this answer
 
v2
Comments
Ben Paxton 13-Sep-11 12:52pm    
Thats great thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900