嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 1 元微信扫码支付:1 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
C# 实现 Word2007格式转Word2003格式
static void Docx2Doc(Microsoft.Office.Interop.Word.Application wordApp, object sourceFileName, object targetFileName)
{
object missingValue = System.Reflection.Missing.Value;
Document doc = wordApp.Documents.Open(
ref sourceFileName,
ref missingValue, ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue);
object FileFormat = WdSaveFormat.wdFormatDocument;
object LockComments = false;
object Password = missingValue;
object AddToRecentFiles = false;
object WritePassword = missingValue;
object ReadOnlyRecommended = false;
object EmbedTrueTypeFonts = true;
object SaveNativePictureFormat = missingValue;
object SaveFormsData = missingValue;
object SaveAsAOCELetter = missingValue;
object Encoding = missingValue;
object InsertLineBreaks = missingValue;
object AllowSubstitutions = missingValue;
object LineEnding = missingValue;
object AddBiDiMarks = missingValue;
object CompatibilityMode = missingValue;
}
.
├── C# 实现 Word2007格式转Word2003格式好例子网_Docx2Doc.zip
├── Docx2Doc.sln
└── WinformDocx2Doc
├── App.config
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── WinformDocx2Doc.csproj
└── bin
└── Release
└── WinformDocx2Doc.exe
4 directories, 14 files