Table of Contents

Method PrintToPrinter

Namespace
FS.Hosting.Core.Reporting
Assembly
FS.Hosting.Core.dll

PrintToPrinter(ReportDocument, IPrintServerApi, int, bool, int, int, int, guid, guid)

Druckt das aktuelle ReportDocument über einen angegebenen PrintServer und Drucker. Es wird eine neue Druck-Transaktion erstellt, der Druckauftrag hinzugefügt und die Transaktion direkt abgeschlossen.

public static void PrintToPrinter(this ReportDocument reportDocument, IPrintServerApi printServerApi, int copies, bool isCollated, int startPage, int endPage, int orderID, guid printServerId, guid printerId)

Parameters

reportDocument ReportDocument
printServerApi IPrintServerApi

Die API zur Steuerung des PrintServers.

copies int

Anzahl der Kopien.

isCollated bool

Gibt an, ob die Seiten sortiert gedruckt werden sollen.

startPage int

Erste zu druckende Seite (0 = alle Seiten).

endPage int

Letzte zu druckende Seite (0 = alle Seiten).

orderID int

Laufende Nummer des Jobs in der Transaktion.

printServerId guid

ID des PrintServers.

printerId guid

ID des Druckers.

PrintToPrinter(ReportDocument, IPrintServerApi, int, bool, int, int, guid, guid)

Druckt das aktuelle ReportDocument über einen angegebenen PrintServer und Drucker. Die Anordnung (orderID) des Reports beim Druck wird automatisch auf 1 gesetzt.

public static void PrintToPrinter(this ReportDocument reportDocument, IPrintServerApi printServerApi, int copies, bool isCollated, int startPage, int endPage, guid printServerId, guid printerId)

Parameters

reportDocument ReportDocument
printServerApi IPrintServerApi

Die API zur Steuerung des PrintServers.

copies int

Anzahl der Kopien.

isCollated bool

Gibt an, ob die Seiten sortiert gedruckt werden sollen.

startPage int

Erste zu druckende Seite (0 = alle Seiten).

endPage int

Letzte zu druckende Seite (0 = alle Seiten).

printServerId guid

ID des PrintServers.

printerId guid

ID des Druckers.