Hi,

 I have one small doubt regarding this issue again. When i used to generate
this report, few reports used to get generated, but few failed. Is there
any reason why a report with 4 or more pages report failed while a smaller
report generated?

And why doesnt document.add(image) on onEndPage method throw an exception ?

This was already coded by another developer. I am new to itext. I had to
fix this issue. To my surprise i never got any exception and had to debug
it manually.

Thanks,
Harsha


On Wed, Jan 9, 2013 at 3:25 PM, Harsha Kaundinya <hsk.1...@gmail.com> wrote:

> Thank you so much... The solution is working...
>
> Thanks,
> Harsha
>
>
> On Mon, Jan 7, 2013 at 10:48 PM, 1T3XT BVBA <i...@1t3xt.info> wrote:
>
>> On 7/01/2013 17:44, Harsha Kaundinya wrote:
>> > Thank you... But then, how do we add images to the header each time?
>>
>> Create an Image instance OUTSIDE the onEndPage() method.
>> Define its absolute position.
>> Add it like this:
>>
>> PdfContentByte cb = writer.getDirectContent();
>> cb.addImage(image);
>>
>> You shouldn't write iText code without reading the documentation.
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. SALE $99.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122412
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> iText(R) is a registered trademark of 1T3XT BVBA.
>> Many questions posted to this list can (and will) be answered with a
>> reference to the iText book: http://www.itextpdf.com/book/
>> Please check the keywords list before you ask for examples:
>> http://itextpdf.com/themes/keywords.php
>>
>
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to