Crystal Reports, and XML. Using a relative path

Kevin Ledama

New member
Joined
Oct 4, 2011
Messages
1
Location
Nairobi, Kenya, Kenya
Programming Experience
1-3
Hello, I am using Visual studios to generate an XML file, then the program opens a Crystal Viewer to open a report based on the data in the XML report. However, the Datasource of the report is set to the XML file, and the path is not relative. So if I move the program it generates the XML file in a different location, and the report can't find it. So I would like the report to simply look in the same directory for the XML file.

Could someone please tell me how to set the datasourse to the path of the XML file at runtime, or permanently set the datasource to a relative path. Thanks
 
Back
Top