I have code for showing reports like this:
Dim rs as new ADODB.recordset
set rs= something.....
dim Report as new rptTest
Report.Database.SetDataSource rs
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
This works fine, report is ok, but when I click Export button it doesn't work. I don't know why?
OK, I decide to put another button Export to form and to write export function.
I need to get report from CRViewer but I don't know how to do this, something like this:
set report=CRViewer1.ReportSource
report.export.....
but this doesn't work.
How to get report from CRVIEWER?
Dim rs as new ADODB.recordset
set rs= something.....
dim Report as new rptTest
Report.Database.SetDataSource rs
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
This works fine, report is ok, but when I click Export button it doesn't work. I don't know why?
OK, I decide to put another button Export to form and to write export function.
I need to get report from CRViewer but I don't know how to do this, something like this:
set report=CRViewer1.ReportSource
report.export.....
but this doesn't work.
How to get report from CRVIEWER?