Class PrintResult
- Namespace
- combit.Reporting.Printing.Pdf
- Assembly
- combit.ListLabel31.CrossPlatform.Printing.Pdf.dll
Represents the outcome of a PDF print operation, including whether the operation succeeded, the method used, and optional error or diagnostic information.
public sealed class PrintResult
- Inheritance
-
PrintResult
- Inherited Members
Properties
DiagnosticLog
Gets optional diagnostic log text that records the decisions and steps taken during the print pipeline, useful for troubleshooting.
public string? DiagnosticLog { get; }
Property Value
ErrorMessage
Gets an error message describing why the print operation failed, or null when the operation succeeded.
public string? ErrorMessage { get; }
Property Value
MethodUsed
Gets the printing method that was used to deliver the document to the printer.
public PrintMethod MethodUsed { get; }
Property Value
Success
Gets a value indicating whether the print operation completed successfully.
public bool Success { get; }
Property Value
Methods
Failed(string, string?)
Creates a PrintResult that indicates a failed print operation.
public static PrintResult Failed(string errorMessage, string? diagnosticLog = null)
Parameters
errorMessagestringA human-readable description of the failure.
diagnosticLogstringOptional diagnostic log text.
Returns
- PrintResult
A failed PrintResult instance.
PartialSuccess(PrintMethod, string?)
Creates a PrintResult that indicates a partially successful print operation, for example when passthrough failed but rasterized printing succeeded.
public static PrintResult PartialSuccess(PrintMethod methodUsed, string? diagnosticLog = null)
Parameters
methodUsedPrintMethodThe fallback method that ultimately completed the job.
diagnosticLogstringOptional diagnostic log text describing the fallback path taken.
Returns
- PrintResult
A successful PrintResult with diagnostic information about the fallback.
Succeeded(PrintMethod, string?)
Creates a PrintResult that indicates a fully successful print operation.
public static PrintResult Succeeded(PrintMethod methodUsed, string? diagnosticLog = null)
Parameters
methodUsedPrintMethodThe printing method that completed the job.
diagnosticLogstringOptional diagnostic log text.
Returns
- PrintResult
A successful PrintResult instance.