Think Good
View list of my frequently visited bloglines
Tags - Categories : All | General | Software Development

The VB.NET code to call apache FOP from .net, a annexure to my previous blog

-------------
Try
  AppDomain.CurrentDomain.Load("xercesImpl-2.2.1")
  AppDomain.CurrentDomain.Load("batik")
  java.lang.System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl")
  Dim isrc As org.xml.sax.InputSource = New org.xml.sax.InputSource(filename & ".fo")
  Dim fs As java.io.FileOutputStream = New java.io.FileOutputStream(filename & ".pdf")
  Dim driver As Driver = New Driver(isrc, fs)
  'driver.setLogger(cl)
  driver.setRenderer(driver.RENDER_PDF)
  driver.run()
  fs.close()
  'process .pdf file now

Catch ex As Exception
  'process ex
   End Try
--------------


And how to do this with only having a xml and xslt file and produce the fo file?


Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 6 + 6 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack to http://radio.javaranch.com/balajidl/addTrackBack.action?entry=1137440142333