|
InitializeSilent |
Top Previous Next |
|
The InitializeSilent method initializes the INovaPdfOptions interface silently HRESULT InitializeSilent( [in] LPCWSTR p_wsPrinterName, [in] LPCWSTR p_wsUserName, [in] LPCWSTR p_wsLicenseKey, [in] LPCWSTR p_wsApplicationName );
Parameters: p_wsPrinterName [in] pointer to a null terminated Unicode string containing the name of the printer to configure
p_wsUserName [in] pointer to a null terminated Unicode string 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 null terminated Unicode string 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 null terminated Unicode string 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 .
|