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

showing a pdf

Guest
Aug 23, 2006 Aug 23, 2006

Copy link to clipboard

Copied

Hi i am using coldfusion mx 6.1

i have a query output which i want to show as a printable pdf, i know this is possible using coldfusion 7

can i do this with mx 6.1?
TOPICS
Advanced techniques

Views

492

Translate

Translate

Report

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
Participant ,
Aug 24, 2006 Aug 24, 2006

Copy link to clipboard

Copied

Hi

can you try by setting the cfheader & cfcontent tags to pdf format.
i am doing the same thing for and xml. i am using the below code to display in excel.
so in the same u can get it i think so.

<CFHEADER NAME="content-disposition" VALUE="attachment; filename=new.xls">
<CFCONTENT TYPE="application/vnd.ms-excel">

Votes

Translate

Translate

Report

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
Aug 24, 2006 Aug 24, 2006

Copy link to clipboard

Copied

ok many thanks

but how would i do this from a query and display my output as a pdf

Votes

Translate

Translate

Report

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
Participant ,
Aug 24, 2006 Aug 24, 2006

Copy link to clipboard

Copied

Hi

First design the cfm page in general way how it has display.
once this is done then put those 2 tags in the first, and run this file..it will shows in pdf format.

Votes

Translate

Translate

Report

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
Aug 25, 2006 Aug 25, 2006

Copy link to clipboard

Copied

LATEST
ok thanks so would this be the code below?

<CFHEADER NAME="content-disposition" VALUE="attachment; filename=new.pdf">
<CFCONTENT TYPE="application/vnd.ms-pdf">

Votes

Translate

Translate

Report

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
Explorer ,
Aug 25, 2006 Aug 25, 2006

Copy link to clipboard

Copied

I though it was not possible to show PDF format on 6.1, you can do the excel and word doc, but PDF I'm not sure, because the document tag was introduced in MX 7

Votes

Translate

Translate

Report

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
Documentation