Click to See Complete Forum and Search --> : save the webpage as .xls and .pdf file???


cakeday
08-28-2003, 12:01 PM
I have a webpage(more like a web report) on the intranet, what my users want is,
a SAVE AS Button on that web page.

When they click on the SAVE AS button it should bring up the dialog box and let them save the web page as either a .xls(EXCEL FILE) file or a .pdf(ADOBE ACROBAT) file.

And it should limit them to these 2 extensions and let them save the file whereever they want on their local drive.

I have no idea as to how to do this. Will i need a special software for doing this? Will it be just a script?? I have no idea where to begin. So any help will be very appreciated.

I am not even sure, weather to post this under the JAVASCRIPT forum or HTML forum..

Thank you!

Exuro
08-28-2003, 02:56 PM
I don't believe you could really do that the way you're talking about... But, what you could do is have copies of the page in .xls and .pdf format on your server, and link to them from the page so that the user can download those if they wish.

cakeday
08-28-2003, 03:04 PM
And how would i do that??

cakeday
08-28-2003, 03:47 PM
what i mean to say is, how do i give them the option to download it.. I can totally save the copies on the server and give them a download button.. but again the question is, what happens when they click on the download button.. it will have to give the users a dialog box for them to save it, where they want to save it on their local drive.. how do i accomplish this.?

Exuro
08-28-2003, 05:25 PM
When they click the link to the file, one of two things will happen:

1) The file will open, in which case they can click "Save As" on the file menu to save it to their disk.

2) The Save File As box will pop up on their screen and allow them to save the file to their disk.

cakeday
08-28-2003, 05:50 PM
If i want to go with your second option, that is,

The Save File As box will pop up on their screen and allow them to save the file to their disk. How do i do it??

Would anyone happen to have code for something like this?

Exuro
08-29-2003, 01:28 AM
<a href="adobeVersion.pdf">Download the PDF Version</a>
That will link to the document. Depending on whether or not the user has the Adobe Plugin installed, it will either have them save it or it'll open in the browser window.

However, if you'd like it to download no matter what, you could try this script pyro usually posts on questions like this:

http://www.infinitypages.com/research/download.htm