Crystal reports Viewer Problem
Hi all
I have just VB.Net installed not the whole Visual Studio suite as I couldn't afford to buy it.
However I do have MSDE installed and I do have Crystal reports installed becaused I use them anyway.
Is there any way i can get hold of the CrystalReportViewer without having to buy the whole Visual Studio suite so that I can write an app for my Crystal reports.
Thanks
Iain
Re: Crystal reports Viewer
found it.
Right-clcked on toolbar and selected .com components and there it was.
Iain
Re: Crystal reports Viewer Problem (beginner)
Even though I found it I am having problems using it.
I am trying to follow a basic example in a .NET tutorials book. Unfortunately the book uses the whole visual studio etc.
WHereas I am creating my report in Crystal and then trying to link to it from my form.
I have a basic form which shows 2 controls, a button and the CrystalReportViewer.
below is the code I put behind the button click
------------------------------------------------------------
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
CrystalReportViewer1.ReportSource=("C:\Documents and Settings\iain\My Documents\Visual Studio Projects\Crystal Sample database\Xtreme Customer List.rpt")
End Sub
-------------------------------------------------------------------
The app loads OK then I click on my button to load the report and get the following error message;
"An unhandled exception of type 'System.InvalidCastException' occurred in axinterop.crviewerlib.dll
Additional information: No such interface supported"
Re: Crystal reports Viewer Problem
rpt.load("C:\path")
CrystalReportViewer.reportsource = rpt
iT goes sometin like that. Hope it works.