CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 30th, 2005, 11:42 PM
    crystalqueries crystalqueries is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 4
    crystalqueries is an unknown quantity at this point (<10)
    Exclamation Crystal Report with XSD DataSource

    Hi,

    Can anyone tell me how do we use Crystal Reports with ASP with XML as DataSource. I have an XML and an XSD file which I want to use as DataSource. PLease tell me a URL where I can find any samples. Or if anyone do have any sample of using them, please let me know.
    Reply With Quote
      #2    
    Old April 1st, 2005, 02:23 AM
    TomT TomT is offline
    Junior Member
     
    Join Date: Apr 2005
    Location: Mainz, Germany
    Posts: 3
    TomT is an unknown quantity at this point (<10)
    Lightbulb Re: Crystal Report with XSD DataSource

    Hi,

    I am also using an XML-File as Data Source (in CR 10). It is included via the CR-Designer as ADO.NET (XML) Datasource, as we didn't want to create DSN-Entries on every Client-Machine. We change the Path to the XML-File during runtime:

    dtsData.ReadXml(pstrReportXml);

    foreach (CrystalDecisions.CrystalReports.Engine.Table tbl in cr.Database.Tables)
    {
    if (tbl.Name[0]=='YourCrTable')
    {
    tbl.SetDataSource(dtsData);
    }
    }

    Hope this helps.

    A Problem we have: CR does not seem to interpret the XSD-File. It is linked in the XML-File via

    <dataroot xmlnsd="urn:schemas-microsoft-comfficedata"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="001.xsd">
    -----------------------------------------------------------

    Does anyone know a workaround?
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:32 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009