Code to run report creating by Crystal Report 9

Z

zazie

I'm not expert in English.
So I may make mistake in English.
I will describe it as clearly as I can.

I created report using Crystal Report9.
The report name is "TRF.rpt".
I used database table from Access 2003 to create the report.

I would like to run the report "TRF.rpt" using Access 2003.
The path file of report is "D:\plu\Asset\rpt\TRF.rpt".
And the path file of Access file is "D:\plu\Asset\Asset.mdb"
I created new form and used control "Crystal Report Viewer Control" on the
form.
And I declared the code in load form event as below:

Private Sub Form_Load
CrystalReportViewer1.Parent = Me
CrystalReportViewer1.ReportSource = "\rpt\TRF.rpt"

End Sub

And it didn't work.

Please help me ASAP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top