|Manuals

IVirtualUI::PreviewPdf Method

Displays a specified PDF file in the end-user’s web browser with printing options disabled.

Syntax

HRESULT _stdcall PreviewPdf([in] BSTR AFileName);

Parameters

Parameter Type Description
AFileName BSTR The filename of the PDF document to display.

Return Value

Type Description
HRESULT Standard COM result code indicating success or failure.

Remarks

Unlike the PrintPdf method, PreviewPdf disables the printing options in the browser while allowing built-in browser printing commands to remain accessible.