pop-up blocked while rendering report using @jsreport/browser-client in angular



  • Hi sir ,
    Iam using jsreport 3.1.1 version for rendering report in angular .Earlier i was using jsreport 2.11.0 and for rendering i have used jsreport-browser-client-dist ,that time it will render report in new tab without any problem .Now while rendering using @jsreport/browser-client it will always show pop-up blocked and some error messsage in console.

    Error : -

    0_1638615539562_upload-de48a41f-e0da-4035-a820-026f8482163b @jsreport/browser-client

    Another Error is,

    0_1638615604090_upload-df3177fd-d985-41b1-81ed-3f175a07ec35

    here
    objectURL = "blob:http://localhost:65243/6d60adf0-c1d7-47c1-b0c7-998ef7394efe";

    But window.open(objectURL) returns null .

    Console. error is,

    0_1638615797269_upload-2f593620-3089-474b-bfcb-3d7a59486b64

    Could you please tell me what could be the reason?



  • The jsreport 3.2.0 now fixed the background error from the console. However, blocking "pop-ups" is common browsers behavior that needs to be enabled by the user for the particular page.

    You may rather want to use the sync openInNewWindow function that works more like in v2. Please read about this here
    https://jsreport.net/learn/browser-client#limitation


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.