Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / September 2005

Tip: Looking for answers? Try searching our database.

Response.Output... XML file out

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DevonS - 07 Sep 2005 01:16 GMT
Ok, I'm stumped on something that really shouldn't be this hard.  I've
created some cool code to transform a dataset via XSLT into SpreadsheetML
(XML for Excel) and I'm storing the physical file on a file server.  Now... I
currently provide a hyperlink to view/save the file, but this won't work
outside the network.  So, I've been working on making this
hyperlink/linkbutton/button/whatever stream the file back to the user.  How
in the name of Zeus's butthole do I do this?

So, in simpler terms; how do I take a physical file and stream the sucker
back?  Ideally, I'd like this to work just like it does now with the physical
link to the file.  Click the link, it prompts you to save/open/cancel.  
Clicking Open pops up Excel and looky-looky, you see the file.

Heeeeeeeellllllllpppp.  AAaaaaaaaaaaaaaarrrrggggghhhh.
Clamps - 07 Sep 2005 20:18 GMT
Change the response.contenttype to "application/vnd.ms-excel"
then use the response.output stream to write the file back to the client.

Why won't the link to physical address work again? I'm not sure that I
understand why you can't move the file to a viable location for link.

> Ok, I'm stumped on something that really shouldn't be this hard.  I've
> created some cool code to transform a dataset via XSLT into SpreadsheetML
[quoted text clipped - 10 lines]
>
> Heeeeeeeellllllllpppp.  AAaaaaaaaaaaaaaarrrrggggghhhh.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.