<?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: the custom code in paginated report in report server not working in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2152621#M21428</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="288334" data-lia-user-login="Tengmin123" class="lia-mention lia-mention-user"&gt;Tengmin123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't reproduce your problem at the moment, refer to the following documents and blogs to see if they can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Paginated-Reports-with-Custom-Code-VB-Code/ba-p/1763214" target="_blank"&gt;Power BI Paginated Reports with Custom Code (VB Co... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq" target="_blank"&gt;Paginated reports in Power BI: FAQ - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Henry&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 06:13:56 GMT</pubDate>
    <dc:creator>v-henryk-mstf</dc:creator>
    <dc:date>2021-10-25T06:13:56Z</dc:date>
    <item>
      <title>the custom code in paginated report in report server not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2149980#M21415</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I custom a function in my report builder which can get response json from other server and generate a new url for me.&amp;nbsp; my code is like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Function Div_RT(ByVal DR As String) As String&lt;BR /&gt;Dim request_bbox As System.Net.HttpWebRequest&lt;BR /&gt;Dim response_bbox As System.Net.HttpWebResponse = Nothing&lt;BR /&gt;Dim reader_bbox As System.IO.StreamReader&lt;BR /&gt;Dim DR2 as String = Replace(DR, ",","_")&lt;BR /&gt;Dim getbbox_url as String&lt;BR /&gt;getbbox_url ="&lt;A href="http://XXXXXXXXXXXXXXX" target="_blank"&gt;http://XXXXXXXXXXXXXXX&lt;/A&gt;"&lt;BR /&gt;request_bbox = DirectCast(request_bbox.Create(getbbox_url), System.Net.HttpWebRequest)&lt;BR /&gt;response_bbox = DirectCast(request_bbox.GetResponse(), System.Net.HttpWebResponse)&lt;BR /&gt;reader_bbox = New System.IO.StreamReader(response_bbox.GetResponseStream())&lt;BR /&gt;Dim rawresp As String&lt;BR /&gt;rawresp = reader_bbox.ReadToEnd()&lt;/P&gt;&lt;P&gt;Dim s As String&lt;BR /&gt;s = Mid(rawresp, InStr(rawresp, "map_get_extent_linkids")+25, InStr(rawresp, "}}]")-InStr(rawresp, "map_get_extent_linkids")-26)&lt;/P&gt;&lt;P&gt;Dim divrt as String&lt;BR /&gt;divrt ="&lt;A href="http://XXXXXXXXXXXXXXXXXXXXXXXX" target="_blank"&gt;http://XXXXXXXXXXXXXXXXXXXXXXXX&lt;/A&gt;"&lt;BR /&gt;Div_RT=divrt&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I test this function in my local which can work well( cuz I change the "RSPreviewPolicy" file under&amp;nbsp;C:\Program Files (x86)\Microsoft Report Builder. I update&amp;nbsp;PermissionSetName="FullTrust" instead if "Execution"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;CodeGroup&lt;BR /&gt;class="UnionCodeGroup"&lt;BR /&gt;version="1"&lt;BR /&gt;PermissionSetName="FullTrust"&lt;BR /&gt;Name="Report_Expressions_Default_Permissions"&lt;BR /&gt;Description="This code group grants default permissions for code in report expressions and Code element. "&amp;gt;&lt;BR /&gt;&amp;lt;IMembershipCondition&lt;BR /&gt;class="StrongNameMembershipCondition"&lt;BR /&gt;version="1"&lt;BR /&gt;PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100512C8E872E28569E733BCB123794DAB55111A0570B3B3D4DE3794153DEA5EFB7C3FEA9F2D8236CFF320C4FD0EAD5F677880BF6C181F296C751C5F6E65B04D3834C02F792FEE0FE452915D44AFE74A0C27E0D8E4B8D04EC52A8E281E01FF47E7D694E6C7275A09AFCBFD8CC82705A06B20FD6EF61EBBA6873E29C8C0F2CAEDDA2"&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;&amp;lt;/CodeGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then I publish this report to power bi report server, the function cannot work again. so I update the "rssrvpolicy" file under&amp;nbsp;C:\Program Files\Microsoft Power BI Report Server\PBIRS\ReportServer.&amp;nbsp;I update&amp;nbsp;PermissionSetName="FullTrust" instead if "Execution"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust" Name="Report_Expressions_Default_Permissions" Description="This code group grants default permissions for code in report expressions and Code element. "&amp;gt;&lt;BR /&gt;&amp;lt;IMembershipCondition class="StrongNameMembershipCondition" version="1" PublicKeyBlob="0024000004800000940000000602000000240000525341310004000001000100512C8E872E28569E733BCB123794DAB55111A0570B3B3D4DE3794153DEA5EFB7C3FEA9F2D8236CFF320C4FD0EAD5F677880BF6C181F296C751C5F6E65B04D3834C02F792FEE0FE452915D44AFE74A0C27E0D8E4B8D04EC52A8E281E01FF47E7D694E6C7275A09AFCBFD8CC82705A06B20FD6EF61EBBA6873E29C8C0F2CAEDDA2" /&amp;gt;&lt;BR /&gt;&amp;lt;/CodeGroup&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it does not work in power bi report server. I also restart the server. can you help to check how can I make this function work?@&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259995" data-lia-user-login="v-janeyg-msft" class="lia-mention lia-mention-user"&gt;v-janeyg-msft&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2149980#M21415</guid>
      <dc:creator>Tengmin123</dc:creator>
      <dc:date>2021-10-22T08:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: the custom code in paginated report in report server not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2152621#M21428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="288334" data-lia-user-login="Tengmin123" class="lia-mention lia-mention-user"&gt;Tengmin123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't reproduce your problem at the moment, refer to the following documents and blogs to see if they can help you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Power-BI-Paginated-Reports-with-Custom-Code-VB-Code/ba-p/1763214" target="_blank"&gt;Power BI Paginated Reports with Custom Code (VB Co... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq" target="_blank"&gt;Paginated reports in Power BI: FAQ - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Henry&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 06:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2152621#M21428</guid>
      <dc:creator>v-henryk-mstf</dc:creator>
      <dc:date>2021-10-25T06:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: the custom code in paginated report in report server not working</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2153005#M21435</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="275884" data-lia-user-login="v-henryk-mstf" class="lia-mention lia-mention-user"&gt;v-henryk-mstf&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; but actully, my custom code can work well in report builder. but when I upload it to power bi report server. it cannot get response from outsource web page. therefore the function cannot work. I guess it is caused by report server configuration issue. do you have any idea about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tengmin&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:34:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/the-custom-code-in-paginated-report-in-report-server-not-working/m-p/2153005#M21435</guid>
      <dc:creator>Tengmin123</dc:creator>
      <dc:date>2021-10-25T08:34:31Z</dc:date>
    </item>
  </channel>
</rss>

