Selasa, 14 Agustus 2012

[MS_AccessPros] Re: Assigning printing setting through API

 

Dear Steve, thanks, I just double-checked, various printers return paper sizes as 256, 257 etc and while I have no problems reading correct dimensions for such custom sizes from DEVMODE, I do not have a way to apply them back through the Printer object.

Miroslav
--- In MS_Access_Professionals@yahoogroups.com, Steve Conklin <StephenMConklin@...> wrote:
>
> Custom paper sizes are genenrally from 129 through 255 ... Back in Win98, it was a constant 255, because then you could only have one custom size per printer. With XP, you could have more than one ... I have a client who consistently gets the custom paper sizes numbered as 143, 155 and 169.
> As this is a small shop, I can create the custom size, assign it as default, and have the Printer object tell me the custom paper's number. Then, I store that value in a local table, when the need the report that uses custom, I set the printer's paper to that number, print, then set it back to whatever it was before.
> In a larger environment, you can query the registry for the custom paper size values.
> I am out in the field currently; I can give more details later. Or if Advisor.com is still up, I wrote about this Access/VB/SQL Advisor back in 2006, maybe it's still up.
>
> hth,
> Steve Conklin
>
>
>
>
>
>
> To: MS_Access_Professionals@yahoogroups.com
> From: mirkosluv@...
> Date: Mon, 13 Aug 2012 15:34:14 +0000
> Subject: [MS_AccessPros] Re: Assigning printing setting through API
>
>
>
>
>
> Yes, you can't work with custom paper sizes and many of our clients have this requirement. Printer object does not expose PaperLength and PaperWidth members of the DEVMODE structure, so we are forced to go different path, unfortunately.
>
> I was just hoping someone maybe knows if "replacing" report's prtDevMode property through API directly would be possible, in order to avoid "going around" process, as described in first post.
>
> --- In MS_Access_Professionals@yahoogroups.com, "acravenrohm" <yahoo@> wrote:
> >
> > OK, I'm surprised you can't set Papersizes > 256 but I see thre are one or two esoteric Settings which you seemingly can't set through the Printer Object.
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar