2010年8月18日 星期三

Reference current document in Java Agent

// get the current document
Document currentDoc = agentContext.getDocumentContext();

// get a value of a field named 'testField' from the current document
String str = currentDoc.getItemValueString("testField");

// print the value of the testField of the current document into java console
System.out.println(str);


轉自: http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/79bc69e4d4f91db085257372004fb206?OpenDocument

2010年8月11日 星期三

Lotus Notes R6.56 與 JasperReport+iReport 透過Java Agent整合產生PDF 製作流程說明

參考文章

pureXMLでJasperReportsを楽しもう

pureXMLとJasperReportsのXML連携
小川 直人 (naogawa@fsi.co.jp), 主任, 富士ソフト株式会社
概要: JasperReportsは、SQLを発行し、その結果をレポーティングすることができます。しかし、XQueryはサポートしていません。簡単な拡張で、JasperReportsでXQueryが使えるようになります。


http://www.ibm.com/developerworks/jp/data/library/dataserver/j_d-jasperreports/index.html?ca=drs-

2010年7月21日 星期三

iText in Lotus Notes 6.5.X JDK 1.3.6

A Suggest of iText in Lotus Notes 6.5.X
By philipz on November 11, 2007 11:17 PM
Bruno Lowagie, iText Author, give me a tip about "how to use iText in Lotus Notes" in his blog.

There's even an example on how to use iText in Lotus Notes. I would add an extra tip: get the iText code from the 1.3 branch in SVN and compile it with JDK 1.3. That's much better than using iText 1.3.6 and complain on the mailing list about bugs that have been fixed ages ago ;-)