第4个问题,你确认报表程序在以“mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim”为镜像的容器中运行
主机操作系统为CentOS
上次我发的Demo里Dockerfile文件
- FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
- WORKDIR /app
- EXPOSE 80
- EXPOSE 443
- WORKDIR /src
- RUN rm /etc/apt/sources.list
- ADD sources.list /etc/apt/
- RUN apt-get update && apt-get install -y \
- apt-transport-https ca-certificates \
- ttf-mscorefonts-installer \
- fontconfig
- FROM base AS final
- WORKDIR /app
- COPY . .
- ENTRYPOINT ["dotnet", "ARJSViewerTest.dll"]
复制代码
容器跑起来后,我也按网上的方法,把报表中的字体复制到了容器中,可以查看到字体的列表。
第5个问题:
预览正常如下:
但导出时,提示:
详细错误:
{"Error":"Input string was not in a correct format.","message":"Input string was not in a correct format.","details":"System.FormatException: Input string was not in a correct format.\n at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)\n at GrapeCity.SharpCells.Implementation.Cell.set_Value(Object value)\n at GrapeCity.SharpCells.MSApi.Range.set_Value(Object value)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I..( context, renderingArea, ILayoutArea layoutArea)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I..Render( context, ILayoutArea layoutArea)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I...Accept( visitor)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I...Accept( visitor)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I...Accept( visitor)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I...Accept( visitor)\n at GrapeCity.ActiveReports.Core.Export.Excel.Page.I..Traverse( traverser, ILayoutPage page)\n at GrapeCity.ActiveReports.Export.Excel.Page.ExcelExport.RenderPages(ILayoutTree layoutTree, context)\n at GrapeCity.ActiveReports.Export.Excel.Page.ExcelExport.Export(ILayoutTree layoutTree, Stream stream, ExcelExportSettings settings)\n at GrapeCity.ActiveReports.Export.Excel.Page.ExcelExport.Export(IReport report, Stream stream, ExcelExportSettings settings)\n at .Export(Object document, Func`2 getOutStreamFn, exportSettings)\n at .(`1 , )"}
|