-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Ravikumarcbe
Message 1 in Discussion

Hi Folks,      I'm using Printer document to print the report(Custom printing). While 
I'm trying to print image it gives me an error "Public Member 'Graphics' on type 
'PrintDocument' not found" I have used the code like this,  
Private Sub PrintDC(ByVal e As Object, ByVal ev As PrintPageEventArgs) 
' Create image. 
' Dim newImage As Image = Image.FromFile("UnitIcon.JPeg") 
Dim newImage As Image = ImageList1.Images.Item(0) 
' Create Point for upper-left corner of image. 
Dim ulCorner As New Point(100, 100) 
' Draw image to screen. 
e.Graphics.DrawImage(newImage, ulCorner) ---> here I'm getting the error 
Catch ER As Exception 
ev.Cancel = True 
MessageBox.Show(ER.Message) 
End Try 
End Sub 
  
If anybody come across this error plz let me know.  
  
Thanx in advance 
Rgds, 
Ravi 
  
  
  
   

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to