tags:

views:

1575

answers:

3

Hi, I need to print out data into a pre-printed A6 form (1/4 the size of a landsacpe A4). I do not need to print paragraphs of text, just short lines scattered about on the page.

All the stuff on MSDN is about priting paragraphs of text.

Thanks for any help you can give, Roberto

+1  A: 

you'll have to create a PrintDocument object, handle the at least the PrintPage event and apply the appropriate changes to the PrinterSettings property.

In your PrintPage event handler, do whatever you need to do with the PringPageEventArgs.Graphics object; like drawing lines, drawing images, etc.

Peter Ritchie
A: 

When finding the x,y coordinates to use for lining up your new text with the pre-printed gaps, the default settings for the graphics object's Draw____() functions are 100 pixels per inch. That might be subject to change based on your printer, but in my (very limited) experience that's always been the case.

Joel Coehoorn
A: 

I assume you mean using e.Graphics.Clip in the Print page handler?

Or do you mean use e.Graphics.PrintString() multiple times for each different piece of text on the page?

Thanks Roberto

Roberto Bonini