Invalid Report Source after upgrading to VS.NET 2003 from VS.NET2002

Invalid Report Source after upgrading to VS.NET 2003 from VS.NET2002

Post by Naimul Hu » Thu, 24 Apr 2003 00:18:17



After upgrading to VS.NET 2003 I am getting "Invalid Report Source". I have
changed all my crystal references to 9.1.5000.0
The error exists when I try to load a report on the fly ( untyped)
Here is what I did to load a report:
...
rpt1.Load(dlg.FileName)
GetReportServerInfo(rpt1)
crv1.ReportSource = rpt1
...

Private Function GetReportServerInfo(ByVal rpt1 As ReportDocument) As
ReportDocument
crTableLogOnInfo = New TableLogOnInfo
Dim i As Integer
For i = 0 To rpt1.Database.Tables.Count - 1
With crTableLogOnInfo.ConnectionInfo
.ServerName = SCS.GetConfig("SERVERNAME") 'physical server name
.DatabaseName = "datbaseusername"
.UserID = "databaseuserid"
.Password ="password"
rpt1.Database.Tables.Item(i).ApplyLogOnInfo(crTableLogOnInfo)
End With
Next
Return rpt1
End Function

-----------------------------
This was working perfect when I was having old VS.NET2002.
I have applied hotfixed and registered again crystal with old productid and
key.

Any one? Thanks in advance.

 
 
 

Invalid Report Source after upgrading to VS.NET 2003 from VS.NET2002

Post by Darin Clar » Thu, 24 Apr 2003 03:27:41


I am having the same problem.


Quote:> After upgrading to VS.NET 2003 I am getting "Invalid Report Source". I
have
> changed all my crystal references to 9.1.5000.0
> The error exists when I try to load a report on the fly ( untyped)
> Here is what I did to load a report:
> ...
> rpt1.Load(dlg.FileName)
> GetReportServerInfo(rpt1)
> crv1.ReportSource = rpt1
> ...

> Private Function GetReportServerInfo(ByVal rpt1 As ReportDocument) As
> ReportDocument
> crTableLogOnInfo = New TableLogOnInfo
> Dim i As Integer
> For i = 0 To rpt1.Database.Tables.Count - 1
> With crTableLogOnInfo.ConnectionInfo
> .ServerName = SCS.GetConfig("SERVERNAME") 'physical server name
> .DatabaseName = "datbaseusername"
> .UserID = "databaseuserid"
> .Password ="password"
> rpt1.Database.Tables.Item(i).ApplyLogOnInfo(crTableLogOnInfo)
> End With
> Next
> Return rpt1
> End Function

> -----------------------------
> This was working perfect when I was having old VS.NET2002.
> I have applied hotfixed and registered again crystal with old productid
and
> key.

> Any one? Thanks in advance.


 
 
 

Invalid Report Source after upgrading to VS.NET 2003 from VS.NET2002

Post by Darin Clar » Thu, 24 Apr 2003 05:44:09


Found the solution.
Go into the properties of the project and under configuration. There was a
reference path for the old version of CrystalDecisions.Windows.Forms.
Took that out and then it started referencing the new
CrystalDecisions.Windows.Forms


> I am having the same problem.



> > After upgrading to VS.NET 2003 I am getting "Invalid Report Source". I
> have
> > changed all my crystal references to 9.1.5000.0
> > The error exists when I try to load a report on the fly ( untyped)
> > Here is what I did to load a report:
> > ...
> > rpt1.Load(dlg.FileName)
> > GetReportServerInfo(rpt1)
> > crv1.ReportSource = rpt1
> > ...

> > Private Function GetReportServerInfo(ByVal rpt1 As ReportDocument) As
> > ReportDocument
> > crTableLogOnInfo = New TableLogOnInfo
> > Dim i As Integer
> > For i = 0 To rpt1.Database.Tables.Count - 1
> > With crTableLogOnInfo.ConnectionInfo
> > .ServerName = SCS.GetConfig("SERVERNAME") 'physical server name
> > .DatabaseName = "datbaseusername"
> > .UserID = "databaseuserid"
> > .Password ="password"
> > rpt1.Database.Tables.Item(i).ApplyLogOnInfo(crTableLogOnInfo)
> > End With
> > Next
> > Return rpt1
> > End Function

> > -----------------------------
> > This was working perfect when I was having old VS.NET2002.
> > I have applied hotfixed and registered again crystal with old productid
> and
> > key.

> > Any one? Thanks in advance.

 
 
 

1. Invalid Report Source after upgrading to VS.NET 2003 from VS.NET 2002

After upgrading to VS.NET 2003 I am getting "Invalid Report Source". I have
changed all my crystal references to 9.1.5000.0
The error exists when I try to load a report on the fly ( untyped)
Here is what I did to load a report:
...
rpt1.Load(dlg.FileName)
GetReportServerInfo(rpt1)
crv1.ReportSource = rpt1
...

Private Function GetReportServerInfo(ByVal rpt1 As ReportDocument) As
ReportDocument
crTableLogOnInfo = New TableLogOnInfo
Dim i As Integer
For i = 0 To rpt1.Database.Tables.Count - 1
With crTableLogOnInfo.ConnectionInfo
.ServerName = SCS.GetConfig("SERVERNAME") 'physical server name
.DatabaseName = "datbaseusername"
.UserID = "databaseuserid"
.Password ="password"
rpt1.Database.Tables.Item(i).ApplyLogOnInfo(crTableLogOnInfo)
End With
Next
Return rpt1
End Function

-----------------------------
This was working perfect when I was having old VS.NET2002.
I have applied hotfixed and registered again crystal with old productid and
key.

Any one? Thanks in advance.

2. WEIRD ABEND MESSAGE -- Help!!

3. Crystal Report Veiwer msg Invalid Report Source after Studio.NET 2003 upgrade

4. hangs at RCPT TO:

5. Visual Studio 2003 Upgrade, problems with Crystal Report, Invalid Report Source

6. Palm Desktop won't launch

7. Install VS.NET 2003 upgrade without VS.NET 2002 installed

8. Kernel size?

9. Upgrade from VS.NET 2002 to VS.NET 2003

10. How do I upgrade VS.NET 2002 to VS.NET 2003

11. Upgrade to VS.NET 2003 FAILED under windows server 2003!

12. VS.NET 2003 Final Beta - > VS.NET 2003 Final -> ERRORS!!!!!!!!!!!!!!!

13. VS.NET 2003 - How to upgrade ASP.NET apps?