Print to a template document
-
I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.
-
I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.
It's rendered the same way you do things in a forn or control's paint event. You have to render strings of text and graphics in certain locations the just happen to be where the fields are on the page. Settying this up is quite a time consuming, trial-and-error process, so be prepared to go through a lot of paper. On the other hand, you might want to consider using a forms library, like Adobe Acrobat to layout you fields, then have your code fill them in using Acrobat Reaer. When that's done, you can have Acrobat Reader print the finished form.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
I am looking for documentation on how to do the following. I want to see some examples on how to print to a template document. For example an invoice. I assume I need to specify the xy coordinates. But, I can't find or don't know what to put in to search engine to get documentation on this. Can someone please help me? Thank you.
If your data for the invoice is in a windows form (textboxes and labels etc.) then the Form Print Control[^] can turn this into a printed page style document and allows you to control the x,y, font, colour and so on of the generated output.
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd