Limited time promo



This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Mar 29, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The ConvertExcelDocument2 converts an Excel document to PDF. Excel sheet names can be added as bookmarks in the PDF.
HRESULT ConvertExcelDocument2(
    [in, string] BSTR p_wsDocName,
    [in] BOOL p_bConvertSheetNamesToPDFBookmarks,
    [in] BOOL p_bWaitPDF


    [in] Excel document name with full path

    [in] flag, if set to 1 Excel sheet names will be added as PDF bookmarks

    [in] flag, if set function returns after pdf is saved and all actions executed

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_OPENFILE_ERROR - failed to open the document
NV_FILEPROCESS_ERROR - failed to read document information


Hidden links from Excel document are not converted to PDF links.