diff --git a/SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs b/SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs index 78ec4c2e..f268eecc 100644 --- a/SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs +++ b/SharedProject/Core/ReportGenerator/ReportGeneratorUtil.cs @@ -88,8 +88,8 @@ private IReportColours ReportColours public string ReportGeneratorExePath { get; private set; } - private string FontSize => $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px"; - private string FontName => environmentFontDetails.Family.Source; + private string FontSize => environmentFontDetails == null ? "12px" : $"{environmentFontDetails.Size * dpiScale.DpiScaleX}px"; + private string FontName => environmentFontDetails == null ? "Arial" : environmentFontDetails.Family.Source; [ImportingConstructor] public ReportGeneratorUtil(