<?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 Issue with export to powerpoint macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210106#M64839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LuciaN...no luck with Application.Refresh &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Dec 2010 08:43:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-02T08:43:01Z</dc:date>
    <item>
      <title>Issue with export to powerpoint macro</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210103#M64836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a macro to export the charts to multiple slides in powerpoint. The export is working fine without any issues for charts which are visible in the sheet.&lt;/P&gt;&lt;P&gt;I have many hidden charts which are restored by a variable selection. I need to export them to powerpoint. I have incuded additional script in macro to change the variable name, so that the hidden charts are restored and then exported to powerpoint slides. This is not working. The variable value are changed correctly by the macro, but the corresponding charts are not exported.&lt;/P&gt;&lt;P&gt;The script is given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;'The below macro is to set the variable value to hide/display the corresponding charts&lt;BR /&gt;sub varSel(varContent)&lt;BR /&gt;&lt;BR /&gt; Set v = ActiveDocument.Variables("vAnalysisMode")&lt;BR /&gt; v.setContent varContent, true&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;sub exportSlide(slideRef)&lt;BR /&gt; select case slideRef&lt;BR /&gt;&lt;BR /&gt; case "S_1"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; 'set the variable value to display the appropriate charts&lt;BR /&gt; call varSel("MAT Financials")&lt;BR /&gt;&lt;BR /&gt; intSlideNumber = 1&lt;BR /&gt;&lt;BR /&gt; 'Charts to be exported to slide 1&lt;BR /&gt; call exportObject("CH366", intSlideNumber, 32, 31, 80, 90)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; case "S_4"&lt;BR /&gt;&lt;BR /&gt; 'set the variable value to display the appropriate charts&lt;BR /&gt; call varSel("$ per SSU")&lt;BR /&gt; call exportObject("CH411", 4, 200, 100, 80, 90)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; end select&lt;BR /&gt;&lt;BR /&gt; 'call varSel("False()")&lt;BR /&gt;end sub&lt;BR /&gt;'Function to export the objects to slides&lt;BR /&gt;function exportObject(objectId, slideNumber, width, height, posLeft, posTop)&lt;BR /&gt; ActiveDocument.GetSheetObject(objectId).CopyBitmapToClipboard&lt;BR /&gt; ppApp.ActiveWindow.View.Gotoslide slideNumber&lt;BR /&gt; ppApp.ActiveWindow.ViewType=1&lt;BR /&gt; ppApp.ActiveWindow.View.Paste&lt;BR /&gt; ppApp.ActiveWindow.Selection.ShapeRange.Left = posLeft&lt;BR /&gt; ppApp.ActiveWindow.Selection.ShapeRange.Top = posTop&lt;BR /&gt;End function&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The macro gets debugged without any error and the powerpoint is generated but, the required charts are not copied. Am I missing something? please throw some light on this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Haneesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 08:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210103#M64836</guid>
      <dc:creator />
      <dc:date>2010-12-02T08:06:51Z</dc:date>
    </item>
    <item>
      <title>Issue with export to powerpoint macro</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210104#M64837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using Application.Refresh to force redrawing of the objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 08:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210104#M64837</guid>
      <dc:creator />
      <dc:date>2010-12-02T08:25:09Z</dc:date>
    </item>
    <item>
      <title>Issue with export to powerpoint macro</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210105#M64838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to call this before copying the image to clipboard.&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 08:39:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210105#M64838</guid>
      <dc:creator />
      <dc:date>2010-12-02T08:39:41Z</dc:date>
    </item>
    <item>
      <title>Issue with export to powerpoint macro</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210106#M64839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks LuciaN...no luck with Application.Refresh &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 08:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210106#M64839</guid>
      <dc:creator />
      <dc:date>2010-12-02T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Issue with export to powerpoint macro</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210107#M64840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haneesh,&lt;BR /&gt;I have an app where I have a tab that contains replica tables &amp;amp; charts that I also have hidden from Users. Like you, when the User presses the button to extract to PowerPoint or Excel, a variable opens the tab &amp;amp; allows the export and then hides the tab from them when finished. Also like you, I found that even though the macro ran there was no output!&lt;BR /&gt;I got around it by using the API "Restore" bit of code; sample attached below:&lt;BR /&gt;&lt;BR /&gt;set v = ActiveDocument.Variables("vshow")&lt;BR /&gt; v.ForceContent "0",0&lt;BR /&gt; set s=ActiveDocument.Sheets("PPT_Extracts")&lt;BR /&gt; ActiveDocument.Sheets("PPT_Extracts").Activate&lt;BR /&gt; ActiveDocument.ClearCache&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.GetSheetObject("TX140").Restore&lt;BR /&gt; ActiveDocument.GetSheetObject("TX140").CopyTextToClipboard&lt;BR /&gt; PPApp.Visible = True&lt;BR /&gt; Set PPSlide = PPPres.Slides(1)&lt;BR /&gt; PPSlide.Shapes(4).TextFrame.TextRange.Paste&lt;BR /&gt; PPSlide.Shapes(4).Left = 28.3447&lt;BR /&gt; PPSlide.Shapes(4).Top = 204.6485&lt;BR /&gt; PPSlide.Shapes(4).Height = 29.195&lt;BR /&gt; PPSlide.Shapes(4).Width = 655.6122&lt;BR /&gt; Set PPShapes = PPPres.Slides(1).Shapes(4).TextFrame.TextRange&lt;BR /&gt; PPShapes.Font.Name = "Tahoma"&lt;BR /&gt; PPShapes.Font.Color.RGB = RGB(25,77,109)&lt;BR /&gt; Set PPFont = PPPres.Slides(1).Shapes(4).TextEffect&lt;BR /&gt; PPFont.FontSize = 28&lt;BR /&gt; ActiveDocument.GetSheetObject("TX140").Minimize&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; ActiveDocument.ClearCache&lt;/P&gt;&lt;P&gt;Hope this helps, or at least sets you on the right path.&lt;BR /&gt;Regards,&lt;BR /&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 10:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-export-to-powerpoint-macro/m-p/210107#M64840</guid>
      <dc:creator />
      <dc:date>2010-12-03T10:36:46Z</dc:date>
    </item>
  </channel>
</rss>

