<?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 Auto populate date in filename in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112736#M17516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Qlikview version 11, 64-bit edition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am creating a button for people to easily to print an entire sheet. However, &lt;/SPAN&gt;I have an issue in regards a macro i am using to copy an entire sheet to a png/pdf file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro i am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub export&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.ExportBitmapToFile "C:\Users\Administrator\Desktop\Pending Faults &lt;EM&gt;**where current date needs to be**&lt;/EM&gt;.png"&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the process of transferring some of my Excel reports into Qlikview. For those in my team who use the report, they don't have to worry about the naming convention and the location to copy too, it's all done for them at the click of a button. The Excel macro i use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SaveAsPdf()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Y:\&lt;SPAN style="font-size: 13.3333px;"&gt;Users\Administrator\Desktop\Pending Faults &lt;/SPAN&gt;" &amp;amp; Format(Now() , "YYYYMMDD") &amp;amp; ".pdf", Quality _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenAfterPublish:=True&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go about getting the date working the same in Qlikview as i had in Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracey &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 10:12:41 GMT</pubDate>
    <dc:creator>traceyamcb</dc:creator>
    <dc:date>2018-08-07T10:12:41Z</dc:date>
    <item>
      <title>Auto populate date in filename</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112736#M17516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Qlikview version 11, 64-bit edition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I am creating a button for people to easily to print an entire sheet. However, &lt;/SPAN&gt;I have an issue in regards a macro i am using to copy an entire sheet to a png/pdf file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The macro i am using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub export&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.ExportBitmapToFile "C:\Users\Administrator\Desktop\Pending Faults &lt;EM&gt;**where current date needs to be**&lt;/EM&gt;.png"&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in the process of transferring some of my Excel reports into Qlikview. For those in my team who use the report, they don't have to worry about the naming convention and the location to copy too, it's all done for them at the click of a button. The Excel macro i use is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SaveAsPdf()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Y:\&lt;SPAN style="font-size: 13.3333px;"&gt;Users\Administrator\Desktop\Pending Faults &lt;/SPAN&gt;" &amp;amp; Format(Now() , "YYYYMMDD") &amp;amp; ".pdf", Quality _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OpenAfterPublish:=True&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go about getting the date working the same in Qlikview as i had in Excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your assistance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracey &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112736#M17516</guid>
      <dc:creator>traceyamcb</dc:creator>
      <dc:date>2018-08-07T10:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate date in filename</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112737#M17517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;vPath&amp;nbsp; = "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Y:\&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Users\Administrator\Desktop\Pending Faults&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;vToday = ActiveDocument.Evaluate("Date(Today(), 'YYYYMMDD')")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.ActiveSheet.FitZoomToWindow&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.GetApplication.WaitForIdle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ActiveDocument.ActiveSheet.ExportBitmapToFile&amp;nbsp; vPath &amp;amp;"\" &amp;amp; vToday &amp;amp; ".png"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;End sub&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 17:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112737#M17517</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-08-08T17:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate date in filename</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112738#M17518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the user to enter the path dynamically, you can use variables in front end. I have attached a sample for your reference. Also, you can find the API guide in below link. You can search qlikview macro examples and syntaxes easily. Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/132321"&gt;API GUIDE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210287_Capture.PNG" style="height: 268px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 18:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112738#M17518</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-08-08T18:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Auto populate date in filename</title>
      <link>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112739#M17519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply. &lt;SPAN style="font-size: 10pt;"&gt;This worked very well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question in regards pulling several macros through together, which i will post in another thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tracey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 12:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Auto-populate-date-in-filename/m-p/112739#M17519</guid>
      <dc:creator>traceyamcb</dc:creator>
      <dc:date>2018-08-09T12:09:14Z</dc:date>
    </item>
  </channel>
</rss>

