Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.PrinterSetup Method

Invokes the Print Setup dialog.

Syntax

VB.NETobject.PrinterSetup(ByVal Handle As Integer)
VBobject.PrinterSetup(ByVal Handle As Long)
C#.NETvoid object.PrinterSetup(int Handle);
VC++HRESULT object->PrinterSetup(long Handle);
CHRESULT object->raw_PrinterSetup(long Handle);

object

A SftPrintPreview object.

Handle

The window handle of the application's main window, which serves as the parent window for the Print Setup dialog. If 0 is specified, the application's main window is determined automatically.

Comments

The PrinterSetup method invokes the Print Setup dialog.

If the user modifies printer settings, the PrinterChanged even occurs.

Examples

VB.NET

    MenuViewRichEdit_Click(Me, New System.EventArgs())
End Sub

Private Sub MenuPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuPrint.Click
    AxSftPrintPreview1.PrintContents(True, 0, False)
End Sub

Private Sub MenuPrintSetup_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuPrintSetup.Click
    AxSftPrintPreview1.PrinterSetup(0)
End Sub

VB6

    RichTextBox1.SetFocus
End Sub

Private Sub PrintDirect_Click()
    SftPrintPreview1.PrintContents True, 0, False
End Sub

Private Sub PrintSetup_Click()
    SftPrintPreview1.PrinterSetup 0
End Sub

C#

private void menuPrint_Click(object sender, System.EventArgs e)
{
    axSftPrintPreview1.PrintContents(true, 0, false);
}

private void menuprintSetup_Click(object sender, System.EventArgs e)
{
    axSftPrintPreview1.PrinterSetup(0);
}

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.