Printing

M

Mugombi

Hi all,

I wanted to find out what the best way to print user customized pages
from a windows forms application would be.

The user would customize :-

1. what size of print they want in centimetres. if less than normal A4
size it should then customize how many prints on one page

2. what images he wants on the page + their location on page.

3. Must also have the capability to print bar codes

I have already tried generating the page as HTML and printing it but
thats not working out the best.

Please let me know...
 
S

SharpCoderMP

override OnPaint and use PrintDocument.
draw everything you need using System.Drawing and System.Drawing.Drawing2D
it's nothing complicated. some of the best examples on drawing you can
find on www.bobpowell.net take a look also on www.codeproject.net
the best thing about this approach is that you use the same methods for
drawing to the screen and drawing to the printer. the only thing that
changes are graphic units and Graphics object.

if you'll have any problems with that, try posting to the
microsoft.public.dotnet.framework.drawing - those guys probably will be
more helpful
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top