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
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,321
Location
Sydney, Australia
Programming Experience
10+
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.
 

obrien.james

Member
Joined
Sep 11, 2009
Messages
15
Programming Experience
Beginner
HI,

I have found the drawtobitmap only gives the visible part of the panel. WIll this not be the same with a panel in a panel?

James
 
Top Bottom