Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

.Net Printing - Limiting Orientation and Paper Size options in print dialog

Posted on 2004-10-07
3
562 Views
Last Modified: 2012-05-05
I have a small C# Windows app that should limit users to always printing in "Portrait" orientation with a paper size of 8.5/11.

My question is what is the best way to do this?

1. Is it possible to disable the Landscape option that displays on the Print - Properties page?
2. Is it possible to limit the Paper Size options that display on the Print - Properties page to 8.5/11? (right now it displays A4, A5, B5, DL Envelope, etc...none of which would be supported by this app).

I realize this is the VB.Net topic area but I have posted this question to the C# area and have no replies yet so I was wondering if any VB.Net developers have some info. on this.

Thanks for your time,
0
Comment
Question by:FlamingTrousers
3 Comments
 
LVL 19

Assisted Solution

by:arif_eqbal
arif_eqbal earned 20 total points
ID: 12256456
Well i do not know if you can limit the display of these options but yes you can check if the values set by the user is valid for your case or not. i.e. when the user interacts with the Dialog box sets the Orientation values etc. and clicks Print at that time you can check the values validate it and if it is not proper you can show a message and reopen the Dialog box. That will not be very approppriate though but if it suits you fine..
0
 
LVL 10

Accepted Solution

by:
123654789987 earned 480 total points
ID: 12256703
U can use the code as explained here to always print in potrait. It also gives the methods for defining the size of the page

http://www.vb-helper.com/howto_net_print_landscape.html
0
 

Author Comment

by:FlamingTrousers
ID: 12279373
OK. Thanks for the input!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question