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. C#
  4. PivotTable and DataSet

PivotTable and DataSet

Scheduled Pinned Locked Moved C#
questioncsharphelp
4 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.
  • H Offline
    H Offline
    hxxbin
    wrote on last edited by
    #1

    Hi Well, my question today is how I could use a dataset into a PivotTable?? I try to use a PivotTable v10 into my C# project, and I wanna bind it from a dataset, but I don't know how. The PivotTable just can be binded from a DataSource :(. If someone work with PivotTable in C#, please help me. Thanks ---- hxxbin

    H 1 Reply Last reply
    0
    • H hxxbin

      Hi Well, my question today is how I could use a dataset into a PivotTable?? I try to use a PivotTable v10 into my C# project, and I wanna bind it from a dataset, but I don't know how. The PivotTable just can be binded from a DataSource :(. If someone work with PivotTable in C#, please help me. Thanks ---- hxxbin

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      It must bind against an ADO data source, not an ADO.NET data source. In order to do this, you must import the ADO typelib. If you have installed VS.NET, it is recommended that you use the Primary Interop Assembly (PIA) created by Microsoft, adodb.dll. This is found by default in Program Files\Microsoft.NET\Primary Interop Assemblies. You use ADO much like you use ADO.NET: you create connections and commands and execute that command to get back an ADO recordset, which you can then set as the PivotTable.DataSource property value.

      Microsoft MVP, Visual C# My Articles

      H 1 Reply Last reply
      0
      • H Heath Stewart

        It must bind against an ADO data source, not an ADO.NET data source. In order to do this, you must import the ADO typelib. If you have installed VS.NET, it is recommended that you use the Primary Interop Assembly (PIA) created by Microsoft, adodb.dll. This is found by default in Program Files\Microsoft.NET\Primary Interop Assemblies. You use ADO much like you use ADO.NET: you create connections and commands and execute that command to get back an ADO recordset, which you can then set as the PivotTable.DataSource property value.

        Microsoft MVP, Visual C# My Articles

        H Offline
        H Offline
        hxxbin
        wrote on last edited by
        #3

        Thanks, I better try to use ADO :((, I don't know how use PIA :( It's hard to use PIA?? ---- hxxbin

        H 1 Reply Last reply
        0
        • H hxxbin

          Thanks, I better try to use ADO :((, I don't know how use PIA :( It's hard to use PIA?? ---- hxxbin

          H Offline
          H Offline
          Heath Stewart
          wrote on last edited by
          #4

          Just add a reference to it and access the classes just like you do with any other assembly.

          Microsoft MVP, Visual C# My Articles

          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