Hi,
I should need help for create a pdf document that contain more docuement in
run time.
Something like this:
document.Open();
foreach (QPress.DA.DSFattureTestata.FattureTestataRow row in dtFatt.Rows)
{
_IdContratto = row.IdContratto;
_idFattura = row.IdFattura;
_IdAnagRecapito = row.IdAnagRecapito;
_IdAnagAzCommittente = row.IdAnagAziendaCommittente;
Stampa(document, writer);
}
document.Close();
/////
private void Stampa(Document document, PdfWriter writer)
{
PdfPTable table = new PdfPTable(nColonne);
PdfPTable t_totale = new PdfPTable(1);
try
{
// Some code for build table
}
catch (Exception de)
{
// Some code
}
}
this code has some problem when I use page events (OnStartPage and
OnEndPage) for insert Header and Footer because they result out of synch,
not align with content of page.
I've try to use Chapters; but Chapter go in conflict with page event.
My problem is: one document has one or more pages, I don't know first, and
every page have header and footer that contain summary of current document.
When I add an new page, this page contain older data in Header or Footer.
Sorry but for me is very hard to explain that in english....
Something advise?
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php