Crystal Report Viewer in Visual Basic

  • Thread starter Thread starter Alexander Hoffmann
  • Start date Start date
A

Alexander Hoffmann

Hello newsgroup,
it's the firsttime that I work with the Crystal Report Viewer, so I have
some questions.

I have a old report with a own datasource. The report connect database about
a ODBC-driver.
Now, I want to use this report in my new programm. I insert in my programm a
crystal report viewer.
How can I open and show my Crystal report in the Crysatl report Viewer ?
I use for this problem the property "ReportSource", but I become the follow
errormeesage : "Error during opening a rowset!"
What's the reason for this errormessage ?

How Can I display my report in the crystal report viewer ? What I have to
attend ?

I hope you unterstand my problem and you can give me some helpful
information

Best Regards

Alexander Hoffmann from Germany
 
Hi Alexander,

You have to call the reportviewer control like this:
CrystalReportViewer1.ReportSource = "c:\myapp\history.rpt"

This will place the report in the viewer, and it will display on the screen.
If this is what you're doing and you are still having the error, please give
me more info on what the datasource is and more specs on your code.

HTH,

Bernie Yaeger
 
Back
Top