G
Guest
I am tryng to load a Crystal Report in Visual Studio 2005 but I'll get "Load
report failed"...
I have tryed to load the file with a FileStream and it works without error
so I can load the file as I have understand it...
My simple code to test report loading:
string reportPath = Server.MapPath("report.rpt");
try
{
FileStream fs = new FileStream(reportPath, FileMode.Open);
}
catch(Exception ex)
{
// Something went wrong
}
crystalReportViewer.ReportSource = reportPath;
The strange thing is that everything works fine if I'm working on my local
machine but not on my DevelopingServer... What's the difference? Both have
VS2005 with crystal reports 10 but my local machine have win XP and the
DevelopingServer have win2003...
report failed"...
I have tryed to load the file with a FileStream and it works without error
so I can load the file as I have understand it...
My simple code to test report loading:
string reportPath = Server.MapPath("report.rpt");
try
{
FileStream fs = new FileStream(reportPath, FileMode.Open);
}
catch(Exception ex)
{
// Something went wrong
}
crystalReportViewer.ReportSource = reportPath;
The strange thing is that everything works fine if I'm working on my local
machine but not on my DevelopingServer... What's the difference? Both have
VS2005 with crystal reports 10 but my local machine have win XP and the
DevelopingServer have win2003...