Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export table to spreadsheet

Status
Not open for further replies.

pitt1

Programmer
Dec 25, 2005
13
GB
Hi all,
I'm viewing a sql table in a sharepoint Document,
i do this using some web service, (i coul'd also have done that using a data view, insert data base connection)
my problem is that either way i don't know how to convert this data into excel, while using sharepoint's lists enables me to "Export to spreadsheet" and easily doing that,

Best,
Pit.
 
If the results are in an HTML table, you should be able to cut and paste right into Excel and get a decent spreadsheet out of it. Or are you trying to do this programmatically/automatically?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Eschewing obfuscation diurnally.
 
Hi,
I'm trying to do this automatically, just like the option
i get when i'm using a sharepoint list: "Export to spreadsheet", if its can be done programmatically, i dont really know how

Best,
Pitt
 
How are you contacting the Web service? Through a custom Web part? You should be able to code the Excel creation in the web part code-behind.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Eschewing obfuscation diurnally.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top