update 20250821
This commit is contained in:
@@ -483,5 +483,17 @@ namespace ZZ_Signature_C
|
||||
document.Save(@"E:\Software-Projekte\OnDoc\Excel_Dateien\20250225074324_OFFEDK0082025000066663.docx.docx");
|
||||
document.Close(); ;
|
||||
}
|
||||
|
||||
private void button6_Click(object sender, EventArgs e)
|
||||
{
|
||||
Lic();
|
||||
|
||||
FileStream inputFileStream = new FileStream(Path.GetFullPath(@"x:\ZDEDOFFEDK0082025000157263.docx"), FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
WordDocument document = new WordDocument(inputFileStream, FormatType.Automatic);
|
||||
document.Protect(ProtectionType.NoProtection, "Australia");
|
||||
document.Protect(ProtectionType.AllowOnlyFormFields, "Australia");
|
||||
document.Save(@"x:\ZDEDOFFEDK0082025000157263_1.docx");
|
||||
document.Close(); ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user