<?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: Pixel Perfect KPI Color Formatting via Script in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Pixel-Perfect-KPI-Color-Formatting-via-Script/m-p/1688837#M28455</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will not answer your question regarding how to properly write a script to do color fomratting - sorrymbut...&lt;/P&gt;&lt;P&gt;If you share bit more info on how you want to color format your objects I should be able to give you different method (using formatting rules) to achieve the same.&lt;/P&gt;&lt;P&gt;Is there any reason why you are not using formatting rules and trying use a script?&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2020 02:32:58 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2020-03-30T02:32:58Z</dc:date>
    <item>
      <title>Pixel Perfect KPI Color Formatting via Script</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Pixel-Perfect-KPI-Color-Formatting-via-Script/m-p/1688682#M28448</link>
      <description>&lt;P&gt;Hello Friends!&lt;/P&gt;&lt;P&gt;I'm trying to get a pixel perfect report with some kpi's. I am getting this KPI's througth variables and formulas. I want to give colors to this KPI´s depending some variables evaluations. I want to do that using script features but I am getting errors (see attach file). In other words, I want to get a KPI color depending variable or funtion evaluation via script.&lt;/P&gt;&lt;P&gt;private void PixelPerfect_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {&lt;/P&gt;&lt;P&gt;if(ColorCant &amp;lt; 0)&lt;BR /&gt;{&lt;BR /&gt;label11.ForeColor = Color.FromArgb(192, 0, 0);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;label11.ForeColor = Color.FromArgb(100, 100, 100);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 22:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Pixel-Perfect-KPI-Color-Formatting-via-Script/m-p/1688682#M28448</guid>
      <dc:creator>hugocesar</dc:creator>
      <dc:date>2020-03-27T22:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Pixel Perfect KPI Color Formatting via Script</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Pixel-Perfect-KPI-Color-Formatting-via-Script/m-p/1688837#M28455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will not answer your question regarding how to properly write a script to do color fomratting - sorrymbut...&lt;/P&gt;&lt;P&gt;If you share bit more info on how you want to color format your objects I should be able to give you different method (using formatting rules) to achieve the same.&lt;/P&gt;&lt;P&gt;Is there any reason why you are not using formatting rules and trying use a script?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 02:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Pixel-Perfect-KPI-Color-Formatting-via-Script/m-p/1688837#M28455</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-03-30T02:32:58Z</dc:date>
    </item>
  </channel>
</rss>

