<?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 Macro to generate reports ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308400#M113862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application wich present results for many societies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to generate the same report for each society. I have a report working but when i launch it, it create only on PDF with all my societies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want is to generate this report for each value in my field SOCIETY and to record the PDF with each name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose its possible using macro, but i'm totally newbie a it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 13:04:31 GMT</pubDate>
    <dc:creator>christophebrault</dc:creator>
    <dc:date>2012-01-26T13:04:31Z</dc:date>
    <item>
      <title>Macro to generate reports ?</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308400#M113862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application wich present results for many societies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to generate the same report for each society. I have a report working but when i launch it, it create only on PDF with all my societies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want is to generate this report for each value in my field SOCIETY and to record the PDF with each name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose its possible using macro, but i'm totally newbie a it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308400#M113862</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-01-26T13:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to generate reports ?</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308401#M113863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, edit your report so it uses each value in the field SOCIETY: Menu Reports, Edit Reports..., Edit &amp;gt;&amp;gt; button, Page menu, Page Settings, Banding tab and click Loop page over possible values in field and select SOCIETY from the drop down. Accept, OK and go to the sheet where you were.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test that the report is actually banded using this field, do a print preview and note that depending on your report and data volume and possible values of SOCIETY, it may take several minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is working fine when you click on the report, take a look at &lt;A _jive_internal="true" href="https://community.qlik.com/thread/17061"&gt;this macro code&lt;/A&gt; or this other macro code and adapt to fit your field names and so. Note that the PDF printer must exist and may differ from the ones used in the snippets of those posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Sub ReportPrint&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set soc = ActiveDocument.Fields("SOCIETY")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set socPossible = soc.GetPossibleValues&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For i = 0 to socPossible.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; soc.Select socPossible.Item(i).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintDocReport "RP01", "Printer Name Here"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 13:23:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308401#M113863</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-26T13:23:02Z</dc:date>
    </item>
    <item>
      <title>Macro to generate reports ?</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308402#M113864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes we are very close to a great solution !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using PDF Creator.&lt;/P&gt;&lt;P&gt;This macro works well but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the macro loop, it ask to name each files created. How can you auto name files with the value in the field ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then say to save this files in a directory ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 16:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308402#M113864</guid>
      <dc:creator>christophebrault</dc:creator>
      <dc:date>2012-01-26T16:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to generate reports ?</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308403#M113865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the code in &lt;A _jive_internal="true" href="https://community.qlik.com/thread/22299"&gt;this thread&lt;/A&gt;, in particular the part that refers to bypass the dialog window. You may consider chaing to another printer (CutePDF instead).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 17:11:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-generate-reports/m-p/308403#M113865</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-26T17:11:25Z</dc:date>
    </item>
  </channel>
</rss>

