Yes, Bold Reports® Embedded Reporting Tools support .NET Core on Linux Docker. You have to ensure the following details while using our component with Docker environment.
We are using the System.Drawing
to measure text size for CanGrow
feature supports Textbox ReportItem and it requires native libgdiplus
library, which does not contain in default microsoft/dotnet
image. So, you must add native libgdiplus
library with install command as follows in DockerFile
.
## install System.Drawing native dependencies
RUN apt-get update \
&& apt-get install -y --allow-unauthenticated \
libc6-dev \
libgdiplus \
libx11-dev \
&& rm -rf /var/lib/apt/lists/*
The sample docker file can be downloaded from here.
You need to set the System.Drawing.EnableUnixSupport
as true
in the ConfigProperties
section of the runtimeconfig.json
file, as shown in the following code sample.
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
],
"configProperties": {
......
......
"System.Drawing.EnableUnixSupport": true
}
}
}