Wrox Programmer Forums
|
BOOK: Professional Crystal Reports for VS.NET
This is the forum to discuss the Wrox book Professional Crystal Reports for Visual Studio .NET by David McAmis; ISBN: 9780764544033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Crystal Reports for VS.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2004, 04:00 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default accessing an XML file with Filename in a var c#

Hi,
I have an XML file with the file name accessible through a variable File.Filename() I want to give CR the variable instead of setting it in the wizard. Does anyone know if this is this possible?
I have
StatReport myReport = new StatReport(); //The report
DataSet myDataset = new DataSet(); //The Dataset
myDataset.ReadXml(File.FileName()); //Read the File
myReport.SetDataSource(myDataset); /Set the datasource

But in the Crystal Report I seem to be required to select a static location for my source file through the wizard. Can I set the XML File Path property to a variable, File.FileName() anywhere?
Thanks all!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying your source xml filename Chamkaur XSLT 2 March 12th, 2007 04:32 AM
Accessing jboss mail-service.xml file mariamr J2EE 0 July 6th, 2006 03:54 AM
How do I use a global var as an output file name pmcquirk SQL Server DTS 2 May 5th, 2006 03:34 AM
Filename of xml in xslt? surfer97301 XSLT 2 July 4th, 2003 02:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.