Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Crystal Report / June 2008



Tip: Looking for answers? Try searching our database.

Orientation of Report when printed is always Portrait

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Elson - 20 Jun 2008 13:45 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.