Changing printer orienation at runtime using vb.net and crystal reports
Posted on 2003-12-12
Ok, here is the situation..
I have a report in done using crystal reports and vb.net. I am using the crystal reports viewer control to display the report to the user before printing.
The report is set ot landscape and legal size paper, and displays that way in the preview control (I have checked and it is set at every place possible within crystal). When I print the report, however, the paper size is ALWAYS set to portrait on letter paper (The default for the printer). While I know that I can change this and get a proper print, I know my end users will think that what they see on the screen is what they are going to get printed out. How can I set the printers settings before the report gets printed?
so far I am at a lost. It seems that in vb.net all the printer objects are read only, and the only way to do it is to FORCE THE END USER to set them from a dialog. I find this stupid, to say the least.