<?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: Help require to develop the PDF by using macro of 2 tables objects and 1 labels object one below others in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529161#M1142378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also looking at how to build the pdf report without going through edit report menu .&lt;/P&gt;&lt;P&gt;I tried to do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function creatReport(ObjectID,NameObject,currenstSelection)&lt;/P&gt;&lt;P&gt;set rep = ActiveDocument.GetApplication.CreateEmptyReport&lt;/P&gt;&lt;P&gt;rep.Name = NameObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'rep.Comment = "Sample report"&lt;/P&gt;&lt;P&gt; rep.Pages.Add&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Landscape = false&lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_Left = NameObject &lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_right = currenstSelection&lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_Center = "Bolloré Africa Logistic "&lt;/P&gt;&lt;P&gt; rep.PrintOptions.footer_left = [Date] &lt;/P&gt;&lt;P&gt; rep.PrintOptions.footer_Center = "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 'rep.PrintOptions.Header_Left =getcurrentselections()&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).PageMode = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'single paper page&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Add&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).ObjectId = ObjectID&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Top = 10&amp;nbsp; 'top&lt;/P&gt;&lt;P&gt;' rep.Pages.Item(0).Items.Item(0).Rect.Clip = 3&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Left = 0&amp;nbsp; 'left&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Height =0 'half paper height&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Width = 1 'half paper width&lt;/P&gt;&lt;P&gt; ActiveDocument.AddDocReport rep&lt;/P&gt;&lt;P&gt;' ReportAdd=true&lt;/P&gt;&lt;P&gt; end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getIDreport (Path)&lt;/P&gt;&lt;P&gt;set repsID = ActiveDocument.GetDocReports&lt;/P&gt;&lt;P&gt;for i = 0 to repsID.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set rep = repsID.Item(i)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=inStr(rep.Id,"\")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportID = right(rep.Id,len(rep.Id)-p)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox(reportID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repp = ActiveDocument.GetReport(reportID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportName = repp.Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportFile = path &amp;amp; reportID &amp;amp; "_" &amp;amp; reportName &amp;amp; ".pdf"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintReport(reportID), "Bullzip PDF Printer", false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyPrintPDFWithBullZip(reportFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.Sleep 75000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ActiveDocument.Save&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION MyPrintPDFWithBullZip (reportFile)&lt;/P&gt;&lt;P&gt;set obj = CreateObject("Bullzip.PDFSettings")&lt;/P&gt;&lt;P&gt;obj.PrinterName = "Bullzip PDF Printer"&lt;/P&gt;&lt;P&gt;obj.SetValue "Output" , reportFile&lt;/P&gt;&lt;P&gt;obj.SetValue "ConfirmOverwrite", "no"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowSaveAS", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowSettings", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowPDF", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "RememberLastFileName", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "RememberLastFolderName", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowProgressFinished", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowProgress", "yes"&lt;/P&gt;&lt;P&gt;obj.WriteSettings True&lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have use the Bullzip PDF Printer&amp;nbsp; by default !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the layout is complicated with positioning object! try it and if you can do better please let me know please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hope positione many objects on a single page but i dont have the differents syntaxis for this !&lt;/P&gt;&lt;P&gt;Any idea ? &lt;/P&gt;&lt;P&gt;Cordialy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 12:33:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-26T12:33:39Z</dc:date>
    <item>
      <title>Help require to develop the PDF by using macro of 2 tables objects and 1 labels object one below others</title>
      <link>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529158#M1142375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Forums,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a help to development on PDF by using macro of 2 tables objects and 2 labels object as follows PFA of same screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want page Header Title as 'Sample Report' and page footer as "EOF Sample Report'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : For Information, I don't want to use Report Edit Menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 07:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529158#M1142375</guid>
      <dc:creator>shantanu73</dc:creator>
      <dc:date>2013-08-26T07:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help require to develop the PDF by using macro of 2 tables objects and 1 labels object one below others</title>
      <link>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529159#M1142376</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;Try this macro, hope it will work.&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;sub WebAPI&lt;BR /&gt;&lt;BR /&gt;rem ** print all pivot tables on sheet Main **&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;BR /&gt;set s=ActiveDocument.Sheets("Main")&lt;BR /&gt;charts=s.GetPivotTableBoxes&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;for i=lbound(charts) to ubound(charts)&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; set chart = charts(i)&lt;BR /&gt;&amp;nbsp; set cp = chart.GetProperties&lt;BR /&gt;&amp;nbsp; set cps = cp.PrintSettings&lt;BR /&gt;&amp;nbsp; cps.Scale = 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' 75%&lt;BR /&gt;&amp;nbsp; cps.UseScale = false&lt;BR /&gt;&amp;nbsp; chart.SetProperties cp&lt;BR /&gt;&amp;nbsp; chart.PrintEx ,1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;Neetu SIngh&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 45px;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 11:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529159#M1142376</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2013-08-26T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help require to develop the PDF by using macro of 2 tables objects and 1 labels object one below others</title>
      <link>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529160#M1142377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Neetu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you understand the requirement. I want to generate the PDF file by using Macro of QV.&lt;/P&gt;&lt;P&gt;Where there will me 2 tables objects and 2 labels object. After generateion the report the format should look as the screen shot attached in first Discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please develop small QVD file and send me the same as per my requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SRS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 11:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529160#M1142377</guid>
      <dc:creator>shantanu73</dc:creator>
      <dc:date>2013-08-26T11:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help require to develop the PDF by using macro of 2 tables objects and 1 labels object one below others</title>
      <link>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529161#M1142378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also looking at how to build the pdf report without going through edit report menu .&lt;/P&gt;&lt;P&gt;I tried to do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function creatReport(ObjectID,NameObject,currenstSelection)&lt;/P&gt;&lt;P&gt;set rep = ActiveDocument.GetApplication.CreateEmptyReport&lt;/P&gt;&lt;P&gt;rep.Name = NameObject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'rep.Comment = "Sample report"&lt;/P&gt;&lt;P&gt; rep.Pages.Add&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Landscape = false&lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_Left = NameObject &lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_right = currenstSelection&lt;/P&gt;&lt;P&gt; rep.PrintOptions.Header_Center = "Bolloré Africa Logistic "&lt;/P&gt;&lt;P&gt; rep.PrintOptions.footer_left = [Date] &lt;/P&gt;&lt;P&gt; rep.PrintOptions.footer_Center = "1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 'rep.PrintOptions.Header_Left =getcurrentselections()&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).PageMode = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'single paper page&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Add&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).ObjectId = ObjectID&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Top = 10&amp;nbsp; 'top&lt;/P&gt;&lt;P&gt;' rep.Pages.Item(0).Items.Item(0).Rect.Clip = 3&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Left = 0&amp;nbsp; 'left&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Height =0 'half paper height&lt;/P&gt;&lt;P&gt; rep.Pages.Item(0).Items.Item(0).Rect.Width = 1 'half paper width&lt;/P&gt;&lt;P&gt; ActiveDocument.AddDocReport rep&lt;/P&gt;&lt;P&gt;' ReportAdd=true&lt;/P&gt;&lt;P&gt; end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getIDreport (Path)&lt;/P&gt;&lt;P&gt;set repsID = ActiveDocument.GetDocReports&lt;/P&gt;&lt;P&gt;for i = 0 to repsID.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set rep = repsID.Item(i)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p=inStr(rep.Id,"\")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportID = right(rep.Id,len(rep.Id)-p)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox(reportID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repp = ActiveDocument.GetReport(reportID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportName = repp.Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportFile = path &amp;amp; reportID &amp;amp; "_" &amp;amp; reportName &amp;amp; ".pdf"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.PrintReport(reportID), "Bullzip PDF Printer", false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyPrintPDFWithBullZip(reportFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.Sleep 75000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ActiveDocument.Save&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION MyPrintPDFWithBullZip (reportFile)&lt;/P&gt;&lt;P&gt;set obj = CreateObject("Bullzip.PDFSettings")&lt;/P&gt;&lt;P&gt;obj.PrinterName = "Bullzip PDF Printer"&lt;/P&gt;&lt;P&gt;obj.SetValue "Output" , reportFile&lt;/P&gt;&lt;P&gt;obj.SetValue "ConfirmOverwrite", "no"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowSaveAS", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowSettings", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowPDF", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "RememberLastFileName", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "RememberLastFolderName", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowProgressFinished", "never"&lt;/P&gt;&lt;P&gt;obj.SetValue "ShowProgress", "yes"&lt;/P&gt;&lt;P&gt;obj.WriteSettings True&lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have use the Bullzip PDF Printer&amp;nbsp; by default !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the layout is complicated with positioning object! try it and if you can do better please let me know please!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hope positione many objects on a single page but i dont have the differents syntaxis for this !&lt;/P&gt;&lt;P&gt;Any idea ? &lt;/P&gt;&lt;P&gt;Cordialy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 12:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-require-to-develop-the-PDF-by-using-macro-of-2-tables/m-p/529161#M1142378</guid>
      <dc:creator />
      <dc:date>2013-08-26T12:33:39Z</dc:date>
    </item>
  </channel>
</rss>

