Printing in Landscape

newtome

Newcomer
Joined
Aug 5, 2003
Messages
4
Help. When I view my report in the Crystal reports viewer it views in landscape, however, whenever I go to print, unless I stop and physically change it to landscape it always prints in portait. How do I change this?
Thanks
 
K, found my own answer for anyone else that needs it.
There is a hotfix from Crystal reports for this one, but here is a work around.

The following code can be used to print the report in landscape orientation:

[VB .NET]
Dim crReportDocument As CrystalReport1 'Report designed in Landscape
crReportDocument = New CrystalReport1()
crReportDocument.PrintToPrinter(1, True, 1, 1)

Thanks
 
Back
Top