?
Solved

How to set datasource to application's path for xml file with Crystal Report?

Posted on 2011-03-23
8
Medium Priority
?
1,002 Views
Last Modified: 2012-05-11
Hello,

Usually when I want my report to access the data source, I set the file's path as Same as Report and it works ok, however when using xml as a data source, it doesn't work, it wants a specified path even when I select same as report, any ideas how to fix this problem?

Thanks,

Victor
0
Comment
Question by:vcharles
  • 4
  • 3
7 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 35203201
Where are you seeing the same as report?

What version of Crystal?

I wrote lots of reports with XML files as the source for a project.  WHat we did was specify a specific directory to keep the XML files in.  They were generated by the application after the user specified the filtering cirteria.  In that way there was never a need to change the data source.

mlmcc
0
 

Author Comment

by:vcharles
ID: 35203745
Hi,

I am trying to set the path to "Same as Report" from the Set Data Cource Location under the properties option which contains the following options: Database Type, Internal Connection and FilePath:

I need to be able to install the application to any folder, thast is why I  need the report to access the xml file from the installation's path.

Thanks,

Victor
0
 

Author Comment

by:vcharles
ID: 35203765
Forgot to mention, when I click on "Same as report" as receive a dialog box with the following option:

File Path:

Class Name

Use Dataset from class

Victor
0
Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

 

Accepted Solution

by:
vcharles earned 0 total points
ID: 35203796
It's working, I included the file's name in the File Path: textbox and copied the report and xml file to a new folder and it worked.

Thamks,

Victor
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35203810
Great.  I thought that option had disappeared and at that time was only really useful for Access and other similar PC databases

mlmcc
0
 

Author Comment

by:vcharles
ID: 35295893
Please close this case. I figured out the solution.
Thank You.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 35688023
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question