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 |
|
|
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 |
|
|
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?
|
|
|
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 |
|
|