We help IT Professionals succeed at work.
Get Started

Invalid Report file path

ThummalaRaghuveer
on
2,722 Views
Last Modified: 2012-06-21
Hi,
    I'm new to crystal reporting. I'm trying to create my first crystal report on Windows XP Pro (database SQL Server 2000) .
I created my report CrystalReport3.rpt and when I tried to call this report using CrystalViewer from a WebForm it fails at
 rpt.load("C:\\Inetpub\\wwwroot\\CrystalReportDemo\\CrystalReport3.rpt")  giving me "Invalid Report file path" exception where rpt is of the type ReportDocument.I tried using rpt.load(Server.MapPath(".\\CrystalReportDemo")+"CrystalReport3.rpt")) but that didn't work either.

I tried using ConnectionInfo object but that didn't work too...can anyone help me out with this problem.
Comment
Watch Question
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE