Groups | Blog | Home
all groups > dotnet drawing api > june 2005 >

dotnet drawing api : How to start a borderless printing


zhaounknown
6/17/2005 9:46:10 AM
I tried the following example in two machines and printers.
I set the DefaultPageSettings.Margins to have four magins to 0. It turns out
that the Left margin doesn't take effect.

The source code can be downloaded from
http://www.c-sharpcorner.com/Code/2003/Jan/TaxForm.asp (the source code take
the default margins, and should set the margins to 0s).

Am I mising something? Please help, Thanks.

Bob Powell [MVP]
6/18/2005 12:00:00 AM
This will differ from printer to printer. Some machines have margins that
are limited by the capabilities of the hardware.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





[quoted text, click to view]

zhaounknown
6/18/2005 12:31:02 PM
The point is I can print out the same image without borders in other software
such as Windows-Picture and Fax Viewer, does it mean that my printer is
hardware-capable-of-borderless-printing? BTW, I can preview the image to be
printed on the page without borders.

Thanks.

[quoted text, click to view]
Lau Lei Cheong
6/19/2005 12:00:00 AM
Actually I believe it'll be best use PrinterProperties() and let the users
choose it if avaliable.

As far as I remember there's nothing of the sort in .NET library nor MFC
regarding marginless printing.

If you really want to choose it yourself, you propably will need to change
the way according to the brand names as there's high prop.
that will be different.

"zhaounknown" <zhaounknown@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D:EF67D72C-2B4E-4125-B526-A27DD2CC795D@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button