Query |
Response |
Only one line series is displayed rather than three as in Excel |
We are able to reproduce the reported issue and validating it currently. We will share the validation details in two business days on September 15th, 2020.
|
The label for these line graphs says "#REF" rather than the graph title |
We are unable to reproduce the reported issue with the given file at our end. The sample we tried at our end along with the output can be downloaded from the following link.
Kindly modify the sample to reproduce the issue and share us to investigate further.
|
ExcelEngine engine = new ExcelEngine();
IWorkbook workbook = engine.Excel.Workbooks.Open(DataPathBase + "COVID Servicing Impact v1 2020-09-07.xlsx");
IWorksheet worksheet = workbook.Worksheets[0];
engine.Excel.ChartToImageConverter = new ChartToImageConverter();
engine.Excel.ChartToImageConverter.ScalingMode = ScalingMode.Best;
foreach (IChart chart in workbook.ActiveSheet.Charts)
{
chart.PrimaryCategoryAxis.MajorUnitScale = ExcelChartBaseUnit.Month;
}
ExcelToPdfConverter converter = new ExcelToPdfConverter(workbook.ActiveSheet);
PdfDocument pdf = converter.Convert();
pdf.Save("Output.pdf"); |