I am using the Python 'win32com' library. What is the minimum version of the 'ExportAsFixedFormat' method for converting Excel to PDF?

Sanghun Kim 0 Reputation points
2024-12-03T08:18:37.25+00:00

I literally created a .exe application to export Excel files to PDF using Python with the win32com library (version 308). I know that this library depends on and uses the 'ExportAsFixedFormat' method of Excel.

Currently, Windows 10 and Microsoft 365 are installed on my PC, and my programs work well. However, I'm wondering if my work would run without trouble on other PCs.

What are the minimum versions of Windows and Excel in which the 'ExportAsFixedFormat' method is available or first appeared? I've tried to find information in the technical documentation, but I was unable to get an answer.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,821 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiajing Hua-MFST 16,440 Reputation points Microsoft External Staff
    2024-12-04T05:43:04.3633333+00:00

    Hi @Sanghun Kim

    The earliest version I can find that can apply ExportAsFixedFormat method is Office 2007.

    Reference:

    https://stackoverflow.com/questions/634990/converting-excel-to-pdf-with-vs2008-and-office2007

    https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2008/bb386827(v=vs.90)

    For the minimum version of Windows, in my opinion, it is also related to the Office version. As long as Excel 2007 or later can be installed and used, the Windows system version should not affect the availability of this feature.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.