<?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: power bi embedded in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/power-bi-embedded/m-p/1634860#M17783</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify the following code to meet your requirements:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Get a reference to the embedded report HTML element
var embedContainer = $('#embedContainer')[0];

// Get models. models contains enums that can be used.
var models = window['powerbi-client'].models;

// Define default visual layout: visible in 400x300.
let defaultLayout = {
    width: 400,
    height: 250,
    displayState: {
        mode: models.VisualContainerDisplayMode.Hidden
    }
};

// Define page size as custom size: 1000x580.
let pageSize = {
    type: models.PageSizeType.Custom,
    width: 1000,
    height: 580
};

// Page layout: two visible visuals in fixed position.
let pageLayout = {
    defaultLayout: defaultLayout,
    visualsLayout: {
        "VisualContainer1": {
            x: 70,
            y: 100,
            displayState: {
                mode: models.VisualContainerDisplayMode.Visible
            }
        },
        "VisualContainer3": {
            x: 540,
            y: 100,
            displayState: {
                mode: models.VisualContainerDisplayMode.Visible
            }
        }
    }
};

let settings = {
    layoutType: models.LayoutType.Custom,
    customLayout: {
        pageSize: pageSize,
        displayOption: models.DisplayOption.FitToPage,
        pagesLayout: {
            "ReportSection600dd9293d71ade01765": pageLayout
        }
    },
    panes: {
        filters: {
            visible: false
        },
        pageNavigation: {
            visible: false
        }
    }
}

// Get a reference to the embedded report.
report = powerbi.get(embedContainer);

// Update the settings by passing in the new settings you have configured.
try {
    await report.updateSettings(settings);
    Log.logText("Custom layout applied, to remove custom layout, reload the report using 'Reload' API.");
}
catch (error) {
    Log.log(error);
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-custom-layout/" target="_blank"&gt;Power BI Embedded custom layout | Azure updates | Microsoft Azure&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;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accepting it as&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help other members find it faster.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 06:24:30 GMT</pubDate>
    <dc:creator>Icey</dc:creator>
    <dc:date>2021-02-01T06:24:30Z</dc:date>
    <item>
      <title>power bi embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/power-bi-embedded/m-p/1629633#M17716</link>
      <description>&lt;P&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am trying to embed Power BI report into React website.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="ew lo kg go lp b cs lq lr s ls"&gt;import { Report } from 'powerbi-report-component';&lt;/SPAN&gt;&lt;SPAN class="ew lo kg go lp b cs lt lu lv lw lx lr s ls"&gt;&amp;lt;Report&lt;BR /&gt;  tokenType="Embed" // or, "Aad"&lt;BR /&gt;  accessToken="" // accessToken goes here&lt;BR /&gt;  embedUrl="" // embedUrl goes here&lt;BR /&gt;  embedId="" // report or dashboard Id goes here&lt;BR /&gt;  pageName="" // set as current page of the report&lt;BR /&gt;  reportMode="view" // options: view/edit/create&lt;BR /&gt;  permissions="All" // View&lt;BR /&gt;/&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is my code for it. But when I view this in the browser, report size is too small. What should I do to make report display in larger size?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 16:24:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/power-bi-embedded/m-p/1629633#M17716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-28T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: power bi embedded</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/power-bi-embedded/m-p/1634860#M17783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to modify the following code to meet your requirements:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// Get a reference to the embedded report HTML element
var embedContainer = $('#embedContainer')[0];

// Get models. models contains enums that can be used.
var models = window['powerbi-client'].models;

// Define default visual layout: visible in 400x300.
let defaultLayout = {
    width: 400,
    height: 250,
    displayState: {
        mode: models.VisualContainerDisplayMode.Hidden
    }
};

// Define page size as custom size: 1000x580.
let pageSize = {
    type: models.PageSizeType.Custom,
    width: 1000,
    height: 580
};

// Page layout: two visible visuals in fixed position.
let pageLayout = {
    defaultLayout: defaultLayout,
    visualsLayout: {
        "VisualContainer1": {
            x: 70,
            y: 100,
            displayState: {
                mode: models.VisualContainerDisplayMode.Visible
            }
        },
        "VisualContainer3": {
            x: 540,
            y: 100,
            displayState: {
                mode: models.VisualContainerDisplayMode.Visible
            }
        }
    }
};

let settings = {
    layoutType: models.LayoutType.Custom,
    customLayout: {
        pageSize: pageSize,
        displayOption: models.DisplayOption.FitToPage,
        pagesLayout: {
            "ReportSection600dd9293d71ade01765": pageLayout
        }
    },
    panes: {
        filters: {
            visible: false
        },
        pageNavigation: {
            visible: false
        }
    }
}

// Get a reference to the embedded report.
report = powerbi.get(embedContainer);

// Update the settings by passing in the new settings you have configured.
try {
    await report.updateSettings(settings);
    Log.logText("Custom layout applied, to remove custom layout, reload the report using 'Reload' API.");
}
catch (error) {
    Log.log(error);
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference:&amp;nbsp;&lt;A href="https://azure.microsoft.com/en-us/updates/power-bi-embedded-custom-layout/" target="_blank"&gt;Power BI Embedded custom layout | Azure updates | Microsoft Azure&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;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accepting it as&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help other members find it faster.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 06:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/power-bi-embedded/m-p/1634860#M17783</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-02-01T06:24:30Z</dc:date>
    </item>
  </channel>
</rss>

