Skip to content

Excel Workbook Save As PDF

New Discussion
Paul Decristoforo
Paul Decristoforo asked on Aug 10, 2016 4:45 PM

Hi,

I’m using the Infragistics.Documents.Excel.Workbook class to load in an Excel workbook (Excel 2007). I’m wondering if there is any way to save this workbook as a PDF file. Basically, I’m looking for a way where “Save As type: PDF” in Excel can be done programmatically. Is there any way to do this with the Workbook or PdfDocument classes?

Thanks,
Paul

Sign In to post a reply

Replies

  • 0
    Hristo Anastasov
    Hristo Anastasov answered on Aug 10, 2016 1:11 PM

    Hello Paul,

    I do not see a way to achieve the desired. The core classes that hold the pdf document object and the excel workbook object are Report and Workbook. They are part of different namespaces and I truly believe that casting one to another will not work out.

    I suggest you stick to the conventional way and create either the excel/pdf file from scratch as demonstrated in our online samples:

    https://es.infragistics.com/help/aspnet/webdocumentexporter-getting-started-with-webdocumentexporterhttp://es.infragistics.com/samples/aspnet/infragistics-documents/export-to-pdf-or-xps

    http://winfragistics.com/help/aspnet/excelengine-save-and-load-files-in-excel-template-formatww.infragistics.com/samples/aspnet/infragistics-excel/save-load-excel-files

    Please let me know if you have further questions, I will be glad top help.

    • 0
      Paul Decristoforo
      Paul Decristoforo answered on Aug 10, 2016 4:45 PM

      Thanks for the response. We have an extensive templating feature in our application that uses Excel to template data (and we use Infragistics to load in the Excel template and fill in the data). There's really no way for us to conventionally use the pdf feature because we need to start with an Excel template. So it sounds like we'll need to figure something else out for going from Excel to PDF.

      Thanks,

      Paul

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Paul Decristoforo
Favorites
0
Replies
2
Created On
Aug 10, 2016
Last Post
9 years, 6 months ago

Suggested Discussions

Created by

Created on

Aug 10, 2016 4:45 PM

Last activity on

Feb 23, 2026 9:44 AM