VirtualUI.PrintPdf Method
Description
The PrintPdf method sends a specified PDF file to be displayed in the end-user’s web browser.
Syntax
public void PrintPdf(string FileName);
Parameters
| Parameter | Description |
|---|---|
FileName |
The name of the PDF file to be printed |
Remarks
This method functions similarly to DownloadFile, with one key difference: it delivers the file using "content-type: application/pdf" rather than a generic download content type. This causes the browser to display the PDF inline rather than prompting a download dialog.