MailPrinterPrint Method (MapiMessage, Stream, PrintFormat)

Prints the specified MSG object using the desired format.

Namespace:  Aspose.Email.Printing
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public void Print(
	MapiMessage message,
	Stream outputStream,
	PrintFormat printingFormat
)

Parameters

message
Type: Aspose.Email.MapiMapiMessage
The MSG file to print.
outputStream
Type: System.IOStream
The output stream.
printingFormat
Type: Aspose.Email.PrintingPrintFormat
The printing format.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can't be processed.
See Also