Skip to content
English
  • There are no suggestions because the search field is empty.

Behavior of ShowPrintDialog in IronPrint (Post-2024.9)

The ShowPrintDialog and ShowPrintDialogAsync methods in IronPrint no longer throw an exception when run on unsupported target frameworks.

 

Previously, if the method was used without specifying a compatible TargetFramework, the following exception was thrown:

System.AggregateException: 'One or more errors occurred.
(Please try Print/PrintAsync since ShowPrintDialog/ShowPrintDialogAsync in NET Core or NET Standard,
it required UI component so please set more specific OS TargetFrameworks
e.g. net462; net472; net7.0-windows; net7.0-macos; net7.0-maccatalyst; net7.0-android)'

 

As of version 2024.9, this behavior was intentionally changed: 

  • Instead of throwing an exception, the method now logs a warning and falls back to a call to PrintAsync().

  • The change was made to reduce runtime disruptions.