The PrinterSetup method opens the printer setup dialog-box. When the printer setup dialog-box is opened and the user changes settings then hits OK, these settings are saved in the internal document class.
This variable is the same one that is changed when we set the document attribute "PrinterDevMode".
Sub PrinterSetup()
void PrinterSetup()
HRESULT PrinterSetup()
Sub Sample()
' Constants for Activation codes
Const strLicenseTo As String = "Amyuni PDF Creator Evaluation"
Const strActivationCode As String = "07EFCDAB010001004282943F2AF19A88F332D9E781E40460727DF8A42847A1BDE06DB61C71E94E2D90424BF8762385335F9D6884E9FC"
' Initializing PDFCreativeX Object
Dim pdf As ACPDFCREACTIVEX.PDFCreactiveX = New ACPDFCREACTIVEX.PDFCreactiveX()
' Set license key
pdf.SetLicenseKey(strLicenseTo, strActivationCode)
' Create de Document object
Dim doc As ACPDFCREACTIVEX.IacObject = pdf.Document
' This method causes the printer setup page to show.
' When OK Is pressed the PrinterDevMode property Is set
' in the document.
pdf.PrinterSetup()
' Now that the property Is set, we can call
' get_ObjectAttribute to retrieve
' its value. The value Is a byte array.
Dim settings1 As Byte() = doc("PrinterDevMode")
' Here, we directly set the same value we obtained.
' We could however, have saved it aside And used the
' command below to restore the printer settings to
' settings1 after the user had brought up And changed
' the printer settings a few times.
doc("PrinterDevMode") = settings1
' destroy objects
pdf = Nothing
doc = Nothing
End Sub
static void Sample()
{
// Constants for Activation codes
const string strLicenseTo = "Amyuni PDF Creator Evaluation";
const string strActivationCode = "07EFCDAB010001004282943F2AF19A88F332D9E781E40460727DF8A42847A1BDE06DB61C71E94E2D90424BF8762385335F9D6884E9FC";
// Initializing PDFCreativeX Object
ACPDFCREACTIVEX.PDFCreactiveX pdf = new ACPDFCREACTIVEX.PDFCreactiveX();
// Set license key
pdf.SetLicenseKey(strLicenseTo, strActivationCode);
// Create de Document object
ACPDFCREACTIVEX.IacObject doc = pdf.Document;
// This method causes the printer setup page to show.
// When OK Is pressed the PrinterDevMode property Is set
// in the document.
pdf.PrinterSetup();
// Now that the property Is set, we can call
// get_ObjectAttribute to retrieve
// its value. The value Is a byte array.
byte[] settings1 = doc("PrinterDevMode");
// Here, we directly set the same value we obtained.
// We could however, have saved it aside And used the
// command below to restore the printer settings to
// settings1 after the user had brought up And changed
// the printer settings a few times.
doc["PrinterDevMode"] = settings1;
// destroy objects
pdf = null;
doc = null;
}
' Constants for Activation codes
Const strLicenseTo = "Amyuni PDF Creator Evaluation"
Const strActivationCode = "07EFCDAB010001004282943F2AF19A88F332D9E781E40460727DF8A42847A1BDE06DB61C71E94E2D90424BF8762385335F9D6884E9FC"
' Initializing PDFCreativeX Object
Dim pdf
Set pdf = CreateObject("PDFCreactiveX.PDFCreactiveX.6.5")
' Set license key
pdf.SetLicenseKey strLicenseTo, strActivationCode
' Using Document Object
Dim doc
Set doc = pdf.Document
' This method causes the printer setup page to show.
' When OK Is pressed the PrinterDevMode property Is set
' in the document.
pdf.PrinterSetup()
' Now that the property Is set, we can call
' get_ObjectAttribute to retrieve
' its value. The value Is a byte array.
Dim settings1
Set settings1 = doc("PrinterDevMode")
' Here, we directly set the same value we obtained.
' We could however, have saved it aside And used the
' command below to restore the printer settings to
' settings1 after the user had brought up And changed
' the printer settings a few times.
doc("PrinterDevMode") = settings1
' destroy objects
Set pdf = Nothing
Set doc = Nothing