Solved

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

Posted on 2011-03-23
8
915 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
8 Comments
 
LVL 100

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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 100

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 100

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now