Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 How do they do that?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mafifi
Junior Member

USA
308 Posts

Posted - 07 March 2005 :  20:22:26  Show Profile  Send mafifi an ICQ Message
I seen it on many ASP driven sites. The developer will provide an option for the user to exort the DB query results into Word Doc or Excel by clicking on a link on the page. I would appreciate it if you send me in the right direction.

Regards,

Mo

Podge
Support Moderator

Ireland
3776 Posts

Posted - 07 March 2005 :  21:00:54  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Tableeditor has this functionality (db >> Excel). If you download the source you may find what you're looking for.
http://www.2enetworx.com/dev/projects/tableeditor.asp

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 07 March 2005 :  22:22:37  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
Export a file using something like comma delimited format or an xml format and you can open it in Excel. All you have to do is dump the output into a string properly and build the file.




Erick
Snowmobile Fanatics

Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 08 March 2005 :  11:47:52  Show Profile
Even simpler. Write the data using a normal table structure.
Use Response.ContentType = "application/vnd.ms-excel" to tell the browser it's Excel.
Use Response.AddHeader "Content-Disposition", "attachment; filename=filename.xls" to force a download of the file instead of viewing in the browser.

KawiForums.com


Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 09 March 2005 :  06:28:01  Show Profile  Visit Gremlin's Homepage
You could perhaps use IMEX to export to CSV on the server then just download it ie the following SQL (should - not tested) dump the member names and email addresses into a text file called Export.CSV on the server

SELECT M_NAME, M_EMAIL INTO [TEXT;HDR=YES;Database=" & Server.MapPath("/") & ";IMEX=4;].Export.CSV FROM FORUM_MEMBERS

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 09 March 2005 06:28:23
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07