Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports 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 June 6th, 2006, 05:01 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic Data source with Native XML driver

I am trying to use dynamic data source for report ( XI ) with Native XML driver data.
My code :

    this.crystalReportViewer1.SuspendLayout();
    Report1 report = new Report1();

    DataSet dataSet = new DataSet();
    dataSet.ReadXml("resultTestReport.xml", XmlReadMode.ReadSchema);
    dataSet.WriteXmlSchema("resultTestReport.ds");
    try
    {
        report.SetDataSource(dataSet);
    }
    catch (Exception ex)
    {
        MessageBox.Show(ex.Message);
    }

    this.crystalReportViewer1.ReportSource = report;
    this.crystalReportViewer1.Refresh();

Gives me a message that it can't find the table and does not change the XML data source file

Thank you


 
Old November 30th, 2006, 11:42 AM
Registered User
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you ever find a solution for this problem about dynamically changing the data source for the native XML driver? Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Source Tools to generate XML from SQL data ethanhunt XML 0 May 7th, 2008 02:55 PM
Data source name not found and no default driver s Durkee VB.NET 2002/2003 Basics 0 September 21st, 2007 01:11 PM
Dynamic sql data source MDM ASP.NET 2.0 Professional 3 April 5th, 2006 11:45 PM
XML native databases codesamurai XML 2 January 28th, 2006 01:13 PM
Data source name not found and no default driver s bjtindle Classic ASP Databases 5 September 10th, 2003 04:35 AM





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