<?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: Picture Box Rotation in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4138#M111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Molto bene!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to mak my answer as correct so it will be useful also for other people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buona giornata,&lt;/P&gt;&lt;P&gt;Ruggero &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 11:25:14 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2018-01-22T11:25:14Z</dc:date>
    <item>
      <title>Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4131#M104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I would like to know whether it is possible, when creating a picture box, to rotate it directly on Report Designer or I need to define it on the script? Do you know any workaround to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 17:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4131#M104</guid>
      <dc:creator>framacdev</dc:creator>
      <dc:date>2018-01-21T17:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4132#M105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In what kind of report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4132#M105</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-01-22T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4133#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I encounter the mentioned issue in PixelReport&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 08:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4133#M106</guid>
      <dc:creator>framacdev</dc:creator>
      <dc:date>2018-01-22T08:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4134#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not a control to rotate images. To achieve the required result:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change the scripting language of the document to Visual Basic&lt;/LI&gt;&lt;LI&gt;Add the image in the template and keep it selected&lt;/LI&gt;&lt;LI&gt;In the image propreties grid selec BeforePrint event in the script menu&lt;/LI&gt;&lt;LI&gt;Create a new Visual Basic script and add the code&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;CODE style="background-position: initial;"&gt;&lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Private&lt;/SPAN&gt; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Sub&lt;/SPAN&gt; xrPictureBox1_BeforePrint(sender &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Object&lt;/SPAN&gt;, e &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; System.Drawing.Printing.PrintEventArgs)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Dim&lt;/SPAN&gt; _pictureBox &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; XRPictureBox = &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;TryCast&lt;/SPAN&gt;(sender, XRPictureBox)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Dim&lt;/SPAN&gt; _image &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; Image = _pictureBox.Image&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Dim&lt;/SPAN&gt; _bitmap &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;New&lt;/SPAN&gt; Bitmap(_image)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Dim&lt;/SPAN&gt; _graphics &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;As&lt;/SPAN&gt; Graphics = Graphics.FromImage(_bitmap)&lt;BR /&gt;&amp;nbsp; _graphics.Clear(Color.White)&lt;BR /&gt;&amp;nbsp; _graphics.DrawImage(_image, 0, 0, _image.Width, _image.Height)&lt;BR /&gt;&amp;nbsp; _bitmap.RotateFlip(RotateFlipType.Rotate90FlipX)&lt;BR /&gt;&amp;nbsp; _pictureBox.Image = _bitmap&lt;BR /&gt;&lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;End&lt;/SPAN&gt; &lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;Sub&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="cr-vb-keyword" style="background-position: initial; color: blue;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For more details about PixelPerfect scripts refer to the video&lt;BR /&gt;&lt;IFRAME frameborder="0" width="425" height="350" src="https://www.youtube.com/embed/iL-qmau233k" allowfullscreen=""&gt;&lt;/IFRAME&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ruggero&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;/P&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4134#M107</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-01-22T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4135#M108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your quick response, Ruggero.&lt;/P&gt;&lt;P&gt;For static images your code works, but if I apply your code, doing data binding, to an object that contains a picture in Qlik Sense, it does not work.&lt;/P&gt;&lt;P&gt;Do I need to change something in the code that you have sent to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4135#M108</guid>
      <dc:creator>framacdev</dc:creator>
      <dc:date>2018-01-22T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4136#M109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested the code also with a Qlik Sense chart and it works. It is printed rotated in the generated PDF. &lt;/P&gt;&lt;P&gt;Could you share some screenshots of your template?&lt;/P&gt;&lt;P&gt;Maybe a Visual Basic developer can share some ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 10:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4136#M109</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-01-22T10:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4137#M110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noticed that the previous part of my PixelReport document was set with a level where one picture was stored. I wanted the same picture in another part of my report but rotated, so I have created another detail. What I needed to do was to Insert Detail Report in this section to print the rotated picture. &lt;/P&gt;&lt;P&gt;I did that and your code works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much Ruggero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4137#M110</guid>
      <dc:creator>framacdev</dc:creator>
      <dc:date>2018-01-22T11:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Box Rotation</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4138#M111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Molto bene!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to mak my answer as correct so it will be useful also for other people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Buona giornata,&lt;/P&gt;&lt;P&gt;Ruggero &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/Picture-Box-Rotation/m-p/4138#M111</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2018-01-22T11:25:14Z</dc:date>
    </item>
  </channel>
</rss>

