Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP -> Excel

Reply
Thread Tools

ASP -> Excel

 
 
Bryan Harrington
Guest
Posts: n/a
 
      03-31-2005
Hello all.. I'm working on some reports, and have added the ability to
"download" the reports to excel. Not a big deal, fairly straight forward.
However, PHB wants to be able to create some pivot tables from said reports
(again.. no biggie) and when he goes to save the file, Excel wants to save
the file as a web page instead of and Excel spreadsheet.

Now.. I know the simple thing here is to just pick Excel from the drop down
box in the save as dialog.. but.. PHB would "prefer" to not have to do that.

Has anyone been able to jump this hurdle before? My good friend google
hasn't turned anything up. My preference is to give PHB the middle finger..
but alas.. the paycheck is keeping me from doing that.

Thanks!


 
Reply With Quote
 
 
 
 
Ray Costanzo [MVP]
Guest
Posts: n/a
 
      03-31-2005
Are you sure that this isn't just a setting in Excel for that person? Like:
Tools--Options--Transition--Save Excel files as:

Also, how are you returning the Excel file from your server? With a
response.contenttype="application/vnd.ms-excel"?

Ray at work

"Bryan Harrington" <> wrote in message
news:...
> Hello all.. I'm working on some reports, and have added the ability to
> "download" the reports to excel. Not a big deal, fairly straight forward.
> However, PHB wants to be able to create some pivot tables from said

reports
> (again.. no biggie) and when he goes to save the file, Excel wants to save
> the file as a web page instead of and Excel spreadsheet.
>
> Now.. I know the simple thing here is to just pick Excel from the drop

down
> box in the save as dialog.. but.. PHB would "prefer" to not have to do

that.
>
> Has anyone been able to jump this hurdle before? My good friend google
> hasn't turned anything up. My preference is to give PHB the middle

finger..
> but alas.. the paycheck is keeping me from doing that.
>
> Thanks!
>
>



 
Reply With Quote
 
 
 
 
Bryan Harrington
Guest
Posts: n/a
 
      03-31-2005
Thanks for your response Ray.. Yes.. I'm adding the response.contenttype to
the header.. all that works great.

And no, it's not a setting in Excel as far as I can tell.. When I return
the excel file from ASP and save it, I can open it in notepad, and it's a
bunch of <td>data</td>'s... if I do a save as over to excel, then when you
open it in notepad you get to see all the fun ascii stuff.

PHB doesn't want to have to make that "extra" click to the drop down box to
specify save as excel. I don't think it can be done, but there are lots and
lots of smart people out there working for lots and lots of PHB's.


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:...
> Are you sure that this isn't just a setting in Excel for that person?

Like:
> Tools--Options--Transition--Save Excel files as:
>
> Also, how are you returning the Excel file from your server? With a
> response.contenttype="application/vnd.ms-excel"?
>
> Ray at work
>
> "Bryan Harrington" <> wrote in message
> news:...
> > Hello all.. I'm working on some reports, and have added the ability to
> > "download" the reports to excel. Not a big deal, fairly straight

forward.
> > However, PHB wants to be able to create some pivot tables from said

> reports
> > (again.. no biggie) and when he goes to save the file, Excel wants to

save
> > the file as a web page instead of and Excel spreadsheet.
> >
> > Now.. I know the simple thing here is to just pick Excel from the drop

> down
> > box in the save as dialog.. but.. PHB would "prefer" to not have to do

> that.
> >
> > Has anyone been able to jump this hurdle before? My good friend google
> > hasn't turned anything up. My preference is to give PHB the middle

> finger..
> > but alas.. the paycheck is keeping me from doing that.
> >
> > Thanks!
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
From an ASP page, is there a way write to an EXCEL file without having EXCEL installed on the IIS machine ? fniles ASP General 6 04-27-2009 10:33 PM
How to return an excel file or excel data from ASP.NET Anonieko ASP .Net 2 02-12-2008 07:03 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
Export to excel in asp.net using excel template Grey ASP .Net 4 10-17-2007 08:08 AM
asp.net extracting excel charts from an Excel file Robbe Morris [C# MVP] ASP .Net 0 12-15-2006 03:03 AM



Advertisments