Crystal Report - Landscape orientation by default?

  • Thread starter Thread starter Connor T
  • Start date Start date
C

Connor T

Hi,

I have a crystal report embedded in a viewer.

How / Where can I set a property to make it default to landscape
orientation?

Rgds,
Dan
 
CR uses the settings of your currently selected printer.
Change the printer settings and your report changes.
 
Hi Dan,

The solution is to set the orientation in the report itself. Inside
Crystal, set file/printer setup to portrait or landscape and save the
report. The viewer will then display each report appropriately, without
having to change the printer each time a report is selected.

HTH,

Bernie Yaeger
 
You are absolutely right. My reply was hasty.
If you create (or add) a crystal report to your vb app,
you can Dim it like any other object.

Programatically you can set a report's default orientation
with something like:

Dim MyReport as new rptCrystalReportIMade
MyReport.PrintOptions.PaperOrientation = PaperOrientation.Landscape
 
Hi Mark,

You're correct. Actually, setting it in code might be a bit better, because
there may be some occasions when a report could be printed both ways. Using
your approach, a user could select the orientation when choosing to print
the report. That choice would run the code you suggest in an if
conditional.

Bernie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top