Menu

#26 driver.run() error

open
nobody
None
5
2007-04-11
2007-04-11
tryan
No

This error:

"An exception of type 'java.util.MissingResourceException' occurred in ApacheFop.Net.DLL but was not handled in user code
Additional information: Resource Bundle not Found"

Is caused when the driver.run() line is executed in the following code:

XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load("sample.xsl");
xslt.Transform("sample.xml", "sample.fo");

//Generate PDF
FileInputStream streamFO = new FileInputStream("sample.fo");
InputSource src = new InputSource(streamFO);
FileOutputStream streamOut = new FileOutputStream("sample.pdf");
Driver driver = new Driver(src, streamOut);
driver.setRenderer(1);
driver.run();
streamOut.close();

Any help is appreciated
Thank You

Discussion


Log in to post a comment.