Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default binding pivotchart with sql server in vb.net

hi !

i have written the following code to programmatically bind the pivot chart
with sql server but till now i m not getting any success. i am pasting my
code below.plz help me .thanks.



Dim oconnection As SqlClient.SqlConnection = New
SqlClient.SqlConnection("Server=awais;Database=sta tlogs;integrated
security=true")

oconnection.Open()

Dim oselectcommand As New SqlClient.SqlCommand("select date from
designfile", oconnection)

Dim odataAdapter As New SqlClient.SqlDataAdapter(oselectcommand)

ptable.ConnectionString = "Server=awais;Database=statlogs;integrated
security=true"

Dim odataset As New DataSet("ptable")

odataAdapter.Fill(odataset, "abc")

ptable.DataMember = "196$"

cspace.DataSource = ptable

oconnection.Close()

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicating PivotChart / Changing PivotChart data range BillG Charts and Charting in Excel 0 February 4th 09 08:56 PM
Excel 2003 Error Cannot Locate the Internet Server or Proxy Server Seabee Excel Discussion (Misc queries) 0 November 20th 05 12:03 AM
problem updating link from Novell server to windows server #REF er Ellen Excel Discussion (Misc queries) 0 May 10th 05 09:18 PM
Late Binding examples of binding excel application HeatherO Excel Programming 13 March 17th 05 08:19 AM
EARLY binding or LATE binding ? jason Excel Programming 6 February 26th 04 04:57 PM


All times are GMT +1. The time now is 09:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"