Hi,
I'm getting a MalformedURIException in v1.1.0 with .fo
files that I was successfully able to convert in v1.0.0.
I get this error in URI.java on line 688-9 on a '<' character
Anyone else getting this error?
Here's my VB code for v.1.1.0:
Dim strXMLFilePath As String
= "C:\inetpub\wwwroot\omnieview\pages\reports\helloworl
d.xml"
Dim strFoFile As String
= "C:\inetpub\wwwroot\omnieview\pages\reports\helloworl
d.fo"
Dim fullFoDoc As String = XmlContentToFoContent
(strXMLFilePath, strXSLFOFile)
Dim source As New InputSource(fullFoDoc)
Dim output As New ByteArrayOutputStream
Try
Dim driver As New Driver(source, output)
driver.setRenderer(driver.RENDER_PDF)
driver.run()
output.close()
Dim sz As Integer = output.buf.Length
Dim pdf(sz) As Byte
Dim i As Integer
For i = 0 To sz - 1
pdf(i) = System.Convert.ToByte(output.buf(i))
Next i
Response.ClearHeaders()
Response.Clear()
Response.AddHeader("Content-
Disposition", "attachment;
filename=TechHeadBrothers.pdf")
Response.ContentType = "application/octet-
stream"
Response.Flush()
Response.BinaryWrite(pdf)
Response.End()
Catch fope As FOPException
strErrorMessage = fope.Message
End Try
Thanks for any help,
Thuy
Simple HelloWorld.fo
Logged In: YES
user_id=1271418
Oops, copied wrong... ignore the following line:
Dim strFoFile As String
= "C:\inetpub\wwwroot\omnieview\pages\reports\helloworl
d.fo"
suppose to be...
Dim strXSLFOFile As String
= "C:\inetpub\wwwroot\omnieview\pages\reports\helloworld.xsl
"
I get the same result when I run it from the attached FO file.