Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

View in PDF format

Guest
Jun 10, 2008 Jun 10, 2008
I have tried to view a .cfm page in PDF format. I get data from a CFC, and show information in the .cfm page. The problem that, when I used cfdocument with PDF format, I received a web page didn't match with PDF format. Anyone can help me solve this problem. I think this isn't big prolem, but I just a beginner with coldfusion.
399
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 10, 2008 Jun 10, 2008
Are you saying that you used a cfdocument tag and your page came back as html?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 11, 2008 Jun 11, 2008
No, didn't. I meant that I have a cfm page that have a button named showPDF. When I click on this button, the result I except is PDF format of this page. Information of this cfm page I got from a function in a CFC. That's all. Unfortunately, I don't success yet.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 12, 2008 Jun 12, 2008
use cfsavecontent to put the display stuff into a session variable. Then use that variable in a cfdocument tag on the page that's supposed to show the pdf.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 13, 2008 Jun 13, 2008
LATEST
Many thanks for your help. I tried your suggestion. But I carried out a problem that the CSS for HTML page is not correct in PDF format. I'm trying to solve this problem. I hope I still receive your help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources