Thread View: borland.public.delphi.graphics
6 messages
6 total messages
Started by Garry Prefontaine
Tue, 29 Jul 2008 19:47
Detect if a printer supports borderless printing?
Author: Garry Prefontaine
Date: Tue, 29 Jul 2008 19:47
Date: Tue, 29 Jul 2008 19:47
3 lines
1026 bytes
1026 bytes
Is there any way to detect, programmatically, if the selected printer supports "borderless" printing. (i.e. prints right up to the edge of the paper)
Re: Detect if a printer supports borderless printing?
Author: Herre de Jonge
Date: Wed, 30 Jul 2008 05:29
Date: Wed, 30 Jul 2008 05:29
6 lines
1320 bytes
1320 bytes
Garry Prefontaine wrote: > Is there any way to detect, programmatically, if the selected printer > supports "borderless" printing. (i.e. prints right up to the edge of > the paper) Check out GetDeviceCaps() (HORZRES, PHYSICALWIDTH, PHYSICALOFFSETX etc.)
Re: Detect if a printer supports borderless printing?
Author: Garry Prefontaine
Date: Wed, 30 Jul 2008 14:38
Date: Wed, 30 Jul 2008 14:38
26 lines
1959 bytes
1959 bytes
Herre de Jonge <hdejonge@ravelin.nl> wrote: >Garry Prefontaine wrote: >> Is there any way to detect, programmatically, if the selected printer >> supports "borderless" printing. (i.e. prints right up to the edge of >> the paper) > >Check out GetDeviceCaps() (HORZRES, PHYSICALWIDTH, PHYSICALOFFSETX etc.) Thanks for the tip - it got me thinking in the right direction! GetDeviceCaps with PHYSICALOFFSETX (etc) works.... BUT... only after you change the paper selection in the print dialog to a Borderless paper size. For instance using my HP Photosmart, I get PHYSICALOFFSETX of 0, but only after I go into the print dialog and change the paper size to "Borderless 8.5 x 11". If I just set it at Letter size, it comes back as 72. I guess the only way to know if a printer supports borderless printing, is to loop through all of the paper types and test each one using GetDeviceCaps. I was hoping for a less brute-force approach, but I don't think one exists.
Re: Detect if a printer supports borderless printing?
Author: Finn Tolderlund
Date: Wed, 30 Jul 2008 15:20
Date: Wed, 30 Jul 2008 15:20
19 lines
2068 bytes
2068 bytes
"Garry Prefontaine" <garry@prefont.com> skrev i meddelelsen news:pou09416tpvb70hhc2vrp3qd7es1j208da@4ax.com... > For instance using my HP Photosmart, I get PHYSICALOFFSETX of 0, but > only after I go into the print dialog and change the paper size to > "Borderless 8.5 x 11". If I just set it at Letter size, it comes back > as 72. > > I guess the only way to know if a printer supports borderless > printing, is to loop through all of the paper types and test each one > using GetDeviceCaps. That won't work. Different printer drivers implement this differently. My Canon PIXMA IP5200 has a checkbox to select borderless, not by changing paper type. There are no standard for these things. -- Finn Tolderlund
Re: Detect if a printer supports borderless printing?
Author: Garry Prefontaine
Date: Wed, 30 Jul 2008 18:40
Date: Wed, 30 Jul 2008 18:40
19 lines
1799 bytes
1799 bytes
>> I guess the only way to know if a printer supports borderless >> printing, is to loop through all of the paper types and test each one >> using GetDeviceCaps. > >That won't work. >Different printer drivers implement this differently. >My Canon PIXMA IP5200 has a checkbox to select borderless, not by changing >paper type. >There are no standard for these things. My HP has a checkbox for borderless also. When you check this, it actually changes the paper type to one of the "borderless" types. So in the HP case, I think it would work. Maybe not with the Canon printers. I might download the driver for the PIXMA (actaully, I think my son might have one of those..) and test it out. Thanks for the extra info, it all helps!
Re: Detect if a printer supports borderless printing?
Author: Garry Prefontaine
Date: Wed, 30 Jul 2008 18:48
Date: Wed, 30 Jul 2008 18:48
1 lines
1079 bytes
1079 bytes
Yup - just tested a Canon PIXMA IP5200, and you are right.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads