-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: shashijeevan
Message 1 in Discussion
Hi,
I am developing a windows application to print on a
standard CD cover sized paper (271x120mm).
I am using the following commands to
print
ev.Graphics.PageUnit =
GraphicsUnit.Millimeter;
ev.Graphics.DrawImage(new
Bitmap("Harbour.jpg"), 0, 0, 271, 120);
Though its not accurate the print out does contain
an image of size 272x120 mm.
But, the main problem is that it printout
contains top and left margins which I didn't expect. These are 4mm
each.
I have tried setting to 0 the values of Left and
Top properties of
PrintPageEventArgs. PageSettings
and
PrintDocument.DefaultPageSettings
It didn't work.
The PrintPageEventArgs has MarginBounds but its a
read-only property.
Is there anyway I can change my printer to print the
image on the edge without the margins.
Any pointers will be highly appreciated.
Thanks 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]