Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing from a Windows Form 3

Status
Not open for further replies.

StevenK

Programmer
Jan 5, 2001
1,294
0
0
GB
We're working with components on a Windows Form.

Is it possible to call a Print for the display as seen on screen - i.e. from a specific Panel - or otherwise?

We'd like to be able to click a button - and have the Panel (and contents) printed.
Can this be done?

Thanks in advance.
Steve
 
I had a project in which I required to send a receipt as an image file through email. That was very easy
Just create an image file then send it.
Code:
       Dim bmp As Bitmap
        bmp = New System.Drawing.Bitmap(Me.pnlEmail.Width, Me.pnlEmail.Height)
        Me.pnlEmail.DrawToBitmap(bmp, Me.pnlEmail.ClientRectangle)
        bmp.Save("C:\Temp\image.bmp")

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
I was just looking for something like this. Thanks, ZmrAbdulla! A star for you! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top