Does Bold Reports® Embedded Reporting Tools support .NET Core and Docker on Linux?
Yes. Bold Reports® Embedded Reporting Tools support .NET Core on Linux Docker. When you use the components in a Docker environment, ensure the following details.
Bold Reports® Embedded Reporting Tools use System.Drawing to measure text size for the CanGrow feature of the Textbox ReportItem. System.Drawing requires the native libgdiplus library, which the default microsoft/dotnet image does not contain. Add the native libgdiplus library with the following install command in the DockerFile.
How do I install the native dependencies for Docker on Linux?
To install the native dependencies for Bold Reports® Embedded Reporting Tools in Docker, add the following RUN command to your DockerFile.
RUN apt-get update \
&& apt-get install -y --allow-unauthenticated \
libc6-dev \
libgdiplus \
libx11-dev \
&& rm -rf /var/lib/apt/lists/*Download the sample Dockerfile for Linux.
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® Embedded Reporting Tools 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
}
}