<?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 You could do this using a in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69438#M22043</link>
    <description>You could do this using a custom Code Stage in your MS Excel VBO. Something like this works:
  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
Two values need to be hard-coded: Quality (0=standard), and the Type (0=PDF, 1=XPS). You pass in the Handle and the Workbook name (e.g. ""Test.xlsx"") to a new page in the MS Excel VBO called something like ""ExportToPDF"" and then call that in your Process.
Hope that's useful.
Chris McDermott.</description>
    <pubDate>Tue, 28 Jul 2015 20:47:00 GMT</pubDate>
    <dc:creator>ChrisMcDermott</dc:creator>
    <dc:date>2015-07-28T20:47:00Z</dc:date>
    <item>
      <title>Excel to PDF Utility</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69433#M22038</link>
      <description>I am trying to create an object that will save the excel file to pdf. I am getting errors with the code  that is releated Microsoft.Office.Interop.Excel but I already add the dll to the external references.</description>
      <pubDate>Tue, 26 May 2015 20:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69433#M22038</guid>
      <dc:creator>RyanMutya</dc:creator>
      <dc:date>2015-05-26T20:40:00Z</dc:date>
    </item>
    <item>
      <title>Do you have a PDF writer</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69434#M22039</link>
      <description>Do you have a PDF writer installed on your workstation? It may be easier to just have Excel use a PDF writer. You can download a free PDF application called ""CutePDF"".</description>
      <pubDate>Tue, 26 May 2015 22:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69434#M22039</guid>
      <dc:creator>JustinBishop</dc:creator>
      <dc:date>2015-05-26T22:47:00Z</dc:date>
    </item>
    <item>
      <title>and then excel will print the</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69435#M22040</link>
      <description>and then excel will print the worksheet to pdf right?</description>
      <pubDate>Tue, 26 May 2015 22:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69435#M22040</guid>
      <dc:creator>RyanMutya</dc:creator>
      <dc:date>2015-05-26T22:52:00Z</dc:date>
    </item>
    <item>
      <title>Yes. ""Printing"" would simply</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69436#M22041</link>
      <description>Yes. ""Printing"" would simply allow you to save the file.</description>
      <pubDate>Tue, 26 May 2015 23:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69436#M22041</guid>
      <dc:creator>JustinBishop</dc:creator>
      <dc:date>2015-05-26T23:02:00Z</dc:date>
    </item>
    <item>
      <title>Hi scott,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69437#M22042</link>
      <description>Hi scott,
I have been following the source from this site since yesterday same that you provided: 
&lt;A href="https://msdn.microsoft.com/en-us/library/bb407651%28v=office.12%29.aspx" target="test_blank"&gt;https://msdn.microsoft.com/en-us/library/bb407651%28v=office.12%29.aspx&lt;/A&gt; 
but it is giving me an error:
- 'XlFixedFormatQuality' namespace could not be found, does not exist in the current context
-  Microsoft.Office.Interop.Excel.Workbook  does not contain a definition for ""ExportAsFixedFormat""
I already added the Microsoft.Office.Interop.Excel.dll in the external references and also in the namespace imports.
I am thinking that it has something to do Excel 12.0 Object Library but dont know on how to include or and where to get it.
Thanks.
Ryan</description>
      <pubDate>Wed, 27 May 2015 00:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69437#M22042</guid>
      <dc:creator>RyanMutya</dc:creator>
      <dc:date>2015-05-27T00:43:00Z</dc:date>
    </item>
    <item>
      <title>You could do this using a</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69438#M22043</link>
      <description>You could do this using a custom Code Stage in your MS Excel VBO. Something like this works:
  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
Two values need to be hard-coded: Quality (0=standard), and the Type (0=PDF, 1=XPS). You pass in the Handle and the Workbook name (e.g. ""Test.xlsx"") to a new page in the MS Excel VBO called something like ""ExportToPDF"" and then call that in your Process.
Hope that's useful.
Chris McDermott.</description>
      <pubDate>Tue, 28 Jul 2015 20:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69438#M22043</guid>
      <dc:creator>ChrisMcDermott</dc:creator>
      <dc:date>2015-07-28T20:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: You could do this using a</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69439#M22044</link>
      <description>&lt;P&gt;Hi Chris,&lt;BR /&gt;In this example how do you make the Filename dynamic?&amp;nbsp; I have attempted to use this code based on a youtube video and it is not working.&amp;nbsp; I tried passing in a dynamic variable name for the FileName but am doing something wrong.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jon&lt;/P&gt;&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:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-to-PDF-Utility/m-p/69439#M22044</guid>
      <dc:creator>JonathanHolstin</dc:creator>
      <dc:date>2020-04-10T03:11:00Z</dc:date>
    </item>
  </channel>
</rss>

