<?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 How to use CopyBitmapToClipboard on a Linked object? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-CopyBitmapToClipboard-on-a-Linked-object/m-p/383214#M143023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a document with 2 sheets. I have linked a chart from the 1st sheet onto the 2nd sheet. When I try to run the macro &lt;/P&gt;&lt;P&gt;below from a button on the 2nd sheet, I get the following error:&lt;/P&gt;&lt;P&gt;Shapes.Paste : Invalid request.&amp;nbsp; Clipboard is empty or contains data which may not be pasted here. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''***********Create Powperpoint Report******************&lt;BR /&gt;sub To_Powerpoint &lt;/P&gt;&lt;P&gt;Set PPApp = CreateObject("Powerpoint.Application")&amp;nbsp; &lt;BR /&gt;PPApp.Visible = True&lt;BR /&gt;Set PPPres = PPApp.Presentations.Add &lt;/P&gt;&lt;P&gt;Set PPSlide = PPPres.Slides.Add(1, 1)&lt;BR /&gt;ppApp.ActiveWindow.View.GotoSlide 1&lt;BR /&gt;PPSlide.Shapes(1).Delete ' removes the title &lt;BR /&gt;PPSlide.Shapes(1).Delete ' removes the subtitle &lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH16").CopyBitmapToClipboard&lt;BR /&gt;PPSlide.Shapes.Paste.Select &lt;/P&gt;&lt;P&gt;PPPres.SaveAs "C:\temp\Report.pptx"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Set PPSlide = Nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set PPPres = Nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set PPApp = Nothing &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;The macro works as expected on the 1st sheet with the original chart object.&lt;/P&gt;&lt;P&gt;Does anyone know how to use CopyBitmapToClipboard on a Linked Object?&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Grant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Sep 2012 21:24:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-09-01T21:24:57Z</dc:date>
    <item>
      <title>How to use CopyBitmapToClipboard on a Linked object?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-CopyBitmapToClipboard-on-a-Linked-object/m-p/383214#M143023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a document with 2 sheets. I have linked a chart from the 1st sheet onto the 2nd sheet. When I try to run the macro &lt;/P&gt;&lt;P&gt;below from a button on the 2nd sheet, I get the following error:&lt;/P&gt;&lt;P&gt;Shapes.Paste : Invalid request.&amp;nbsp; Clipboard is empty or contains data which may not be pasted here. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;''***********Create Powperpoint Report******************&lt;BR /&gt;sub To_Powerpoint &lt;/P&gt;&lt;P&gt;Set PPApp = CreateObject("Powerpoint.Application")&amp;nbsp; &lt;BR /&gt;PPApp.Visible = True&lt;BR /&gt;Set PPPres = PPApp.Presentations.Add &lt;/P&gt;&lt;P&gt;Set PPSlide = PPPres.Slides.Add(1, 1)&lt;BR /&gt;ppApp.ActiveWindow.View.GotoSlide 1&lt;BR /&gt;PPSlide.Shapes(1).Delete ' removes the title &lt;BR /&gt;PPSlide.Shapes(1).Delete ' removes the subtitle &lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH16").CopyBitmapToClipboard&lt;BR /&gt;PPSlide.Shapes.Paste.Select &lt;/P&gt;&lt;P&gt;PPPres.SaveAs "C:\temp\Report.pptx"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Set PPSlide = Nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set PPPres = Nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set PPApp = Nothing &lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;The macro works as expected on the 1st sheet with the original chart object.&lt;/P&gt;&lt;P&gt;Does anyone know how to use CopyBitmapToClipboard on a Linked Object?&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;Grant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 21:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-CopyBitmapToClipboard-on-a-Linked-object/m-p/383214#M143023</guid>
      <dc:creator />
      <dc:date>2012-09-01T21:24:57Z</dc:date>
    </item>
  </channel>
</rss>

