Table of Contents

Interface IPrintService

Namespace
Tudormobile.Wpf.Services
Assembly
Tudormobile.WpfApp.dll

Print and Print Preview service.

public interface IPrintService : IWpfAppService
Inherited Members

Methods

PrintDocument(PrintDialog, DocumentPaginator, string)

Prints a DocumentPaginator object to the PrintQueue that is currently selected.

void PrintDocument(PrintDialog printDialog, DocumentPaginator documentPaginator, string description)

Parameters

printDialog PrintDialog

The printing dialog to utilize.

documentPaginator DocumentPaginator

The DocumentPaginator object to print.

description string

A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.

PrintVisual(PrintDialog, Visual, string)

Prints a visual (non-text) object, which is derived from the Visual class, to the PrintQueue that is currently selected.

void PrintVisual(PrintDialog printDialog, Visual visual, string description)

Parameters

printDialog PrintDialog

The Print printing dialog to utilize.

visual Visual

The Visual to print.

description string

A description of the job that is to be printed. This text appears in the user interface (UI) of the printer.

ShowDialog(PrintDialog)

Invokes the PrintDialog as a modal dialog box.

bool? ShowDialog(PrintDialog printDialog)

Parameters

printDialog PrintDialog

The printing dialog to invoke.

Returns

bool?

true if a user clicks Print; false if a user clicks Cancel; or null if a user closes the dialog box without clicking Print or Cancel.