|
InitializeSilent2 |
Top Previous Next |
|
The InitializeSilent2 method initializes the INovaPdfOptions interface silently HRESULT InitializeSilent2( [in] BSTR p_wsPrinterName, [in] BSTR p_wsUserName, [in] BSTR p_wsLicenseKey, [in] BSTR p_wsApplicationName );
Parameters: p_wsPrinterName [in] pointer to a BSTR containing the name of the printer to configure
p_wsUserName [in] pointer to a BSTR containing the name of the user to whom this module is registered. If no license key is provided, this parameter must be an empty string.
p_wsLicenseKey [in] pointer to a BSTR containing the registration key. This parameter can be an empty string. If you filled this parameter, you must fill p_wsUserName also.
p_wsApplicationName [in] pointer to a BSTR containing the application name. This parameter can be an empty string. If you have a single application license you must fill this parameter.
Return values: S_OK on success or COM error code NV_INVALID_PRINTER_NAME - cannot find printer with given printer name NV_NOT_A_NOVAPDF_PRINTER - printer is not a novaPDF printer
Remarks: This method can be used instead of the Initialize method, when you don't want to have message boxes shown with error messages. Use it when your application runs as a windows service or on a server computer . |