Dear Aspose
I’ve created a Word document using the builder method and everything works properly. Now I’m going to attach another document to it. actually, I need to load it from the disk. here is what I have done.
var newFile = File.ReadAllBytes("D:/file.docx");
using (MemoryStream stream = new MemoryStream(newFile))
{
var docM = new Document(stream);
builder.InsertDocument(docM, ImportFormatMode.UseDestinationStyles);
}
The loaded file from the disk contains a different style from the file created with Aspose and I need the newFile
to get the Aspose word document’s style for example, font family, font size, etc.
I’ve noticed that I get exactly the same result with different options from ImportFormatMode
enum. I mean KeepSourceFormatting
, KeepDifferentStyles
, and UseDestinationStyles
have no impact on the style of newFile
that is added to the Aspose document.
How could I fix that?