Menu

#10 MalformedURIException in v1.1.0 on .fo that worked in v.1.0.

open
nobody
None
5
2005-05-03
2005-05-03
Thuy Tran
No

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

Discussion

  • Thuy Tran

    Thuy Tran - 2005-05-03

    Simple HelloWorld.fo

     
  • Thuy Tran

    Thuy Tran - 2005-05-03

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB