Hi,
I've developed a product ordering Cold Fusion site that displays the results of a SQL Query to an Oracle database. The results are summarized in tabular format on a CF page under 6 columns heads with anywhere from 1 to 200 records. Using "cfdocument" we are outputting nice looking PDF...
Thanks! Here is the code that ended up working for me:
<cfsavecontent variable="savesummary">
html code here...
</cfsavecontent>
<cfdocument format="pdf" filename="UPRSummary#TransNumber#.pdf" pagetype="a4" overwrite="yes">
<cfdocumentitem type="header">
<cfoutput>Your Summary has been sent...
That's the problem that I'm having. I can't figure out how to save the PDF to a file. This is the code that I am using now:
<cfsavecontent variable="savesummary">
my html here...
</cfsavecontent>
<cfdocument format="pdf" pagetype="a4" margintop="0.1">
<cfdocumentitem type="header">...
Hi,
Thanks for the info.
So far I have the folowing code which gives me a pdf page with the message "Connection failure" on it.
<cfdocument format="pdf" filename="C:\UPRSummary.pdf" pagetype="a4" margintop="0.1" overwrite="yes">
<cfoutput>#savesummary#</cfoutput>
</cfdocument>
<cfoutput>...
Hi,
Thanks to this forum, I was able to learn how to use the cfsavecontent tag to capture a dynamic cf page and display it. I was also able to send it via email as html. Is there a way I can save the output from a cfsavecontent to a pdf file?
Here's the code I have for the html...
I was able to view cfsavecontent tag to display the page and also to send it as html via email. Is there a way I can save it to a pdf file?
Here's the code I have for the html:
<cfsavecontent variable="savesummary">
<html>
code for page here...
</html>
</cfsavecontent>
<cfoutput>Your summary has...
Just a thought - Could I somehow save that web page as an html document outside of the session and then have it generate the PDF file so I could attach it to an email? I don't actually have to let them preview the pdf online.
Thanks again.
Hi,
I would like to display a web page from my cold fusion application in a PDF file to be viewed by the user when they click on a button. I have the following code which partially works:
<cfif IsDefined("form.Preview")>
<!--- You can pass a URL in the URL string --->
<cfparam...
I tried it, but got an error on the char(13) so I just did this:
AddedNotes= AddedNotes +'#form.Notes#'
which works as long as something is in AddedNotes to begin with, otherwise, it doesn't work. Is there something about the char(13) and char(10) that I'm missing?
I have a field "notes" that I would like to allow the users to add to without overwriting the last note added. Is there an easy way to do this in SQL?
Here is the code I have so far:
<cfquery name="UpdateApproval" datasource=#MM_connproducts_DSN# username=#MM_connproducts_USERNAME#...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.