Senin, 13 Agustus 2012

RE: [MS_AccessPros] Re: Assigning printing setting through API

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@gmail.com
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]



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

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/MS_Access_Professionals/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/MS_Access_Professionals/join
(Yahoo! ID required)

<*> To change settings via email:
MS_Access_Professionals-digest@yahoogroups.com
MS_Access_Professionals-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
MS_Access_Professionals-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Tidak ada komentar:

Posting Komentar