# Print button disappears in embedded dashboards

**URL:** <https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669>\
**Category:** Q&A\
**Tags:** embedding, developer, quick-sight\
**Created:** [July 12, 2022, 3:36pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669 "2022-07-12T15:36:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernhard.boehm](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bernhard.boehm](https://community.amazonquick.com/u/bernhard.boehm)\
**Post date:** [July 12, 2022, 3:36pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/1 "2022-07-12T15:36:35Z")

</div>

Hi there,

We are embedding Quicksight dashboards into our application and all of a sudden the Print button (as well as the Undo/Redo buttons) started to only appear on the first dashboard view but when navigating to another dashboard it disappears. The behaviour is the same regardless of which dashboard I view first.  
This is the library we are using: [amazon-quicksight-embedding-sdk - npm](https://www.npmjs.com/package/amazon-quicksight-embedding-sdk)  
Does anybody experience the same or maybe even have a solution?

Thanks!  
Bernhard

---

<div class="post-metadata">

**Author:** ![JoseB-aws](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/joseb-aws/32/284_2.png) [@JoseB-aws](https://community.amazonquick.com/u/JoseB-aws)\
**Post date:** [July 15, 2022, 4:42pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/2 "2022-07-15T16:42:09Z")

</div>

Hello,  
There is an option in the API when publishing the dashboard:  
[https://developer.quicksight.aws/embedSample/dashboard](https://developer.quicksight.aws/embedSample/dashboard)

Following the documentation, you can find the following option to enable it `printEnable: TRUE`:

````function
            var containerDiv = document.getElementById("embeddingContainer");
            var options = {
                // replace this dummy url with the one generated via embedding API
                url: "https://us-east-1.quicksight.aws.amazon.com/sn/dashboards/dashboardId?isauthcode=true&identityprovider=quicksight&code=authcode",
                container: containerDiv,
                scrolling: "no",
                height: "700px",
                width: "1000px",
                locale: "en-US",
                **printEnabled: true,**
                footerPaddingEnabled: true
            };
            dashboard = Quick SightEmbedding.embedDashboard(options);
        }```

Br,
JoseB
````

---

<div class="post-metadata">

**Author:** ![bernhard.boehm](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bernhard.boehm](https://community.amazonquick.com/u/bernhard.boehm)\
**Post date:** [July 18, 2022, 7:48am UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/3 "2022-07-18T07:48:12Z")

</div>

Hi Jose,

Thanks for your reply. That’s the code we are using when we first create the embed and that works fine. Our problem is the subsequent navigation where our code looks something like this:

> dashboardApp.dashboard.sheetPending = (sheetId !== undefined) && (sheetId !== ‘’);  
> dashboardApp.dashboardObject.navigateToDashboard({  
> dashboardId: dashboardId,  
> sheetId: ${dashboardId}\_${sheetId},  
> printEnabled: true,  
> });

Best regards,  
Bernhard

---

<div class="post-metadata">

**Author:** ![jcardeira](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jcardeira](https://community.amazonquick.com/u/jcardeira)\
**Post date:** [August 5, 2022, 4:34pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/4 "2022-08-05T16:34:31Z")

</div>

This is a serious bug and should not be ignored. printEnabled is not working and simply makes the toolbar disappear.

Happens with the latest embed sdk.

This is the error on the console:

TypeError: Cannot read properties of undefined (reading ‘resolveLayout’)  
at embed-dashboard.bundle.2a05befc715f17322e16.38.js:2:553771  
at new WrappedComponent (embedding.c5ee2933f650865e747b.38.js:2:4340941)  
at Oo (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:602407)  
at za (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:619976)  
at bu (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:661060)  
at Rs (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:650473)  
at Os (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:650285)  
at \_s (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:647147)  
at platform-vendors.bundle.34b506e85458c4e59846.38.js:2:597937  
at t.unstable\_runWithPriority (platform-vendors.bundle.34b506e85458c4e59846.38.js:2:70744

It also happens if you use the url directly, please check the attached image carefully, you’ll see the printEnabled=true removes the toolbar.

 ![merge](https://d1wl4jav5dp96l.cloudfront.net/original/2X/3/3fab03b29da7bb303fc3f9f8f2469dac5e30ea66.jpeg)

---

<div class="post-metadata">

**Author:** ![bernhard.boehm](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@bernhard.boehm](https://community.amazonquick.com/u/bernhard.boehm)\
**Post date:** [October 3, 2022, 2:33pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/5 "2022-10-03T14:33:38Z")

</div>

Eventually a fix to this bug has been applied by Amazon.

---

<div class="post-metadata">

**Author:** ![jcardeira](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jcardeira](https://community.amazonquick.com/u/jcardeira)\
**Post date:** [December 4, 2022, 10:04pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/6 "2022-12-04T22:04:12Z")

</div>

Eventually? What do you mean?

---

<div class="post-metadata">

**Author:** ![David\_Wong](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/david_wong/32/15630_2.png) [@David\_Wong](https://community.amazonquick.com/u/David_Wong)\
**Post date:** [December 4, 2022, 11:30pm UTC](https://community.amazonquick.com/t/print-button-disappears-in-embedded-dashboards/4669/7 "2022-12-04T23:30:10Z")

</div>

I’m not seeing this issue.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/d/d206a523f70f476422c43b2f8889aad956166b01.png)
