CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 output to a file not the browser.

Print topic Send  topic

Author Message
rbaldwin
Posted: 01/07/2004, 12:04 PM

I've read the threads and article on sending the CCS output to MS Excel or Word instead of the browser, but i hav a new twist. I'd like to send the output to a .html file on the webserver. The reason being that in a subsequent step on the server i want to convert the saved page to a pdf. I have the method to convert the page to pdf but can't figure out how to have ccs write the the html to a file using the asp textstream object.

any thoughts?
Edd


Posts: 547
Posted: 01/07/2004, 2:41 PM

Cannot see how to do it - inspect the template class and you will see what I mean.

What are you trying to achieve as there may be a alternative?

_________________
Accepting and instigating change are life's challenges.

http://www.syntech.com.au
View profile  Send private message
peterr


Posts: 5971
Posted: 01/10/2004, 1:24 AM

In the generate code find the following command:
HTMLTemplate.PParse "main", False

Then replace it with:
HTMLTemplate.Parse "main", False
Dim MyPage
MyPage = HTMLTemplate.GetVar("main")
response.write MyPage

This will show you that MyPage variable now contains your whole output. You can replace the last statement (response.write) with some code that creates output files on your Web server.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
PetrP


Posts: 25
Posted: 01/10/2004, 12:51 PM

Quote peterr:
In the generate code find the following command:
HTMLTemplate.PParse "main", False

Then replace it with:
HTMLTemplate.Parse "main", False
Dim MyPage
MyPage = HTMLTemplate.GetVar("main")
response.write MyPage

This will show you that MyPage variable now contains your whole output. You can replace the last statement (response.write) with some code that creates output files on your Web server.
What does the "P" in PParse do?
View profile  Send private message
peterr


Posts: 5971
Posted: 01/11/2004, 10:52 PM

PParse and Parse are two different functions, though PParse is used to "Print and Parse".
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.