BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

DocumentPassword Property

Sets a password for printing password protected Word document.

Type:

String (write-only)

Remarks

N/A.

Example Usage in VBScript

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.WordPrintJobEx
oPrintJob.DocumentPassword = "my_password"
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"
  

Example Usage in VB.NET

Dim oPrinter As Printer = CreateObject("easyPDF.Printer.8")
Dim oPrintJob As WordPrintJobEx = oPrinter.WordPrintJobEx
oPrintJob.DocumentPassword = "my_password"
oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"

Example Usage in C#

Printer oPrinter = new Printer();
WordPrintJobEx oPrintJob = oPrinter.WordPrintJobEx;
oPrintJob.DocumentPassword = "my_password";
oPrintJob.PrintOut(@"C:\test\input.doc", @"C:\test\output.pdf");