Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "PRINTDLG" in [All]

Structures

.

public class PRINTDLG

.

Structure PRINTDLG

.
Documentation
[PRINTDLG] on MSDN

comdlg32

.
Summary
.

static extern bool PrintDlg([In,Out] PRINTDLG lppd);

.

Private Shared Function PrintDlg(<[In], Out> ByVal lppd As PRINTDLG) As Boolean

.

PRINTDLG

.

// Call the PrintDlg api from c#

.

public static void InvokePrintDlg (PrinterSettings printerSettings,

.

    // PRINTDLG that will be passed to PrintDlg API function.

.

    PRINTDLG printdlg = new PRINTDLG();

.

    printdlg.lStructSize = Marshal.SizeOf(printdlg);             

.

    printdlg.hwndOwner = hwndDialogOwner;            

.

    // printer settings object to the PRINTDLG so that the current

.

    printdlg.hDevMode = printerSettings.GetHdevmode();

.

    printdlg.hDevNames = printerSettings.GetHdevnames();

.

    //printdlg.Flags = PD_PRINTSETUP;

.

    bool l = PrintDlg(printdlg);

.

    printerSettings.SetHdevmode(printdlg.hDevMode);

.

    printerSettings.SetHdevnames(printdlg.hDevNames);         

.
Documentation
[PrintDlg] on MSDN
.

private static extern bool PrintDlgEx([In(), Out()] PRINTDLGEX lppd);

.

Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean

.

    Private Shared Function PrintDlgEx(<[In](), Out()> ByVal lppd As PRINTDLGEX) As Boolean

.

        Return InvokePrintDlgEx()

.

    Public Function InvokePrintDlgEx() As DialogResult

.

        Dim _pdex As PRINTDLGEX = New PRINTDLGEX()

.

        Return IIf(PrintDlgEx(_pdex), DialogResult.OK, DialogResult.Cancel)

.

Public Class PRINTDLGEX

.
Documentation
[PrintDlgEx] on MSDN

 
Access PInvoke.net directly from VS: