Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Printer
Message
From
20/05/2003 14:37:32
 
 
To
20/05/2003 13:43:28
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Title:
Miscellaneous
Thread ID:
00790638
Message ID:
00790679
Views:
16
Ramon:

You can select a particular printer with the SelectPrinter Method:
The print setup dialog should come up with
loCRW = CREATEOBJECT("CrystalRuntime.Application")
loRpt = locrw.OpenReport("fully qualified path to your report.rpt")
loRpt.PrinterSetup(0) && 0 current window..

If you need to set to a default printer for a particular printer without user intervention:

oRPT.SelectPrinter(cDriver, cPrinter, cPort)

Hope this helps ---

Regards
Haydn Doughty

If you do not have it, get a copy of CrysDev: A Developer's Guide to Integrating Crystal Report by - Craig Berntson --- A real life saver and a great book -- www.hentzenwerke.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform