Can Bold Reports® be used with ASP.NET Core on Linux and macOS?

Yes. You can use the Bold Reports® Embedded Reporting tools with ASP.NET Core on Linux and macOS. Ensure the following when you use the components.

Bold Reports® uses System.Drawing to measure text size for the CanGrow feature of the Textbox ReportItem, which requires the native libgdiplus library. Install libgdiplus, because non-Windows operating systems do not include it.

How do I install libgdiplus on Linux?

To install libgdiplus on Linux for Bold Reports®, run the following commands at a terminal (command) prompt:

sudo apt install libc6-dev
sudo apt install libgdiplus

How do I fix images not rendering in .NET 6.0 or above on Linux?

To fix images that do not render with Bold Reports® in .NET 6.0 and above on Linux, enable System.Drawing.EnableUnixSupport in a runtimeconfig.template.json file. Images do not render because .NET 6.0 and above do not support the System.Drawing.Common package on Linux.

Create a JSON file named runtimeconfig.template.json and add the following code:

{
  "configProperties": {
    "System.Drawing.EnableUnixSupport": true
  }
}

How do I install libgdiplus on macOS?

To install libgdiplus on macOS for Bold Reports®, use the Homebrew (“brew”) package manager. After you install brew, run the following commands at a terminal (command) prompt:

brew update
brew install mono-libgdiplus

See Also

.NET Core dependencies requirements on Linux for System.Drawing.Common assembly

.NET Core dependencies requirements on macOS for System.Drawing.Common assembly

System.Drawing for .NET Core from NuGet packages