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

control CR print engine through VB-code

Status
Not open for further replies.

user0001

Programmer
Jul 31, 2001
9
BE
Hi,
I have a report in Crystal Reports which a call from a visual basic application. Is there any way I can pass the 'number of copies to print' to the Crystal Reports Viewer through code in VB 6.0?
Thanks very much
 
See faq149-237.
Which integration method are you using?
The options are: OCX, RDC, API, Automation Server.
Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Hi,

I'm not sure what you mean with integration method. I use the report designer component viewer (crystal report viewer control). I need the files craxdrt.dll and crviewer.dll. Thanks in advance.
 
"report designer component" is the RDC.

Use the Report.PrintOut property, the second argument is the number of copies. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Hi,

I've tried that and it worked fine. Thank you very much!

Now another problem came up: Is it possible to pass the 'number of copies to print' separately for each page shown in the viewer?
Thanks in advance!
 
Not that I know of. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Well, I suppose since you can control the start page and stop page you could print only page one, setting the number of pages, and then go to page 2, etc. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
I've tried that and it worked, thanks very much for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top