Hello everybody
I`ve been playing around with Crystal Reports 10 for awhile. Now I want to call a report I created from VB 6. How can I go about? Do I need to include a reference to Crystal Reports 10 in my project.
George Papadopoulos
Printable View
Hello everybody
I`ve been playing around with Crystal Reports 10 for awhile. Now I want to call a report I created from VB 6. How can I go about? Do I need to include a reference to Crystal Reports 10 in my project.
George Papadopoulos
Add a crystalreport component. Then set the report file property to your report which was created.
Then place the code :
crystalreport1.action=1
ok. So that means that I should make whatever filtering in the external Crystal Reports file. But what if I want to pass a parameter from my application to the form. E.t.c. I want to pass a date the user has entered, which will possibly reduce the recordset.
Can that be done?
try thisRobDogg's
ok. I see that with Robdog`s code one can filter out the recordset passed to the report. But what about the report design process. When I create a new blank report in Crystal Reports it immediately ask for the connection info, so that I have access to the fields and tables I want. Does this interfere with Robdog`s code in any way?
have a look in this one, i got it from this forum also.
ok. thx. I`ll check that out as well. One thing I don`t understand in Robdog`s code is the crvMyViewer object. Ok, I can add a reference to the Crystal Reports viewer control but doesn`t this object need to be defined somewhere?
Something like :
or is this some sort of control I can place on a form?Code:Dim crvMyCrViewer As CRAXDRT.ReportViewer
nope it is declared
"Dim crvMyCrViewer As CRAXDRT.ReportViewer"
One final thing. Which library do I need to reference in order to use the CRAXDRT objects? Visual Basic does not recognize CRAXDRT as is!