|
-
Jun 30th, 2005, 08:11 AM
#1
Thread Starter
Lively Member
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
Last edited by Iain Wicks; Jun 30th, 2005 at 08:50 AM.
-
Jun 30th, 2005, 08:31 AM
#2
Thread Starter
Lively Member
Re: Crystal reports Viewer
found it.
Right-clcked on toolbar and selected .com components and there it was.
Iain
-
Jun 30th, 2005, 08:59 AM
#3
Thread Starter
Lively Member
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"
-
Jul 7th, 2005, 03:34 AM
#4
New Member
Re: Crystal reports Viewer Problem
rpt.load("C:\path")
CrystalReportViewer.reportsource = rpt
iT goes sometin like that. Hope it works.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|