Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving page to .html file

Status
Not open for further replies.

EnemyGateIsDown

Technical User
Oct 3, 2002
235
GB
Hi guys,

I have an ASP report which once complete I want to save to a .html file. is there a vbscipt/Javascript instruction that i can use to do this? I need it to take parameters so that i can pass the filename etc as it needs to be silent.

What I want to do is create a page which calls the report in a loop with different parameters so that I can populate a directory.

Any help is as always greatly appreciated.

Cheers,

Chris
 
there is a program: GNU Wget 1.10-alpha3
that will do the trik, helped me a lot!

 
Hi guineamation,

Thanks for your response, what does the program do? Is it an ASP library or an API that I can call?

Thanks,

Chris
 
You want to use dynamic server pages to create static html files?
 
-Would like some more info, but it sounds like you will want to build a function/sub that takes arguments of the report you want to run and possibly the filename you want to save it to.
-That function would generate the report either in a string or maybe an xmlhttp call and then create an FileSystemObject and save it down to a folder.
-Then call that function for all of the reports you want to run. + some additional checking for file's already existing and error checking that the reports were generated successfully.

This is to be done all server-side right?

:) -Andrew

alien.gif

[Signature modified by admin request]
-TAG
anongod@hotmail.com
'Drawing on my fine command of language, I said nothing.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top