<?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 Export MS Excel to PDF-file including Header/Footer in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Export-MS-Excel-to-PDF-file-including-Header-Footer/m-p/78075#M30150</link>
    <description>Hello,

I created an action to export Excel sheet to PDF with the help of this instruction in Knowledge Base:

https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-export-pdf-file-using-ms-excel-vbo

This works like a charm but I would need to print header and footer as well and those are not printed unless the view is changed (Show &amp;gt; Page setup) . I´d prefer not to do it like that so the question is:

Is there a way to alter the code to print also header + footer? 

Here´s the original code:

Dim wb as Object = GetWorkbook(handle,workbookname)
Dim excel as Object = wb.Application
excel.DisplayAlerts = False
wb.ActiveSheet.ExportAsFixedFormat (Type:=0, Filename:= "C:\Temp\MyTestPDF.pdf", Quality:=0, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False)
excel.DisplayAlerts = True

Best Regards,

Jari</description>
    <pubDate>Tue, 15 Aug 2017 11:52:00 GMT</pubDate>
    <dc:creator>JariKorkkinen</dc:creator>
    <dc:date>2017-08-15T11:52:00Z</dc:date>
    <item>
      <title>Export MS Excel to PDF-file including Header/Footer</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Export-MS-Excel-to-PDF-file-including-Header-Footer/m-p/78075#M30150</link>
      <description>Hello,

I created an action to export Excel sheet to PDF with the help of this instruction in Knowledge Base:

https://portal.blueprism.com/customer-support/knowledge-base/how-do-i-export-pdf-file-using-ms-excel-vbo

This works like a charm but I would need to print header and footer as well and those are not printed unless the view is changed (Show &amp;gt; Page setup) . I´d prefer not to do it like that so the question is:

Is there a way to alter the code to print also header + footer? 

Here´s the original code:

Dim wb as Object = GetWorkbook(handle,workbookname)
Dim excel as Object = wb.Application
excel.DisplayAlerts = False
wb.ActiveSheet.ExportAsFixedFormat (Type:=0, Filename:= "C:\Temp\MyTestPDF.pdf", Quality:=0, IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False)
excel.DisplayAlerts = True

Best Regards,

Jari</description>
      <pubDate>Tue, 15 Aug 2017 11:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Export-MS-Excel-to-PDF-file-including-Header-Footer/m-p/78075#M30150</guid>
      <dc:creator>JariKorkkinen</dc:creator>
      <dc:date>2017-08-15T11:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Export MS Excel to PDF-file including Header/Footer</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Export-MS-Excel-to-PDF-file-including-Header-Footer/m-p/78076#M30151</link>
      <description>Hi Jari,&lt;BR /&gt;I know this thread is very old but I was hoping to find the Excel to PDF instruction for Blue Prism.&amp;nbsp; The link you provided is no longer valid.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Jon&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jonathan Holstine&lt;BR /&gt;Systems Accountant&lt;BR /&gt;Interior Business Center&lt;BR /&gt;America/Denver&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Apr 2020 03:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Export-MS-Excel-to-PDF-file-including-Header-Footer/m-p/78076#M30151</guid>
      <dc:creator>JonathanHolstin</dc:creator>
      <dc:date>2020-04-10T03:09:00Z</dc:date>
    </item>
  </channel>
</rss>

