Jump to content

Does anyone have an idea? (FastReport & uniHTMLMemo)


Schlingel

Recommended Posts

Hy

 

I use Fastreport to create PDF's from a UniGui-Application.

 

Actuall I have the problem that I would like to bring the contents of a uniHTMLMemos in my "Fastreport" Pdf-Pages.

 

BUT... https://www.fast-report.com/en/documentation/frx3user/Creating%20reports/HTML-tags%20in%20the%20%27Text%27%20object.htm

 

You can see that the supported HTML-Tags are very limited. (Fonts, Size, Listings etc..)

 

 

 

Now is my Idea, before create the Report print the content of my uniHTMLMemo to a Picture (.png, jpb..) and add this to my PDF Report.

 

My questions:

 

1.) It is possible to save the content of a uniHTMLMemo(with the dimensions) to a picture at server-side?

     similarly: UniSession.AddJs(UniHTMLMemo10.jsname+'.iframeEl.dom.contentWindow.print();');

 

    

2.) is there a possibility to get the HTML tags String in an image file?

 

3.) Does anyone have a better idea for my problem?

 

 

 

Best regards

Link to comment
Share on other sites

With http://wkhtmltopdf.org/ you can convert html to a pdf or image on server side.

 

But if you use image:

- the size will be big

- you can't search for text in PDF

- the font will not scale (can look terrible)

 

But you can make the complete report with html and then use wkhtmltopdf or you make 2 PDFs (from report and html) and then merge them.

Link to comment
Share on other sites

@ Oliver Morsch

Thank you for your suggestion.

-> I intend for many reasons solve the problem directly in the application unigui.

a.) I will use a simple memo in the first step.

b.) In the next step I will even generate my report with https://parall.ax/products/jspdf and http://fabricjs.com/.

 

 

I would be glad if there would be a better solution.

 


best regards
"Greetings from Austria to Germany"

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...