Hi,
we have troubles with the excel report creation. We defined a footer with a left, middle and right textbox which renders correctly in a PDF [excel-footer-Screenshot 2022-06-13 103646.png]. Additionally the height of the footer seems to be wrong because the margins won't be setup correctly [
but in Excel it renders the left and middle textbox in the left footer in Excel [ private static byte[] Render(ReportFormat format, ReportData values)
{
var serializerSettings = new JsonSerializerSettings
{
ContractResolver = new CamelCasePropertyNamesContractResolver()
};
var jsonValues = JsonConvert.SerializeObject(values, serializerSettings);
var reportPath = Configuration.AppSettings.Read("ReportPath");
var uriReportSource = new UriReportSource
{
Uri = reportPath,
};
uriReportSource.Parameters.Add("Parameter1", jsonValues);
var r = new ReportProcessor();
var formatString = format switch
{
ReportFormat.Excel => "XLSX",
ReportFormat.Pdf => "PDF"
};
var result = r.RenderReport(formatString, uriReportSource, new Hashtable());
return result.DocumentBytes;
}
Greetings
Jan