<?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: How to check if an object is invisible or not in VBScript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-check-if-an-object-is-invisible-or-not-in-VBScript/m-p/1602397#M596381</link>
    <description>&lt;P&gt;Best I can do for you is the attached API Guide app, which has all the available calls, hopefully you can find what you need there.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 15:27:18 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-07-15T15:27:18Z</dc:date>
    <item>
      <title>How to check if an object is invisible or not in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-an-object-is-invisible-or-not-in-VBScript/m-p/1590133#M596380</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm writing a VBScript to export all visible objects in a sheet to PowerPoint slide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use&amp;nbsp;ActiveDocument.ActiveSheet.GetSheetObjects to get all objects in the sheet and copy them to a slide one by one. But I want to skip the objects that are invisible, because seems to me the script does not handle invisible object correctly..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        Objects = ActiveDocument.ActiveSheet.GetSheetObjects
	SET PPSlide = PPPres.Slides.Add(PPSlideNo, 12) 

	For i = lBound(Objects) To uBound(Objects)
		set obj = sht.SheetObjects(i)
		ActiveDocument.GetApplication.WaitForIdle
		'------------ Get Chart Object and Export to PPT Slide ----
		obj.CopyBitmapToClipboard 
	
		'------------ Configure Object Position and Size ----------
		SET Shape = PPSlide.Shapes.Paste
		Shape.LockAspectRatio = msoTRUE

		Shape.LEFT = obj.getRect.left * ratioW
		Shape.Top = obj.getRect.top * ratioH
		r = obj.getRect.width / printW * slideW / Shape.width
		Shape.ScaleWidth r , msoTrue 'relative to original size
		Shape.ScaleHeight r , msoTrue 'relative to original size
	next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is if an object is invisible, the script simply copies the previous visible object again and paste it to the slide..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Meng&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-an-object-is-invisible-or-not-in-VBScript/m-p/1590133#M596380</guid>
      <dc:creator>msmichael</dc:creator>
      <dc:date>2024-11-16T20:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if an object is invisible or not in VBScript</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-an-object-is-invisible-or-not-in-VBScript/m-p/1602397#M596381</link>
      <description>&lt;P&gt;Best I can do for you is the attached API Guide app, which has all the available calls, hopefully you can find what you need there.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-an-object-is-invisible-or-not-in-VBScript/m-p/1602397#M596381</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-15T15:27:18Z</dc:date>
    </item>
  </channel>
</rss>

