I am doing the reports using iTextsharp and the result has been acceptable, however when working with many records it has become slow. Currently I do this:
I get the bank data (storing in DataTable
);
In a foreach
concatenate everything in a string : (ex rough)
foreach (DataRow row in FaturamentoCorpo.Rows)
stringao += row["ncodigfilia"].ToString()
In the final game for iTextsharp this "string":
Paragraph paragrafo = new Paragraph("", new Font(Font.FontFamily.COURIER, FontSize));
paragrafo.Add(stringao);
Then this loop concatenating in string , when DataTable
has ai + - 10k records, resulting in a PDF of 70 to 80 pages, it is rather time-consuming.
So I wanted a better way to work this out?