MailPrinter.Print

Prints the specified MSG object using the desired format.

public void Print(MapiMessage message, string outputFile, PrintFormat printingFormat)
ParameterTypeDescription
messageMapiMessageThe MSG file to print.
outputFileStringThe output file.
printingFormatPrintFormatThe printing format.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can’t be processed.

See Also


Prints the specified MSG object using the desired format.

public void Print(MapiMessage message, Stream outputStream, PrintFormat printingFormat)
ParameterTypeDescription
messageMapiMessageThe MSG file to print.
outputStreamStreamThe output stream.
printingFormatPrintFormatThe printing format.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can’t be processed.

See Also


Prints the specified message object using the desired format.

public void Print(MailMessage message, string outputFile, PrintFormat printingFormat)
ParameterTypeDescription
messageMailMessageThe MSG file to print.
outputFileStringThe output file.
printingFormatPrintFormatThe printing format.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can’t be processed.

See Also


Print(MailMessage, Stream, PrintFormat)

Prints the specified message object using the desired format.

public void Print(MailMessage message, Stream outputStream, PrintFormat printingFormat)
ParameterTypeDescription
messageMailMessageThe MSG file to print.
outputStreamStreamThe output stream.
printingFormatPrintFormatThe printing format.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionIf printingFormat is not supported.
ArgumentNullExceptionIf one of the arguments is null.
InvalidOperationExceptionIf object can’t be processed.

See Also