I am trying to use aspose.word and read an rtf file and then write it out to the screen in html format. The issue I am running into is that the doc.Save function gives me a 500 Error when I change it to a stream. My code is below:
---------------------------------------------------
Dim baseFile
baseFile = "C:\\"
Dim helper
set helper = Server.CreateObject("Aspose.Words.ComHelper")
Dim doc
set doc = helper.open(basefile + ".rtf")
Dim stream
set stream = CreateObject("System.IO.MemoryStream")
doc.Save(stream, ".html")
Dim bytes
bytes = stream.ToArray()
Response.write("")
Response.BinaryWrite(bytes)
Response.write("")