sorry, I can not. the details are as following:

lilyba (lily)
<本文发表于: 相约加拿大:枫下论坛 >
i use ttx/ado to build the report, for each report (main report and subreport) there is only one database. for every database, there is a field 'PersonID'.
i do not know how to build the link of database between main report and sub report. i thought the relationship are built automatically.
in the program, i open main database by "grptReport.Database.SetDataSource rstemp, , 1",
and then Set objSubReport = objSection.ReportObjects.Item(nIndex).OpenSubreport, objSubReport.Database.SetDataSource rstemp
then the following error occured:
report (main): database
run-time error '-2147417848'
method 'viewreport' of object 'ICrystalReportViewer' failed.
when i put the subreport personeducation into the report' reportheader.

I use Crystal Report the first time. So sometimes, I even do not know why the error occur. And I do not know if it is caused by Crystal Report itself since I do not install it correctly.

i have been working on this problem for 3 days. but i can not solve it. my email is if you do not mind would you pls tell me your phone and i can ask you in details.

Thanks again.
<本文发表于: 相约加拿大:枫下论坛 >

2001-7-29 -04:00

回到话题: Help. I try to use Crystal Report in VB. But this is the first time. Who has this kind of experiences?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论