NetTalk Central

Author Topic: How to Print a content of TinyMCE?  (Read 3941 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
How to Print a content of TinyMCE?
« on: April 20, 2016, 06:55:27 AM »
i have a page with Terms in TinyMCE and need to print a content of field in PDF, but the PDF does not recognize the values... any tips for this..

take a look http://track.magictransport.com:88/LoginForm

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: How to Print a content of TinyMCE?
« Reply #1 on: April 24, 2016, 11:12:07 PM »
The Clarion Report structure does not support HTML as a format. So capturing a field using TinyMCE, and then trying to use that field on a "report" is probably not going to work. You could investigate converting the HTML to say RTF, but I've not had huge success with that.

So I would bypass the "report / pdf" stage, and rather display the document as a complete HTML page, and let the user print it from their browser. (They could print to PDF if they had a PDF printer.)

Cheers
Bruce

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: How to Print a content of TinyMCE?
« Reply #2 on: April 27, 2016, 10:11:28 PM »
1.Put the text in a word and format as you want.
2.Save as in PDF.
3.Upload the pdf file in \web folder or any where you want under web folder.
4.Make a small button: "Save as pdf" and let user to download your pdf.

I don't think you have to make a runtime report....just in case you change the text then yes you have to change the pdf but that "Terms and Conditions" are not changing every minutes :-)

/Robert

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: How to Print a content of TinyMCE?
« Reply #3 on: April 29, 2016, 05:53:58 AM »