<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Save visual from Page.GetVisuals as image in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/500478#M15385</link>
    <description>&lt;P&gt;no I wasn't able to do it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 19:18:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-27T19:18:51Z</dc:date>
    <item>
      <title>Save visual from Page.GetVisuals as image</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/432899#M13279</link>
      <description>&lt;P&gt;I am using the PowerBI JS API to get reports and visuals. So far using the function below gives the title of the visuals and the visuals in svg tags.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-smi"&gt;report&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en"&gt;getPages&lt;/SPAN&gt;&lt;SPAN&gt;() .&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="pl-smi"&gt;pages&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-c"&gt;// Retrieve first page.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-k"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; firstPage &lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; pages[&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-smi"&gt;firstPage&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-en"&gt;getVisuals&lt;/SPAN&gt;&lt;SPAN&gt;()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-c1"&gt;&amp;nbsp;.then&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class="pl-k"&gt;function&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN class="pl-smi"&gt;visuals&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-en"&gt;console&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN class="pl-c1"&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(visuals); }) })&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to download each visual as an image and save them to my PC.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any one has a solution?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried many methods without success&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 18:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/432899#M13279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-05T18:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Save visual from Page.GetVisuals as image</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/434485#M13370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This function just gives us a text list of all the visuals. Since the visuals aren't ordinary images, the workaround I can think of could be loading these viusals one by one and print them out. Please refer to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/4912092/using-html5-canvas-javascript-to-take-in-browser-screenshots/6678156#6678156" target="_self"&gt;using-html5-canvas-javascript-to-take-in-browser-screenshots/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/9616426/javascript-print-iframe-contents-only/9616706" target="_self"&gt;https://stackoverflow.com/questions/9616426/javascript-print-iframe-contents-only/9616706&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 09:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/434485#M13370</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-06-07T09:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Save visual from Page.GetVisuals as image</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/481219#M14757</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;, where you able to this? I need the same functionality, which is fairly simple if we could get the visual's HTML code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/28904"&gt;@v-jiascu-msft&lt;/a&gt;&amp;nbsp;those are not feasible workarounds given that&amp;nbsp;cross-domain iFame access is not permitted. But we could use the &lt;A href="https://github.com/Microsoft/PowerBI-JavaScript/wiki/Understanding-the-Post-Message-Communication-Flow" target="_self"&gt;postMessage Communication Flow&lt;/A&gt;&amp;nbsp;if there was an event that would return the HTML code of the visual instead of the current JSON response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 10:16:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/481219#M14757</guid>
      <dc:creator>jorge-gt3</dc:creator>
      <dc:date>2018-08-06T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Save visual from Page.GetVisuals as image</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/500478#M15385</link>
      <description>&lt;P&gt;no I wasn't able to do it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 19:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Save-visual-from-Page-GetVisuals-as-image/m-p/500478#M15385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-27T19:18:51Z</dc:date>
    </item>
  </channel>
</rss>

