Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Crystal Reports XI

Crystal Reports XI

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasevisual-studioxmlhelp
12 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B bobbymale77

    I dont think CR knows how to read XML. You need to convert the XML to MDB/DBF/SQL so that your CR template can read those tables not file. Or another way doing it is to use XML to datagrid and datagrid is your datasource.

    S Offline
    S Offline
    SudhaMall
    wrote on last edited by
    #3

    I am trying to use XSD file.

    S 1 Reply Last reply
    0
    • S SudhaMall

      I am trying to use XSD file.

      S Offline
      S Offline
      SudhaMall
      wrote on last edited by
      #4

      Also, I am trying to do this directly in Crystal IDE, not via .net.

      B 1 Reply Last reply
      0
      • S SudhaMall

        Also, I am trying to do this directly in Crystal IDE, not via .net.

        B Offline
        B Offline
        bobbymale77
        wrote on last edited by
        #5

        In your Crystal Report you reference the schema by opening the Field Explorer, right clicking Database Fields, selecting Database Expert, expanding the Create New Connection node, and the ADO.NET (XML) node then double clicking Make New Connection. At the ADO.NET (XML) dialog set the File Path to your XSD file by clicking the elipses and navigating to the schema file

        S 1 Reply Last reply
        0
        • B bobbymale77

          In your Crystal Report you reference the schema by opening the Field Explorer, right clicking Database Fields, selecting Database Expert, expanding the Create New Connection node, and the ADO.NET (XML) node then double clicking Make New Connection. At the ADO.NET (XML) dialog set the File Path to your XSD file by clicking the elipses and navigating to the schema file

          S Offline
          S Offline
          SudhaMall
          wrote on last edited by
          #6

          That is what I am trying to do, but I do not see the ADO.NET option at all. All I see are: Access/Excel Database Files ODBC OLE DB Universes More DataSources. I tried to use Database Files option, but as soon as I select the XSD file, I get the error "Failed to load Database Info". I click OK and then I get "Unknown Database connector Error". Thanks for trying to help me. Sudha

          B 1 Reply Last reply
          0
          • S SudhaMall

            That is what I am trying to do, but I do not see the ADO.NET option at all. All I see are: Access/Excel Database Files ODBC OLE DB Universes More DataSources. I tried to use Database Files option, but as soon as I select the XSD file, I get the error "Failed to load Database Info". I click OK and then I get "Unknown Database connector Error". Thanks for trying to help me. Sudha

            B Offline
            B Offline
            bobbymale77
            wrote on last edited by
            #7

            go to Create New Connection go to Databases Files on the drop down Files of Type select XML Files (*.xml;*.xsd) point to your file and click Open.

            S 1 Reply Last reply
            0
            • B bobbymale77

              go to Create New Connection go to Databases Files on the drop down Files of Type select XML Files (*.xml;*.xsd) point to your file and click Open.

              S Offline
              S Offline
              SudhaMall
              wrote on last edited by
              #8

              That is when I get that error.

              B 1 Reply Last reply
              0
              • S SudhaMall

                That is when I get that error.

                B Offline
                B Offline
                bobbymale77
                wrote on last edited by
                #9

                Do you have the Login and Password? Is the file locally stored on your Workstation?

                S B 2 Replies Last reply
                0
                • B bobbymale77

                  Do you have the Login and Password? Is the file locally stored on your Workstation?

                  S Offline
                  S Offline
                  SudhaMall
                  wrote on last edited by
                  #10

                  yes it is. This is what I did to create the XSD file: I have an ODBC conn to MYSQL. Using this conn, from .net, I created the XSD file by adding a dataset object.I am trying to use this XSD in Crystal IDE and that is when I am getting the error.

                  1 Reply Last reply
                  0
                  • B bobbymale77

                    Do you have the Login and Password? Is the file locally stored on your Workstation?

                    B Offline
                    B Offline
                    bobbymale77
                    wrote on last edited by
                    #11

                    If your template trying to access the server you need to have ODBC connector from your workstation to the server where the XML/XSD located. Go to Control Panel\Administrative Tools\Data Sources. Make sure the Server\XSD table listed with correct Login and password. Then your template will open using the connector from your Workstation to the server and drills to the server to get the XSD and frame it against your template.

                    B 1 Reply Last reply
                    0
                    • B bobbymale77

                      If your template trying to access the server you need to have ODBC connector from your workstation to the server where the XML/XSD located. Go to Control Panel\Administrative Tools\Data Sources. Make sure the Server\XSD table listed with correct Login and password. Then your template will open using the connector from your Workstation to the server and drills to the server to get the XSD and frame it against your template.

                      B Offline
                      B Offline
                      bobbymale77
                      wrote on last edited by
                      #12

                      Sudha. I currently have hundreds of CR rpt files that utilizing DBF, MDB, SQL and experiencing no issues at all. My last attempt is to look at the XSD from your Workstation using Microsoft Access and if the table opens that means you have connections and if the table does not open that means connections from the server is no good. If this does not help I give up.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups