Table of Contents

Method ThrowIfPrintingInProgress

Namespace
Alternet.Drawing.Printing
Assembly
Alternet.UI.Common.dll

ThrowIfPrintingInProgress()

Throws an exception if a printing operation is currently in progress.

public virtual void ThrowIfPrintingInProgress()

Remarks

Call this method before starting a new printing operation to ensure that no other printing process is currently running. This helps prevent conflicts or resource contention caused by overlapping print jobs.

Exceptions

InvalidOperationException

Thrown if a printing operation is active when this method is called.