I try to copy it content to another document:
- Code: Select all
Spire.Doc.Document doc = new Spire.Doc.Document("C:\\SpireTest\\st.doc");
Spire.Doc.Document doc_2 = new Spire.Doc.Document();
foreach (Spire.Doc.Section section in doc.Sections)
{
doc_2.Sections.Add(section.Clone());
}
doc_2.SaveToFile("C:\\SpireTest\\st2.doc", Spire.Doc.FileFormat.Doc);
and get some problems:
1. Spire.Doc component add very big free space before Equation object
2. if I try to open st2.doc in OpenOffice editor I get error "File format is not WinWord97"