Hi,
I am using the CrystalReportViewer Control in a C# application to print
Labels and Reports. My Label.rpt file has it's Orientation set to Landscape.
I have set the Printer default in Windows to Landscape. When I call the
PrintReport() method in the CrystalReportViewer control, the Select Printer
Dialog is displayed and if you select the print and continue, the label is
printed in Portrait Orientation. If when the Select Printer Dialog is
displayed, You may press the Properties button and then Click the Landscape
Orientation Radio button and the label prints OK.
If I show the Form with the CrystalReportViewer Control and then Press the
Print Button in the CrystalReportViewer Control, then the Select Printer
dialog is displayed and if Orientation is correct.
For Labels, I don't want to have to show the form, which is why I was
creating the form and then just calling the PrintReport().
Does anyone know why neither the .RPT file's Orientation setting or the
Printer's Orientation setting is not being honored when using the
PrintReport() method?
Thanks,
David

Signature
DAE
Gert - 24 Jun 2008 19:17 GMT
> Labels and Reports. My Label.rpt file has it's Orientation set to Landscape.
> I have set the Printer default in Windows to Landscape. When I call the
> PrintReport() method in the CrystalReportViewer control, the Select Printer
> Dialog is displayed and if you select the print and continue, the label is
> printed in Portrait Orientation.
There once was a bug that made the orientation loose its value after a call
to SelectPrinter.
You had to save it to a temporary value and restore it after a call to
SelectPrinter.
I don't think -according to your description- this is what is happening
here,but to be sure I posted it anyway.
Gert