how to print data on portable size paper.?
-
1. srpna 2012 13:23
Hi All,
iam developing a Billing Application.
however everything is fine but i am strucked in printing.
in printing i need to print the data on portable size paper like the paper size is equal to ATM paper size.
the printing paper contains the following data
1)header (contains 2 lines)
2)purchases data
3)Footer (contains 2 lines)
every print contains 1 and 3 are same only the 2nd should be changed.
can anyone please tell me how to achive this task
Thanks,
Murali.
programmer on .net
Všechny reakce
-
1. srpna 2012 16:45
Using the PrintDocument class you can print anything to any valid windows printer. (Including XPS Document Writer, or things like CutePDF, and thermal label/receipt printers)
The example on this page should get you started:
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage.aspx
- Navržen jako odpověď Jason Dot WangMicrosoft Contingent Staff, Moderator 3. srpna 2012 5:00
- Označen jako odpověď Jason Dot WangMicrosoft Contingent Staff, Moderator 9. srpna 2012 7:03
- Zrušeno označení jako odpověď programmer on .net 11. srpna 2012 16:17
-
2. srpna 2012 5:54
and iam developing this application on c#.net 2010.
programmer on .net
-
2. srpna 2012 15:46
Print document is apart of that version. In a button click event, try to create an instance of the PrintDocument class. You'll probably need to add a reference to System.Drawing or System.Drawing.Printing (if it exists)- Navržen jako odpověď Jason Dot WangMicrosoft Contingent Staff, Moderator 3. srpna 2012 5:00
- Označen jako odpověď Jason Dot WangMicrosoft Contingent Staff, Moderator 9. srpna 2012 7:03
- Zrušeno označení jako odpověď programmer on .net 11. srpna 2012 16:17
-
3. srpna 2012 6:27
Hi Barrakoda,
I know how to print on "A4 size paper(it contains 297 mm x 210 mm or 11.7 in x 8.3 in)"
but the problem is i dont know how to print on handheld printer and it is an "A8 size paper (it contains 74 mm x 52 mm or 2.9 in x 2.0 in)"
so can you please help me on this issue.
How can i print on handheld printer(A8 size paper)
Thanks.
programmer on .net
-
3. srpna 2012 7:05
"How can i print on handheld printer(A8 size paper)"
How are you setting the PrintDocument.DefaultPageSettings.PaperSize?
After you set the paper size, what problems do you have?
-
3. srpna 2012 15:00Yeah, I've written stuff in the past which prints to statement paper (Half of a sheet of 8.5x11) and duplexed, all with the PrintDocument class. Can you post up your print code maybe?
-
11. srpna 2012 16:16
Hi Barrkoda,
iam new to .net .
usvally when i want to print any file i will follow this link
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage.aspx
but for doing print on the "A8 size paper (it contains 74 mm x 52 mm or 2.9 in x 2.0 in)"(it is similar to ATM size paper or handheld printer size)
i have done everthing on my billing project except print.
i dont know where to start and how to make a format for that
can u please provide me any code or any samples for making this type of printing
Thanks,
programmer on .net
-
11. srpna 2012 19:26
hi Murali could you please load your code here, so that we can help you better. it should be no problem to print out such paper size "A8 paper size". Without any code, then how do u assume us to help you. The best what we can do is just give you a link such as http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.printpage.aspx
if the example in the link is not meet your requirement, then you should show the part of code so that we can help you out...
Regards...