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

New Message on BDOTNET

-----------------------------------------------------------
From: shashijeevan
Message 1 in Discussion


Hi,
 
I am developing a .Net windows application to print 
an image on a page which is standard Cover (271mm x 120 
mm).
 
I am using the following command to print the image 
inside PrintPage event handler.
 
    ev.Graphics.PageUnit = 
GraphicsUnit.Millimeter;
    ev.Graphics.DrawImage(new 
Bitmap("Harbour.jpg"), 0, 0, 271, 120);
 
When I create the image and print it there are 
extra margins on the top and left sides. Both of them are 6 mm 
each.

 
This should not have come as I am specifying the 
starting point as 0 for both X and Y coordinates in the DrawImage 
method.
 
Is this approach to printing correct?
 
Is there any way to control this printing 
precisely? I want to print on the edge of the paper.
 
Any pointers are highly appreciated.
 
Thank you in advance.
 
regards,
shashi

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

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