Welcome to the Enterprise Reporting feedback portal. We’re happy you’re here! If you have feedback on how to improve the Enterprise Reporting, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

We have used sample code from the Syncfusion site to generate our own RDL in c# for a ASP.NET Core Project, and part of the code is to create some text in a different font

TextRuns runs = new TextRuns();
TextRun run = new TextRun();
run.Style = new Syncfusion.RDL.DOM.Style();
run.Style.FontStyle = "Default";
run.Style.TextAlign = "Center";
run.Style.FontFamily = "Impact";
run.Style.FontSize = new Syncfusion.RDL.DOM.Size("20pt");
run.Value = "Test of font";
runs.Add(run);

Everything appears to work fine except for the <FontFamily> in the <Style> tag for the <TextRun>

When we run the code

FileStream wstream = new FileStream(ReportPath + args[0] + ".rdl", FileMode.Create, FileAccess.Write, FileShare.Read);
ReportSerializer ws = new ReportSerializer();
ws.SaveReportDefinition(wstream, reportDefinition);
wstream.Close();
wstream.Dispose();


The <FontFamily> never gets written to the RDL file


<TextRuns>
  <TextRun>
    <Value>Test of font</Value>
    <Style>
      <FontSize>20pt</FontSize>
      <TextAlign>Center</TextAlign>
    </Style>
  </TextRun>
</TextRuns>


We have tried the same code in ASP.NET not in .NET Core and it functions perfectly, it seems to only be in the .NET Core version