On 24.11.2009 03:28, Glen Mazza wrote:
Fop fop2 = fopFactory.newFop(MimeConstants.MIME_PDF, outStream2);
Result res2 = new SAXResult(fop2.getDefaultHandler());
t.transform(rptSource2, res2);
Hmm, Transformers can't be reused, perhaps you should get a new
instance here?
Another possible problem:
atts.addAttribute("", "", "reportId", "", "123");
The method declaration is:
addAttribute(String uri, String localName, String qName, String type,
String value)
You are setting the local name to "", which may cause hiccups.
Try any of the following:
atts.addAttribute("", "reportId", "reportId", "", "123");
atts.addAttribute(null, "reportId", "reportId", "", "123");
(Actually, I have no idea which one should work, may even be
implementation dependent).
HTH
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]