Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / August 2006



Tip: Looking for answers? Try searching our database.

button/html/pdf/save to file folder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
silviasalsa - 30 Aug 2006 17:22 GMT
how can i
Create Button
That will convert the html page to pdf and save to a folder.
how can i do this?
is there a sample code?
Is there a example/sample for this ?
Thanks in advance
Dan Bracuk - 30 Aug 2006 17:39 GMT
When you are generating the html, preserve whatever data you need as session
variables.  

Put the code that converts the content to pdf (you can use cfdocument for
this) in a separate template.  Let's call it abc.cfm.  It's going to be called
as a pop-up, so, at the end of that template, add something like this:

<script>
winClose=window.setTimeout("window.close()",2000);
</script>

To call it with a button, do something like this:

<a href="javascript:void(0)" onclick="Emailwin=window.open('abc.cfm','thewin',
'width=500,height=500,left=30,top=30');">
<input type="button" value="whatever" />
</a>
 
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



©2009 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.