<?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 Nprinting: Display first 10 rows of a table by using script in Search the Community</title>
    <link>https://community.qlik.com/t5/Search-the-Community/Nprinting-Display-first-10-rows-of-a-table-by-using-script/m-p/1778786#M26</link>
    <description>&lt;P&gt;HEllo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following the tutorial to build nprinting reports through pixel perfect.&lt;/P&gt;&lt;P&gt;I am at the part where you can limit a table to the top N rows. I've copied the code but it doesn't seem to be working.&lt;/P&gt;&lt;P&gt;The code is the following:&lt;/P&gt;&lt;P&gt;using System.Drawing.Printing;&lt;BR /&gt;private int detailRowCount = 0;&lt;BR /&gt;private int topNRow = 10; //number of rows to be displayed. Change this to display a different number of rows&lt;BR /&gt;//show only the first topNRow rows&lt;BR /&gt;private void Detail_BeforePrint(object sender, PrintEventArgs e) {&lt;BR /&gt;if (++detailRowCount &amp;gt; topNRow)&lt;BR /&gt;e.Cancel = true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 07:10:25 GMT</pubDate>
    <dc:creator>gerald_lebret</dc:creator>
    <dc:date>2021-02-01T07:10:25Z</dc:date>
    <item>
      <title>Nprinting: Display first 10 rows of a table by using script</title>
      <link>https://community.qlik.com/t5/Search-the-Community/Nprinting-Display-first-10-rows-of-a-table-by-using-script/m-p/1778786#M26</link>
      <description>&lt;P&gt;HEllo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am following the tutorial to build nprinting reports through pixel perfect.&lt;/P&gt;&lt;P&gt;I am at the part where you can limit a table to the top N rows. I've copied the code but it doesn't seem to be working.&lt;/P&gt;&lt;P&gt;The code is the following:&lt;/P&gt;&lt;P&gt;using System.Drawing.Printing;&lt;BR /&gt;private int detailRowCount = 0;&lt;BR /&gt;private int topNRow = 10; //number of rows to be displayed. Change this to display a different number of rows&lt;BR /&gt;//show only the first topNRow rows&lt;BR /&gt;private void Detail_BeforePrint(object sender, PrintEventArgs e) {&lt;BR /&gt;if (++detailRowCount &amp;gt; topNRow)&lt;BR /&gt;e.Cancel = true;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Can anyone help me please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 07:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Search-the-Community/Nprinting-Display-first-10-rows-of-a-table-by-using-script/m-p/1778786#M26</guid>
      <dc:creator>gerald_lebret</dc:creator>
      <dc:date>2021-02-01T07:10:25Z</dc:date>
    </item>
  </channel>
</rss>

