Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to print on pre-printed paper that's actually a bill that contain headings as customer id,name and so on. there is no database required as its only used for printing those bills and nothing else.
I'm developing an application using vb.net 2010 for printing this bills.i am having problem with text alignments i.e text values are not printed at proper location.please help to in alignment.how to specify columns,next columns and so on.

thank you in advance :)
Posted

Check this article
Line Printer Class in C#[^]
And check this section for related articles
"Printing" related articles @ Codeproject[^]
 
Share this answer
 
Comments
kgmmurugesh 25-Dec-13 0:57am    
give me the specific code.
thatraja 25-Dec-13 1:32am    
I'm lazy, that's why I gave you collection. Besides it's holidays! Search it yourself.
Nelek 26-Dec-13 12:15pm    
My virtual 5
Write ESC/P commands and send them right to the printer by using this code http://support.microsoft.com/kb/322090[^]
 
Share this answer
 
Give me the full code, I will rectify the error.
 
Share this answer
 
Comments
Nelek 26-Dec-13 12:16pm    
This is not how CP usually works. Most important goal here is to learn and help learning.
You are supposed to try it on your own, and come here when you got stuck with something, with a concrete question about your code, design, etc.
Please have a look to What have you tried?[^] to see a good explanation about what I mean.
Don't forget people here don't get payed. And besides, if we give you a ready-to-go solution, it is not going to help you because you are not going to learn anything from it.
thank you all :) I have manually specified all field position w.r.t x and y coordinate respectively, its quite hectic but will try to make it dynamic.
 
Share this answer
 

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