|
-
Oct 4th, 2000, 11:03 AM
#1
Thread Starter
New Member
Guess what? I still need help (both with crystal and medical)...
For some reason or another a set of quite complex reports are failing to print when called from VB. Everything seems to be fine - the code runs, the little dialog box appears but nothing comes out of the printer.
The data is stored in an SQL7 server and we are using version 7 of crystal, can anybody out there (not Mulder) shed some light on what is maybe going wrong, is their anything blindingly obvious that we are missing? Below is an example of the fairly simple code that we are trying to use to print the reports.
CrystalReport1.Connect = "odbc;driver={SQL Server};server=<Server Name>;uid=<Username>;pwd=<password>;database=<DB Name>"
CrystalReport1.Destination = crptToPrinter
CrystalReport1.CopiesToPrinter = 1
CrystalReport1.ReportFileName = "<Report Path & filename>
CrystalReport1.PrintReport
Thanks in advance.
Ian Duckhouse
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|