Load report failed

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top