×

Loading...

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

本文发表在 rolia.net 枫下论坛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 bahaiyan@hotmail.com. if you do not mind would you pls tell me your phone and i can ask you in details.

Thanks again.更多精彩文章及讨论,请光临枫下论坛 rolia.net
Report