Printing Panel

obrien.james

Member
Joined
Sep 11, 2009
Messages
15
Programming Experience
Beginner
Hi All,

I have been developing a app that uses a panel control that displays a scanned tiff file. I then can add controls to the panel that are transparent and highlight the document and also add controls to the panel that act as 'PostIt' notes.

I now want to be able to print the document that is displayed in the panel control, however I can only manage to capture the image that is curently displayed in the panel (as the document is too big you have to scroll).

Is there anyway to capture the whole image with the extra highlight and postit note controls without having to programatically scroll and then capture what should be displayed and then stitch them all together.

Any help would be greatly appreciated

James
 
You could try the Panel's DrawToBitmap method, although I'm not sure whether that is limited to the visible section or not. If not, one Panel inside another could do the job. The outer Panel would the size of your current Panel while the inner Panel would be big enough to show the entire contents.
 
Back
Top