<?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 AW:Time problem on a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186451#M505341</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using an API "WaitForIdle" to enforce the sequence of the events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2009 00:32:30 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2009-09-15T00:32:30Z</dc:date>
    <item>
      <title>Time problem on a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186449#M505339</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´m using a macro that sends each monday a weekly report, but has a time problem, first it creates a pdf file on a specific folder then the pdf file is attached to an email and sent. The problem is that it takes about 1 minute for the pdf to be created and at that time the macro already attached the pdf file that was created the l week before.&lt;/P&gt;&lt;P&gt;Is there any way to avoid this problem???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;[ code ]&lt;/P&gt;&lt;P&gt;if weekday(ff - 1) = 1 then&lt;/P&gt;&lt;P&gt;printReportPDF "c:\QV\Repositorio\Reportes\Camaras\ve\TempCamaras.pdf"&lt;BR /&gt; ActiveDocument.PrintReport "RP02", "QlikViewPDF", FALSE&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;end if&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Set objMail = CreateObject("CDO.Message")&lt;BR /&gt; objMail.From =&lt;BR /&gt; objMail.To =&lt;BR /&gt; objMail.Cc =&lt;BR /&gt; objMail.Subject =&lt;BR /&gt; objMail.TextBody =&lt;BR /&gt; 'on error resume next&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; objMail.AddAttachment "c:\QV\Repositorio\Reportes\Camaras\ve\TempCamaras.pdf"&lt;BR /&gt; objMail.send&lt;BR /&gt; Set objMail = Nothing&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;Function printReportPDF(pdfOutputFile)&lt;/P&gt;&lt;P&gt;Set WSHShell = CreateObject("WScript.Shell")&lt;BR /&gt; WSHShell.RegWrite "HKEY_CURRENT_USER\Software\QlikViewPDF\OutputFile", pdfOutputFile, "REG_SZ"&lt;BR /&gt; WSHShell.RegWrite "HKEY_CURRENT_USER\Software\QlikViewPDF\BypassSaveAs", "1", "REG_SZ"&lt;BR /&gt; Set WSHShell = nothing&lt;/P&gt;&lt;P&gt;End function&lt;/P&gt;&lt;P&gt;[ /code ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 00:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186449#M505339</guid>
      <dc:creator>camilo</dc:creator>
      <dc:date>2009-09-15T00:14:47Z</dc:date>
    </item>
    <item>
      <title>AW:Time problem on a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186450#M505340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you first delete the old pdf?&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 00:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186450#M505340</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-09-15T00:19:25Z</dc:date>
    </item>
    <item>
      <title>AW:Time problem on a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186451#M505341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try using an API "WaitForIdle" to enforce the sequence of the events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 00:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-problem-on-a-macro/m-p/186451#M505341</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-09-15T00:32:30Z</dc:date>
    </item>
  </channel>
</rss>

