Hi Aspose,
i have code which need to convert from Docx to Doc, while conversion , Aspose not able to maintain password protection, which was in my last thread, so for time begin , while aspose release patch i want to handle in differnt way.
Letter letter = new letter();
letter = Some thing by user object
// letter.CreatePackage(stream); // password protection want to use end of line
// Docx to Doc Conversion
Aspose.Words.SaveFormat outputFormat = Aspose.Words.SaveFormat.Doc;
Aspose.Words.Document doc = new Aspose.Words.Document(stream);
Aspose.Words.Document doc = new Aspose.Words.Document(letter);
[i want]
Aspose.Words.ProtectionType protectionType = doc.ProtectionType;
doc.Save(stream, outputFormat);
doc.Save(letter, outputFormat);
[i want]
letter.CreatePackage(stream); // here want to use
can i do.
below code sinppset how old and how new which i want to look like
old Code
letter.CreatePackage(stream);
// Docx to Doc Conversion
Aspose.Words.SaveFormat outputFormat = Aspose.Words.SaveFormat.Doc;
Aspose.Words.Document doc = new Aspose.Words.Document(stream);
Aspose.Words.ProtectionType protectionType = doc.ProtectionType;
doc.Save(stream, outputFormat);
NEW Code [ i want , wish can work]
Aspose.Words.SaveFormat outputFormat = Aspose.Words.SaveFormat.Doc;
Aspose.Words.Document doc = new Aspose.Words.Document(letter);
Aspose.Words.ProtectionType protectionType = doc.ProtectionType;
doc.Save(letter, outputFormat);
letter.CreatePackage(stream);
Thanks and Regards