Problem in accessing reports from CurDir()--"C" Dr

R

RAJ

Hi,
I am acccessing my crystal reports bundled version developed in VB.NET
2002.
I stored my report in local C drive and set the report source as
follows:
rptPositiveMatch.ReportSource = CurDir() &
"\Report\PositiveMatch.rpt"
But I got the error "Load Report Failed". I checked the path while
running the report, but it goes to different path and into the 'bin'
folder of my current project folder, instend of 'Report folder' as
set earlier.
Is there any resolution to direct the form to open the report from
current "C" drive of the local machine.
I don't know exactly what the CurDir() function does.Please let me
know if there is any alternative.
Thnaks,
Raj
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed)-spam.invalid (RAJ) scripsit:
I am acccessing my crystal reports bundled version developed in VB.NET
2002.
I stored my report in local C drive and set the report source as
follows:
rptPositiveMatch.ReportSource = CurDir() &
"\Report\PositiveMatch.rpt"
But I got the error "Load Report Failed". I checked the path while
running the report, but it goes to different path and into the 'bin'
folder of my current project folder, instend of 'Report folder' as
set earlier.

Where/how did you set the folder and why do you use 'CurDir'?
 

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