C# 클래스 Aspose.Diagram.Examples.CSharp.Working_with_Print.XpsPrintHelper

A utility class that converts a document to XPS using Aspose.Diagram and then sends to the XpsPrint API.
파일 보기 프로젝트 열기: aspose-diagram/Aspose.Diagram-for-.NET 1 사용 예제들

공개 메소드들

메소드 설명
Print ( Diagram diagram, string printerName, string jobName, bool isWait ) : void

Sends an Aspose.Diagram document to a printer using the XpsPrint API.

Print ( Stream stream, string printerName, string jobName, bool isWait ) : void

Sends a stream that contains a document in the XPS format to a printer using the XpsPrint API. Has no dependency on Aspose.Diagram, can be used in any project.

비공개 메소드들

메소드 설명
CheckJobStatus ( IXpsPrintJob job ) : void
CloseHandle ( IntPtr hObject ) : bool
CopyJob ( Stream stream, IXpsPrintJob job, IXpsPrintJobStream jobStream ) : void
CreateEvent ( IntPtr lpEventAttributes, bool bManualReset, bool bInitialState, string lpName ) : IntPtr
StartJob ( string printerName, string jobName, IntPtr completionEvent, IXpsPrintJob &job, IXpsPrintJobStream &jobStream ) : void
StartXpsPrintJob ( [ printerName, [ jobName, [ outputFileName, IntPtr progressEvent, IntPtr completionEvent, [ printablePagesOn, UInt32 printablePagesOnCount, IXpsPrintJob &xpsPrintJob, IXpsPrintJobStream &documentStream, IntPtr printTicketStream ) : int
WaitForJob ( IntPtr completionEvent ) : void
WaitForSingleObject ( IntPtr handle, Int32 milliseconds ) : WAIT_RESULT
XpsPrintHelper ( ) : Aspose.Diagram

No ctor.

메소드 상세

Print() 공개 정적인 메소드

Sends an Aspose.Diagram document to a printer using the XpsPrint API.
Thrown if any error occurs.
public static Print ( Diagram diagram, string printerName, string jobName, bool isWait ) : void
diagram Diagram
printerName string
jobName string Job name. Can be null.
isWait bool True to wait for the job to complete. False to return immediately after submitting the job.
리턴 void

Print() 공개 정적인 메소드

Sends a stream that contains a document in the XPS format to a printer using the XpsPrint API. Has no dependency on Aspose.Diagram, can be used in any project.
Thrown if any error occurs.
public static Print ( Stream stream, string printerName, string jobName, bool isWait ) : void
stream Stream
printerName string
jobName string Job name. Can be null.
isWait bool True to wait for the job to complete. False to return immediately after submitting the job.
리턴 void