default landscape code

  • Thread starter Thread starter Bill
  • Start date Start date
B

Bill

Hi,

I try to figure it out if there is a way to force to 8 x 11 change to 8 x 14
into landscape. I am getting frustrated to see half of the legal page and
force me to use File, Page Setup then change to legal landscape.

It would be great if there is a simple code for this. That would be great.

Your help would be great appreciated.
 
Hi Bill

From your descriptions, I understood that you would like to custom your who
paper property and change them into landscape. Have I understood you? If
there is anything I misunderstood, please feel free to let me know.

Based on my scope, we could use PrtDevMode Property to set or return
printing device mode information specified for a form or report in the
Print dialog box. I think the following member of PtrDevMode will
contribute in resolving your issue.

Orientation, An Integer that specifies the orientation of the paper. It can
be either 1 (portrait) or 2 (landscape).

PaperSize, An Integer that specifies the size of the paper to print on, see
the PaperSize member values for more detailed information.

There is also an example of how to use the PrtDevMode property to check the
user-defined page size for a report in Microsoft Visual Basic Help,
PrtDevMode Property

Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!


Sincerely yours,

Mingqing Cheng
Microsoft Developer Community Support
 
Hi Bill,

I am just checking on your progress regarding the information that was sent
you! Have you tried the steps I provided to you? I wonder how the testing
is going. If you encounter any difficulty, please do not hesitate to let me
know. Please post here and let me know the status of your issue. Without
your further information,it's very hard for me to continue with the
troubleshooting.

Thank you for your patience and cooperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!


Sincerely yours,

Mingqing Cheng
Microsoft Developer Community Support
 
Back
Top