Re: VB and Crystal Report
Did you already create your report in CR? What version of CR are you using? Your only wanting to print the one record as entered by the user?
Re: VB and Crystal Report
i have not created the report yet bcoz my concepts was not clear about transfering the data form VB to Cr. I m using Cr 8.5. I want to print the report of the selected record.
Thanks
Re: VB and Crystal Report
After you create your report you can use the example code I have in my signature. It works with ADO, VB6, and CR 8.5
Re: VB and Crystal Report
Re: VB and Crystal Report
Is this question resolved?
Re: VB and Crystal Report
No, this question is not resolved HACK. Do u have any advise to solve the above mention problem
Re: VB and Crystal Report
Re: VB and Crystal Report
Hi RobDog888,
Thanks for the sample code you have given under your signature.
I tried the code. I am using VB6.0 ,CR8.0 and ADO. Things are working well till the code reaches oReport.Database.selectDatabase oRs,3,1.
It is giving an error message "Subscript beyond range". I suspect this is because oRs is defined as Ado.Recordset and value required in place of oRs in the oReport.Database.SelectDatabase line is data.
Can you please help me?
Can you also tell me how do I define the values for Datatag and Table No that come up after the Data in the same line while writing the code?
Thanks
GeoCrystal
Re: VB and Crystal Report
It should be .SetDataSource and not .SetDatabase. ;)
Re: VB and Crystal Report
I am used .setDatasource. Getting the same error. Any other way?
Thanks
GeoCrystal
Re: VB and Crystal Report
Step through your code and verify that the error is on that line.
The only other thing I can think of is that your using 8.0 which may have different arguments.