Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal reports RDC
Message
De
20/09/2000 14:10:12
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00362345
Message ID:
00418656
Vues:
27
Roxanne,

>My Crystal Report app is darn near ready to roll out & I hit a printer weirdness on one out of four test machines where the report previews & prints in landscape no matter what. The printer is the machines default and is suppose to default to Portrait, yet in my app and my app only it misbehaves :(

>I have normal VFP Printer/Page setup tied into the form where my "print" button triggers Crystal, but even if we manually set page layout to Potrait, this darn machine sends it landscape. I was looking for a way in Crystal to force it to be portrait no matter what, I take it this FOCUS.FLL would be only way to force the printer to be Portrait?

First off all, the VFP printer/setup, sys(1037) is getting you nowhere when dealing with crystal Reports.

You can set your printer settings in the report itself (like you can with a VFP report) under File - Printer setup. Here you can force the report to print portrait.

However, in most cases you don't like to include printer specific info into your report, because the printer where the report is to be printed on might change.

I asume that you've tried oReport.Paperorientation = 1, but found it not to work. In that case, the only way I see is to use the FOCUS.FLL and use the code I previously gave. In addition you can set other printerparameters, like margins, papersize directly via the report object. See the developers.hlp: Report Designer Component book, Crystal Report Designer Component Object model topic.

B.t.w. The Focus.fll provides many valuable functions to information that is difficult to retrieve in VFP. I've been using it for about two years now. I found it a valuable addition..

Good luck,

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform