Dear All,
I’ve been
trying to insert content extracted from a spreadsheet to a PDF document using Syncfusion PdfDocument for generating the PDF and Syncfusion XlsIO for extracting data from the spreadsheet (I am
using NET 4.8 / C# and MVC5). Following the instructions regarding Working with datatables as described in
the Syncfusion PDF documentation (https://help.syncfusion.com/file-formats/pdf/working-with-tables),
I opted for passing a data table as data source for pdfLightTable. However, despite the values being displayed, the column headers are
not added to the PDF document.
Please note
that the column headers are present in the data table.
Is it
possible to add column headers to the PDF file when passing a data table? If
so, could you please provide some assistance how to achieve this.
I’ve
attached some code demonstrating the extraction of data from the spreadsheet
and how I’ve been creating the PDF document at this stage.
Thanks a
mil in advance. Looking forward to your reply/ies.
Kind
regards
Chris
Attachment:
SampleCode_372da36a.zip