39
Views
10
Comments
Solved
The error in Used html2pdf_js

@Toto

Excuse me 

This is my action

When I publish ,In Edge the error is"ScreenToPDF_OnInitialize action must be invoked during the OnInitialize event of the screen "


When I push the "Export to PDF" button . The error is "html2pdf is not defined "

Can you help me .Thanks!

2021-01-04 08-13-48
Toto
 
MVP
Solution

Hi,


Which plugin that you use ? Is this traditional web app / reactive web app / mobile app ?

UserImage.jpg
Hora susuki

This is a reactive web app 

I use the plugin


2021-01-04 08-13-48
Toto
 
MVP

Hi,


Sorry I just got it.

You need to use both of the block on your screen. Because the block "Html2Pdf_Js_MainBlock" is for initialize the js.

Use "Html2Pdf_Js_MainBlock" at the very top of your screen, and use "Html2Pdf_Js_ExecBlock" to add button for downloading the content page. 

Put whatever your want to print into a container, then give it a name, then put the name on the block "Html2Pdf_Js_ExecBlock"

UserImage.jpg
Hora susuki

I used them for this ,Where can I defined.

I copy your demo in my project. 

2021-01-04 08-13-48
Toto
 
MVP
UserImage.jpg
Hora susuki

Thank you very much.

you help me

This error you know how can settle.Thanks!

2021-01-04 08-13-48
Toto
 
MVP

I think that is a different case. 

Can you share the oml ?

UserImage.jpg
Hora susuki
Testdemo.oml
2021-01-04 08-13-48
Toto
 
MVP

That error is come from different plugin "UltimatePDF"

Choose only 1 for printing your pdf, it doesn't need 2 plugin.

UserImage.jpg
Hora susuki
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.