Skip to main content
A newer version of this page is available. .

PdfViewerControl.Print(PdfPrinterSettings, Boolean, Int32) Method

OBSOLETE

Use the Print method instead.

Prints the current document using the specified PDF print settings without invoking the Print dialog.

Namespace: DevExpress.Xpf.PdfViewer

Assembly: DevExpress.Xpf.PdfViewer.v19.2.dll

Declaration

[Obsolete("Use the Print(PdfPrinterSettings printerSettings, bool showPrintStatus = true) overload of this method instead.")]
public virtual void Print(
    PdfPrinterSettings printerSettings,
    bool showPrintStatus,
    int maxPrintingDpi
)

Parameters

Name Type Description
printerSettings PdfPrinterSettings

A PdfPrinterSettings object, specifying the PDF printing options.

showPrintStatus Boolean

true, to show the printing status; otherwise, false.

maxPrintingDpi Int32

An integer value that is the maximum printing DPI.

Remarks

This example shows how to print a document with custom printer settings.

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxpdf="http://schemas.devexpress.com/winfx/2008/xaml/pdf" 
        x:Class="LoadPDFDocument.MainWindow"
        Title="MainWindow" Height="350" Width="525">

    <Grid>
        <dxpdf:PdfViewerControl x:Name="Viewer" DocumentLoaded="Viewer_DocumentLoaded" />
    </Grid>
</Window>
See Also