Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

How to print a panel?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zlf - 31 May 2007 08:06 GMT
Hi, I have many content panels in my application, client asks me to add a
print button in those panels. Once clicked, the content of panels will be
printed out.

There is a control in .NET 2.0 could meet my requirement? Thx
jonny - 31 May 2007 12:52 GMT
have you tried the  Control.DrawToBitmap method?

> Hi, I have many content panels in my application, client asks me to add a
> print button in those panels. Once clicked, the content of panels will be
> printed out.
>
> There is a control in .NET 2.0 could meet my requirement? Thx
zlf - 01 Jun 2007 16:49 GMT
Thank you first of all.
It works but cannot completely meet my requirement. In the case of the size
of panel is large and screen cannot show whole of it, only the content
presented in screen is rendered to Image. If there is a way to draw all the
image of a specified panel to Image/Bitmap? Thank you

"jonny" <yingshen.yu@gmail.com>
??????:1180612354.420115.290120@j4g2000prf.googlegroups.com...
> have you tried the  Control.DrawToBitmap method?
>
[quoted text clipped - 3 lines]
>>
>> There is a control in .NET 2.0 could meet my requirement? Thx
Tim Van Wassenhove - 01 Jun 2007 20:37 GMT
zlf schreef:
> Thank you first of all.
> It works but cannot completely meet my requirement. In the case of the size
> of panel is large and screen cannot show whole of it, only the content
> presented in screen is rendered to Image. If there is a way to draw all the
> image of a specified panel to Image/Bitmap? Thank you

Afaik there are two options: Resize the image so that it fits on one
page, or implement your printer routing so that it 'divides' the image
over multiple pages (eg: http://www.timvw.be/print-a-control/)

Signature

Tim Van Wassenhove - Read my mind <url:http://www.timvw.be/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.