We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

File locks up saving to PDF format

I’m using the following code to load a text file

Dim mDocument As New Aspose.Words.Document
Dim builder As Aspose.Words.DocumentBuilder = New Aspose.Words.DocumentBuilder(mDocument)
Dim oRead As System.IO.StreamReader
oRead = File.OpenText(e.Item.Path)
Dim LineIn As String = ""
While oRead.Peek <> -1
LineIn = oRead.ReadLine()
builder.Writeln(LineIn)
End While
Dim ms As New MemoryStream
mDocument.Save(ms, Aspose.Words.SaveFormat.Pdf)
PdfDocument.Load(ms)
oRead.Close()

And it locks up at mDocument.Save. If I change the saveFormat to doc or html it is fine. Is there something that I’m doing wrong?
Is this the preferred method to load text files?
Thanks,
Bill

Hi
Thanks for your request. I managed to reproduce the problem and created new issue #7490 in our defect database. I will notify you as soon as it is fixed.
Best regards.

The issues you have found earlier (filed as 7490) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by alexey.noskov.