Use values instead of merged. Paulo
----- Original Message ----- From: "Ivan Farkas" <[email protected]> To: <[email protected]> Sent: Saturday, August 01, 2009 7:21 PM Subject: [iText-questions] Add Tooltip does not work I am trying to add a tooltip to a field, but it does not work. What coud be wrong? Thx, Ivan public void AddTooltip(string name, string tooltip, AcroFields fields) { AcroFields.Item item = fields.GetFieldItem(name); PdfDictionary pDict = (PdfDictionary)item.merged[0]; PdfObject pTooltip = pDict.Get(PdfName.TU); PdfString pTooltipStr = new PdfString(tooltip); pDict.Put(PdfName.TU, pTooltipStr); } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ 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 Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
