NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on April 20, 2016, 06:55:27 AM

Title: How to Print a content of TinyMCE?
Post by: osquiabro 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
Title: Re: How to Print a content of TinyMCE?
Post by: Bruce 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
Title: Re: How to Print a content of TinyMCE?
Post by: Robert Iliuta 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
Title: Re: How to Print a content of TinyMCE?
Post by: osquiabro on April 29, 2016, 05:53:58 AM
Excelent idea...

http://track.magictransport.com:88/LoginForm