Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Landscape through Crystal Report Viewer

Status
Not open for further replies.

graydon123

Technical User
Feb 25, 2004
10
US
I have a Crystal Report that prints landscape. I have set it to print landscape by setting printer setup to landscape....this works as it should. However when I try to print the report through my program using a crystal report viewer, it prints portrait. How do I set my report to print landscape using a crystal report viewer with out having the user set the printer settings each time?

Thanks all!
 
If you are doing development you should upgrade to a developer edition to get the documentation.

To change the printer orientation, you need to trap the print event and select a different printer or setting. Here is the code from my viewer....

Private Sub CRView_PrintButtonClicked(UseDefault As Boolean)
UseDefault = True
cRpt.PrinterSetup Me.hwnd
End Sub


Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top