Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Q: Data to Excel From Web

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Jakarta Tomcat connector - where to get it?  
Author Message
bvremoveme

External


Since: Oct 28, 2003
Posts: 2



(Msg. 1) Posted: Wed Oct 29, 2003 12:39 am
Post subject: Q: Data to Excel From Web
Archived from groups: alt>www>webmaster (more info?)

I am working on a project and am having some trouble making a design
decision. I was hoping someone here has run into my problem before.

The application is all web based running on IIS, using ASP, ADO and MS SQL
Server as our DBMS. Users enter invoice information, and the data is stored
in the database. Later management can come along and run reports on the
data, one of which will do a comparitive analysis between the entered data
and some predetermined baseline data in the database. One of the mgmt.
requirements is to be able to export the data to excel, so it can be
manipulated.

This is where I get jammed up. I am not sure how to handle this
functionality. I am thinking, I will gather the report data, and the
comparative data, and dump it into a recordset, and then allow the user to
dump the data from the recordset using the .COPYFROMRECORDSET method on the
Excel object. I am still researching if this is possible from my web server.

Any thoughts?

BV.

 >> Stay informed about: Q: Data to Excel From Web 
Back to top
Login to vote
karim34111

External


Since: Aug 13, 2003
Posts: 257



(Msg. 2) Posted: Wed Oct 29, 2003 12:39 am
Post subject: Re: Q: Data to Excel From Web [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 28 Oct 2003 21:39:49 -0500, BenignVanilla wrote:

 > I am working on a project and am having some trouble making a design
 > decision. I was hoping someone here has run into my problem before.
 >
 > The application is all web based running on IIS, using ASP, ADO and MS SQL
 > Server as our DBMS. Users enter invoice information, and the data is stored
 > in the database. Later management can come along and run reports on the
 > data, one of which will do a comparitive analysis between the entered data
 > and some predetermined baseline data in the database. One of the mgmt.
 > requirements is to be able to export the data to excel, so it can be
 > manipulated.
 >
 > This is where I get jammed up. I am not sure how to handle this
 > functionality. I am thinking, I will gather the report data, and the
 > comparative data, and dump it into a recordset, and then allow the user to
 > dump the data from the recordset using the .COPYFROMRECORDSET method on the
 > Excel object. I am still researching if this is possible from my web server.

- If you have Excel on the IIS server you can instantiate an Excel object
(com object), copy the data to a worksheet and save as xls. This is memory
intensive and not suitable if you get many requests simultaneously. Use
this method if you need formatting.

- You can you use the recordset and save as a csv file.

- You can use SQL Server's DTS functionality. An easy way is to run a SQL
statement that creates a table with the results and run a precofigured dts
package to dump the table into Excel spreadsheet. That dts can be created
using the dts wizard. Or use the dts designer and run a dts dynamically
using a parameterized query.

- Use third party spreadsheet objects that can export to xls format. They
are less intensive than Excel because they can run as a single dll.



--
Karim
Recommended host: <a style='text-decoration: underline;' href="http://www.cheapesthosting.com" target="_blank">http://www.cheapesthosting.com</a> - Affordable hosting since
1998<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Q: Data to Excel From Web 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 3) Posted: Wed Oct 29, 2003 11:47 am
Post subject: Re: Data to Excel From Web [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

BenignVanilla wrote:
 > ...
 > One of the mgmt. requirements is to be able to export the
 > data to excel, so it can be manipulated.
 > ...

If you can guarantee that all your management team will be using IE ...

Deliver the content using the apprpriate mime type: application/vnd.ms-excel

Use HTML table markup and the result will be a spreadsheet - you can use the
Excel extensions for html

This way the spreadsheet will be delivered right into the browser. They can
manipulate the data and save it locally as with any other spreadsheet file.

This method is trivial to implement but I've only ever used it on an
intranet where the browsing environment is bolted down.

sorry - I've no idea what this does in other browsers - hopefully prompts
for save if you're lucky

If you decide to use this method I can probably dig out an example from way
back when if you need inspiration ;o)

btw: do not load MS-Office on your production server, no matter how
tempting it may be. Even Microsoft caution against such foolishness.

--
William Tasso - <a style='text-decoration: underline;' href="http://WilliamTasso.com" target="_blank">http://WilliamTasso.com</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Q: Data to Excel From Web 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Data Mining - What's this company Intelliseek all about? Exactly what data are they mining from me anyway? Is it just an annoyance or is it something I should be concerned about?

interpreting form data - Someone gave me a bunch of forms to use on their website that were made in frontpage. Here is an example: http://turnaroundtours.com/tpg/acco...estate_plan.htm I am not sure how this form was intended to be used but if I set up a basic form there are..

form data submission - I am trying to submit data to am email adress for collation at a later date. BUT using submit and GET if the email editor outlook express is not configured the mail does not get sent. any advice for dealing with such problems please?? Regards Andy T ...

How 2 Canned Response Msg to Formmail Parsed Data - I have a site that utilizes an order form page which I am using a secure server Formmail to handle the parsed data back to me. (No credit card or sensitive info) Even though after submitting, I auto direct the customer to a confirmation page, the custome...

How 2 Canned Response Msg to Formmail Parsed Data - I have a site that utilizes an order form page which I am using a secure server Formmail to handle the parsed data back to me. (No credit card or sensitive info) Even though after submitting, I auto direct the customer to a confirmation page, the custome...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]