Last post May 13, 2013 10:22 PM by Angie xu - MSFT
May 07, 2013 12:36 AM|avaran|LINK
How to print on pre defined paper in .NET. The Page is preprinted and we need to print on this page by filling on details. Something like invoice printing. Any pointers will be of great help
May 07, 2013 12:49 AM|kedarrkulkarni|LINK
u can define the exact layout as u r printed paper on web page... with the help of table and div
then, simply set table border to 0px or set table css class using @media print css attributes by hiding table borders.
you will need to do trial and error to make sure the position of printed text lies exactly in the intended area on printed paper... u can then readjust the table layout (width/heigt/padding)
hope this helps...
May 07, 2013 01:01 AM|er manish|LINK
If you have pre printed paper form and you want to print more on it using any program.
What you have to do Put this paper in printer and check new print come at right place. Even you can try on plain paper and check wheather it is printin at right palce or not. When you find it is printing at right place Put your real form and print it.
May 07, 2013 09:05 PM|Neodynamic|LINK
May 13, 2013 10:22 PM|Angie xu - MSFT|LINK
When print in a pre-printed stationary format to a pre-defined printers in ASP.net web application
If you want to provide a pre-formatted document for users to print, you should create a PDF, which they can then choose to download and print,
If you want to print somewhere well-defined on the LAN, set that up as a network printer on the web server machine, and create a print document and write to it as normal (i.e. in the same way as you'd print in a desktop app). This will require you to write
a new output driver to write the appropriate content to the printer, as none of the ASP.net infrastructure is set up to do that, but if you have a good separation of data and display this shouldn't be too hard, and to create a PDF you need to do that as well.
Obviously this only works in a LAN situation where it is useful to the users to print to a central location accessible to the web server.
I think this
discussion is really very impressive, I think it can give some tips for you to learn how to print in a pre-printed stationary format to a pre-defined printers in ASP.net web application,