Hi,
I use aspose.words to save the word document like as File attachment (before.doc),
but the contents of the word documnet file is gone like as File attachment (after.doc).
the code like as
Public License As New Aspose.Words.License()
Public srcDoc As New Aspose.Words.Document
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
License.SetLicense("Aspose.Words.lic")
srcDoc = New Aspose.Words.Document("C:\before.doc")
srcDoc.ViewOptions.ViewType = Settings.ViewType.PageLayout
srcDoc.Save("C:\after.doc")
MessageBox.Show("Finished!!!")
End Sub
How to save the same contents of the word documnet file .
Hello
Thanks for your inquiry.
I managed to reproduce the problem with symbols on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is fixed.
As a workaround you can save your document in DOCX format.
Document doc = new Document("X:\\before.doc");
doc.ViewOptions.ViewType = ViewType.PageLayout;
doc.Save("X:\\after.docx", SaveFormat.Docx);