PC Review


Reply
Thread Tools Rate Thread

Change paper size in code

 
 
Daniel
Guest
Posts: n/a
 
      8th Jun 2010
Hi All,

I have got an Access application to print large drawings to a large
priter. The drawings have three different sizes, which is
610mm*1500mm, 610mm*1350mm and 610mm*850mm. The problem is that if I
set up papersize to 610*850, the drawings with other two sizes will be
shrinked. If I set up papersize to 610*1500, every drawing print out
ok but waste a lot of paper. I am thinking put all drawings with their
size in a table and change the printer papersize setting accordingly
when it is printing. But I do not know how to change the setting in
the code. Or there is any other better way to achieve this.

Thank you for your help in advance.

Cheers
Daniel
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      9th Jun 2010
On Mon, 7 Jun 2010 23:25:11 -0700 (PDT), Daniel
<(E-Mail Removed)> wrote:

Check out the Printer object; it has a PaperSize property.

-Tom.
Microsoft Access MVP


>Hi All,
>
>I have got an Access application to print large drawings to a large
>priter. The drawings have three different sizes, which is
>610mm*1500mm, 610mm*1350mm and 610mm*850mm. The problem is that if I
>set up papersize to 610*850, the drawings with other two sizes will be
>shrinked. If I set up papersize to 610*1500, every drawing print out
>ok but waste a lot of paper. I am thinking put all drawings with their
>size in a table and change the printer papersize setting accordingly
>when it is printing. But I do not know how to change the setting in
>the code. Or there is any other better way to achieve this.
>
>Thank you for your help in advance.
>
>Cheers
>Daniel

 
Reply With Quote
 
Daniel
Guest
Posts: n/a
 
      9th Jun 2010
On Jun 9, 12:38*pm, Tom van Stiphout <tom7744.no.s...@cox.net> wrote:
> On Mon, 7 Jun 2010 23:25:11 -0700 (PDT), Daniel
>
> <daniel.ran...@gmail.com> wrote:
>
> Check out the Printer object; it has a PaperSize property.
>
> -Tom.
> Microsoft Access MVP
>
>
>
> >Hi All,

>
> >I have got an Access application to print large drawings to a large
> >priter. The drawings have three different sizes, which is
> >610mm*1500mm, 610mm*1350mm and 610mm*850mm. The problem is that if I
> >set up papersize to 610*850, the drawings with other two sizes will be
> >shrinked. If I set up papersize to 610*1500, every drawing print out
> >ok but waste a lot of paper. I am thinking put all drawings with their
> >size in a table and change the printer papersize setting accordingly
> >when it is printing. But I do not know how to change the setting in
> >the code. Or there is any other better way to achieve this.

>
> >Thank you for your help in advance.

>
> >Cheers
> >Daniel- Hide quoted text -

>
> - Show quoted text -


Hi Tom,

Thank you for your reply. I know I can set up papersize with an
integer value. But these three size are all customized size and how
can I know the number of them?

Cheers
Daniel
 
Reply With Quote
 
Tom van Stiphout
Guest
Posts: n/a
 
      11th Jun 2010
On Tue, 8 Jun 2010 22:13:59 -0700 (PDT), Daniel
<(E-Mail Removed)> wrote:

I believe you can first setup a custom paper size through the printer
driver.

-Tom.
Microsoft Access MVP


>On Jun 9, 12:38*pm, Tom van Stiphout <tom7744.no.s...@cox.net> wrote:
>> On Mon, 7 Jun 2010 23:25:11 -0700 (PDT), Daniel
>>
>> <daniel.ran...@gmail.com> wrote:
>>
>> Check out the Printer object; it has a PaperSize property.
>>
>> -Tom.
>> Microsoft Access MVP
>>
>>
>>
>> >Hi All,

>>
>> >I have got an Access application to print large drawings to a large
>> >priter. The drawings have three different sizes, which is
>> >610mm*1500mm, 610mm*1350mm and 610mm*850mm. The problem is that if I
>> >set up papersize to 610*850, the drawings with other two sizes will be
>> >shrinked. If I set up papersize to 610*1500, every drawing print out
>> >ok but waste a lot of paper. I am thinking put all drawings with their
>> >size in a table and change the printer papersize setting accordingly
>> >when it is printing. But I do not know how to change the setting in
>> >the code. Or there is any other better way to achieve this.

>>
>> >Thank you for your help in advance.

>>
>> >Cheers
>> >Daniel- Hide quoted text -

>>
>> - Show quoted text -

>
>Hi Tom,
>
>Thank you for your reply. I know I can set up papersize with an
>integer value. But these three size are all customized size and how
>can I know the number of them?
>
>Cheers
>Daniel

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OL2003 print options -change page size w/o changing paper size =?Utf-8?B?a3JlbmVl?= Microsoft Outlook Calendar 0 30th Nov 2005 06:42 PM
Setting Paper Size In Code Tim J Microsoft Access Reports 1 24th Feb 2005 04:29 AM
Repost: Paper Size VBA Code Andy Microsoft Access Reports 3 28th Jan 2005 02:23 PM
Using code to set paper size. madcap Microsoft Access Reports 0 15th Dec 2003 06:43 PM
hard code paper size Bisha Microsoft Access Reports 0 10th Aug 2003 06:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 AM.