Convert Word 2007 to Word 2003 programmatically in ASP.NET

Does anyone know a component or library (preferably open source) that will allow me to convert Word 2007 documents to Word 2003 using ASP.NET?

+3
source share
3 answers

As in the following, I was given the opportunity to use Aspose.Words for .NET. I appreciate your comments and suggestions on this. Thank!

+1
source

Could you install (or install your users) Microsoft Office Compatibility Pack ? This allows Word 2003 to open documents saved by Word 2007 in binary (.doc) and XML (.docx) formats.

2007 , , , Word 2003, FileSystemWatcher , . 2003 .

+1

Visual Studio Office (VSTO), Office 2007 .

Microsoft.Office.Tools.Word.Document.SaveAs

public virtual void SaveAs (
    [OptionalAttribute] ref Object FileName,
    [OptionalAttribute] ref Object FileFormat,
    [OptionalAttribute] ref Object LockComments,
    [OptionalAttribute] ref Object Password,
    [OptionalAttribute] ref Object AddToRecentFiles,
    [OptionalAttribute] ref Object WritePassword,
    [OptionalAttribute] ref Object ReadOnlyRecommended,
    [OptionalAttribute] ref Object EmbedTrueTypeFonts,
    [OptionalAttribute] ref Object SaveNativePictureFormat,
    [OptionalAttribute] ref Object SaveFormsData,
    [OptionalAttribute] ref Object SaveAsAOCELetter,
    [OptionalAttribute] ref Object Encoding,
    [OptionalAttribute] ref Object InsertLineBreaks,
    [OptionalAttribute] ref Object AllowSubstitutions,
    [OptionalAttribute] ref Object LineEnding,
    [OptionalAttribute] ref Object AddBiDiMarks
)

FileFormat WdSaveFormat enumeration.

, exatly 2003, RTF (WdSaveFormat.wdFormatRTF)

+1

Source: https://habr.com/ru/post/1741277/


All Articles