Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

I am using iText sharp pdf generation method and trying to apply page numbers to the pdf document that i generate. While doing so i am calling the pageendevent class once before adding the table to the document, here i notice that the page number is being applied only to the first page and the remaining pages are not getting the page numbers. What am i doing wrong? How to add page numbers to all the pages of the document? How to call the pageendevent funtion each time when the page ends in my document?
Please help.
Thanks in Advance,

Thanks and Regards
Posted
Comments
Sergey Alexandrovich Kryukov 6-Feb-12 10:42am    
Hard to say what are you doing wrong if we don't know what exactly are you doing.
--SA

1 solution

for(int p=1; p<writter.currentpagenumber;>{

textbox.Text=writer.CurrentPageNumber.ToString();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900