Welcome Guest Search | Active Topics | Sign In | Register

WebView print Options
Benoit
Posted: Saturday, March 28, 2020 4:45:37 AM
Rank: Member
Groups: Member

Joined: 3/27/2020
Posts: 23
Hello,

If I trigger a WebView print using JS window.print(), there is quite a long delay (approx. 2 seconds) before the dialog box pops-up.

Using Chrome, there is no delay, the print dialog box pops-up instantly.

Any idea how to reduce the delay using WebView?

Best regards,
Benoit

eo_support
Posted: Tuesday, March 31, 2020 5:03:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Hi,

We have looked into this issue. This is due to our code tries to query the default printer settings on the .NET side before the print (in order to support BeforePrint event). We have optimized that part of the code and it should improve significantly in our next build.

Please keep in mind that since the print flow still has to "detour" to the .NET side in order to trigger the corresponding events, it will still be somewhat slower than Chrome.

Thanks!
Benoit
Posted: Wednesday, April 1, 2020 3:16:19 AM
Rank: Member
Groups: Member

Joined: 3/27/2020
Posts: 23
Great, thank-you for this awesome support.
eo_support
Posted: Wednesday, April 1, 2020 7:28:06 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
You are very welcome. Please feel free to let us know if there is anything else.
Benoit
Posted: Thursday, April 30, 2020 4:25:32 AM
Rank: Member
Groups: Member

Joined: 3/27/2020
Posts: 23
Many thanks for the last release. It speeds up the print dialog a lot!
eo_support
Posted: Thursday, April 30, 2020 11:41:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,071
Great. Thanks for confirming!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.