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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

landscape settings

Status
Not open for further replies.

DanNorris2000

Technical User
Nov 10, 2000
186
US
Something weird going on with Crystal reports call with VFP. Reports that were defined as landscape are reverting back to portrait. Is there a way to add code to assure a landscape orientation?

oCRapp = createobject("crystal.crpe.application")
oRep = oCRapp.openreport("k:\vfp\reinsurance\reports\35pf.rpt")
oRep.printout(.f.)
thanks
 
I've noticed that if the report does not have a default printer chosen, you cannot successfully use landscape. (v8.5 mostly with Delphi) Have you switched the reports to the "no printer" option recently.

I had to be sure a particular print driver was available to all my users, despite most of them not wanting to use that printer, and set the landscape reports to that printer as default in the report --then change it later.
 
It is possible that this (and all)Report(s) will be printed on any number of different printers. How do you get by this in design to be acceptable to most printers? This particular report was defined in print setup as a HP8000n , but will eventually be run on a HPIIIsi. Looking at the reports side by side there are several discrepencies.
 
There will always be some differences, this is the case with a Word document or a spreadsheet too.

The key is to use standard fonts (not printer specific), allow plenty of room between objects, and use guides for alignment.

-k
 
I'm finding that out, thanks. Margins appear to be different from printer to printer also. Arial or courier good fonts to use?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top