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

Printing (and formatting) content in CF11

Engaged ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

Hi

I have a client that needs to collect data from a standard HTML form, stuff the data in a database and then query and format the data for printing.

The printed result has some fairly stringent requirements which I can likely do with CSS (such as field widths, line breaks, etc.).

My question is, has anyone identified a good way to do this? How does the CF world handle printing dynamic data into a pre-formatted form?

Thanks in advance,

Rich

Views

518

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
Engaged ,
Apr 30, 2015 Apr 30, 2015

Copy link to clipboard

Copied

...ugh, of course I've already built the forms, queries, etc in Coldfusion. So the data is ready to be queried from the DB and formatted for output.

😉

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
Advocate ,
May 01, 2015 May 01, 2015

Copy link to clipboard

Copied

What kind of file are you looking to end up with to print? pdf, doc, html, txt?

Have you tired anything yet or looked at cfdocument - ColdFusion, English documentation - Adobe Learning Resources ?

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
Engaged ,
May 01, 2015 May 01, 2015

Copy link to clipboard

Copied

HI haxtbh

... so far I have simply built out a careful .cfm page using a combination of tables, divs and spans to duplicate the necessary final look of the duplicated form.

Effectively the form I'm duplicating is simply a pdf form that is usually printed and filled out by hand; I created a web form that collects the requested data so that my client can select the record, view the page with the required data and print it.

The final format doesn't matter, it's all about being able to print out the final form in the exact condition with the query based data. I've used cfdocument before to build and print content before but I'm still faced with the task of formatting the lines of text in the form to display/print as needed....  I keep thinking there's got to be a better way....

Thanks,

Rich

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 ,
May 01, 2015 May 01, 2015

Copy link to clipboard

Copied

LATEST

There have been some great improvements to ColdFusion 11's pdf capabilities. I think your first line is to look at that. Take a good look at the documentation for this.

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