
Report orientation different when sent to different printers.
Hi Graeme.
This is what Crystal does. When you change printers, Crystal sets the printer
settings back to the Default Printer settings. With Crystal 7, unless you are
using the Print Engine calls, you cannot do anything with this, the RDC and OCX
are useless.
In version 8, the RDC has access to the DevMode structure where the printer
settings are located but not in the version you have.
If you are using the Print Engine calls, you need to include the module
CRWrap.BAS and use crPEGetSelectedPrinter after opening the Print Job. This get
the printer settings from your report. You can then call crPESelectPrinter to
reset the DevMode structure with the settings you retrieved.
If you would like, you can download a sample Print Engine application that will
show you how to do this. You can go to Seagate's site at:
http://support.seagatesoftware.com/updates
and download the file called printer.exe.
--
Sincerely,
Brian Dong
To reply, remove nospam from the address.
Quote:
> Hi,
> I have designed reports which are run on my server but routed to different
> network printers.
> The report orientation always comes out according to the default setting of
> the routed printer.
> But it doesn't happen when I sent the same printer as the default printer of
> the server. The orientation comes out correctly.
> I am using Crystal Report 7.
> Could anyone advise me on this. Thank you.
> Graeme Conrad Oei