Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.infopath
external usenet poster
 
Posts: 1
Default extracting data from sharepoint

I'm programmatically creating a spreadsheet using VB.NET. The code
gets the data from a sharepoint document library. right now i'm using
a web query:

With sheet.QueryTables.Add(Connection:= _
"URL;https://www.xxx.com/sites/xxx/xxxx/xxx/AllItems.aspx" _
, Destination:=sheet.Range("a1"))

this works, but i need to insert some SQL into the query to limit the
number of records. How would i figure out the syntax? all the
examples i can find are for SQL Server, not a SharePoint library.

would i be better off using a SharePoint Web Service?

thanks in advance!
  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.infopath
external usenet poster
 
Posts: 1
Default extracting data from sharepoint

Hello,

You have posted your question to an Infopath newsgroup by mistake. Try one
of the Sharepoint newsgroups.

I believe this would be possible using the Sharepoint SDK
(http://msdn2.microsoft.com/en-us/library/bb693438.aspx), so you might try
that resource before reposting to the sharepoint groups.

Gavin.

"steve" wrote:

I'm programmatically creating a spreadsheet using VB.NET. The code
gets the data from a sharepoint document library. right now i'm using
a web query:

With sheet.QueryTables.Add(Connection:= _
"URL;https://www.xxx.com/sites/xxx/xxxx/xxx/AllItems.aspx" _
, Destination:=sheet.Range("a1"))

this works, but i need to insert some SQL into the query to limit the
number of records. How would i figure out the syntax? all the
examples i can find are for SQL Server, not a SharePoint library.

would i be better off using a SharePoint Web Service?

thanks in advance!

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
Excel links & SharePoint 3.0 (worked fine with SharePoint 2.0) ScottFisher2004 Excel Discussion (Misc queries) 0 November 10th 08 03:26 PM
Import sharepoint data to Excel 2007 [email protected] Excel Programming 0 July 6th 07 08:43 PM
Possible to import data from spreadsheets on sharepoint site? Sharepoint newbie Excel Discussion (Misc queries) 0 July 2nd 07 02:14 PM
Retrieve xml data from SharePoint JimDandy Excel Worksheet Functions 1 April 10th 06 04:38 PM
External Data from Sharepoint Dan[_46_] Excel Programming 5 January 25th 05 05:26 PM


All times are GMT +1. The time now is 02:36 PM.

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"