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
Download Visual Studio Add-In

Search Results for "print" in [All]

iphlpapi

.

        IF_TYPE_ISO88025_CRFPRINT = 98,  // ISO 802.5 CRFP

shlwapi

.

     "print", null, ref size);

.

     "print", sb, ref size);

.

   Console.WriteLine(".doc is printed by : {0}", sb.ToString());

.

     Console.WriteLine("No command line is associated to .doc print verb.");

winfax

.

static extern bool FaxPrintCoverPage (ref FAX_CONTEXT_INFO FaxContextInfo,

.

Declare Function FaxPrintCoverPage Lib "winfax.dll" (TODO) As TODO

.
Documentation
[FaxPrintCoverPage] on MSDN
.
Summary
Starts printing an outbound fax transmission.
.

static extern bool FaxStartPrintJob (string PrinterName,

.

   ref FAX_PRINT_INFO PrintInfo, out int FaxJobId,

.

Declare Function FaxStartPrintJob Lib "winfax.dll" (TODO) As TODO

.
Documentation
[FaxStartPrintJob] on MSDN
.

private struct FAX_PRINT_INFO

.

} // FAXPRINT_INFO

.
Documentation
[FAX_PRINT_INFO] on MSDN

msvcrt

.

static extern int sprintf(

.

static extern int swprintf(

.

static extern int sprintf([In,Out]StringBuilder buffer, String fmt,

.

static extern int sprintf([In,Out]StringBuilder buffer, String fmt,

.

static extern int sprintf([In,Out]StringBuilder buffer, String fmt,

.

  Public Shared Function sprintf(ByVal TargetString As System.Text.StringBuilder,

.

swprintf(buffer, "Greetings from thread %d\n", __arglist(Thread.CurrentThread.ManagedThreadId));

.
VB.NET
Investigate the use of System.Text.StringBuilder.AppendFormat before using sprintf.
.
Documentation
[sprintf] on MSDN

gdi32

.
Summary
.

in Pointer to a null-terminated character string that specifies the name of the specific output device being used, as shown by the Print Manager (for example, Epson FX-80). It is not the printer model name. The lpszDevice parameter must be used.

.

        static bool PrinterSupportsPostScript(string printername)

.

                hDC =CreateDC(null,printername,0,IntPtr.Zero);

.

                if(test==0) return false; // printer driver does not support GETTECHNOLOGY Checks.

.

        // Printing related DeviceCaps. These replace the appropriate Escapes

.

        /// Physical Printable Area x margin

.

        /// Physical Printable Area y margin

.

    ' Printing related DeviceCaps. These replace the appropriate Escapes

.

    ''' Physical Printable Area x margin

.

    ''' Physical Printable Area y margin

.

  // Print out the RGB value of the pixel which is under the mouse cursor.

.
Summary
Sets the application-defined abort function that allows a print job to be canceled during spooling.
.
Summary
Starts a print job.

coredll

.

     public short dmPrintQuality;

.

        short dmPrintQuality;

.

    Public Property dmPrintQuality() As Short

.
Summary
Add serial debug prints under Windows CE
.

static extern void NKDbgPrintfW(string str);

.

//Taken from http://www.codeproject.com/csharp/timezoneconversions.asp?print=true

setupapi

.

Text1.Text = SendToUsbPrinter(”Hello world.”)

.

Function SendToUsbPrinter(PrintOut As String) As Boolean

.

SendToUsbPrinter = False

.

Debug.Print DeviceName

.

Debug.Print “Open failed on ” & DeviceName

.

Ret = WriteFile(DeviceHandle, PrintOut, _

.

Len(PrintOut), BytesWritten, 0)

.

Debug.Print “Sent ” & BytesWritten & ” bytes.”

.

SendToUsbPrinter = True

printui

25: !!!!!!
26: !!!
27: !!
.
Summary
PrintUIEntryW is the main entrypoint to the printer configuration functions in the PrintUI.dll.
.

[DllImport("printui.dll", SetLastError = true, CharSet = CharSet.Unicode)]

.

private static extern void PrintUIEntryW(IntPtr hwnd, IntPtr hinst, string lpszCmdLine, int nCmdShow);

.

PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/?", 0);

.

Add per machine printer connection (the connection will be propagated to the user upon logon):

.

PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/c \\machine /ga /n\\server\queue", 0);

.

Delete per machine printer connection (the connection will be deleted upon user logon):

.

PrintUIEntry(IntPtr.Zero, IntPtr.Zero, @"/c \\machine /gd /n\\server\queue", 0);

.

View default printer's properties

.

PrintDocument printDoc = new PrintDocument();

.

PrintUIEntryW(IntPtr.Zero, IntPtr.Zero, @"/p /n " + "\ " + printDoc.PrinterSettings.PrinterName + "\ ", 0);

.

// "\"" required for printer name with spaces

.
Documentation
[PrintUIEntry] on MSDN
.
Namespace
printui
.
Description
printui.dll
.
Title
printui.dll

user32

.

                VK_PRINT = 0x2A,

.

    VK_PRINT     = 0x2A,

.

Prints time in seconds since last user input.

.

    printf("%d seconds\n", (idleTicks > 0)? idleTicks/1000: 0);

.
Summary
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.
.

   static extern bool PrintWindow(IntPtr hwnd, IntPtr hDC, uint nFlags);

.

Private Shared Function PrintWindow(ByVal hwnd As IntPtr, ByVal hDC As IntPtr, ByVal nFlags As UInteger) As Boolean

.

bool success = PrintWindow(form.Handle, dc, 0);

.

PrintWindow Me.hWnd, Me.hDC, 0

.
Documentation
[PrintWindow] on MSDN
.

//Console Prints: 0 0 1

.

public static void CopyPrint()

.

Public Const VK_PRINT = &H2A 'print screen

.

    public const uint VK_PRINT = 0x2A;

.
Summary
The wsprintf API
.

static extern int wsprintf([Out] StringBuilder lpOut, string lpFmt, __arglist);

.
Documentation
[wsprintf] on MSDN

xpsprint

46: !!!!!!
47: !!
48: !
.
Namespace
xpsprint
.
Description
xpsprint.dll
.
Title
xpsprint.dll

crypt32

.

   printf("Opened the MY system store. \n");

.

   printf( "Could not open the MY system store.\n");

.

  printf("The MY store is duplicated.\n");

.

  printf("Duplication of the MY store failed.\n.");

kernel32

.

            Debug.Print(CStr(CheckRemoteDebuggerPresent(proc.Handle, bool)))

.

    Printer                = 0x00000018,

.

Get OutputDebugString function implementation that accepts variable number of arguments like printf here (http://www.go4expert.com/forums/showthread.php?t=871)

.

//sample is probably a bad idea, but it will "trim down" the memory footprint of a .Net App (or at least the value reflected in Task Manager).

.

    Debug.Print(CStr(bytearray(0)) + " " + CStr(bytearray(elements - 1)) + " " + CStr(bytearray(elements)))

.

    Debug.Print(CStr(bytearray(0)) + " " + CStr(bytearray(elements - 1)) + " " + CStr(bytearray(elements)))

comdlg32

.

     CF_PRINTERFONTS = 0x00000002,

.

     CF_BOTH = (CF_SCREENFONTS | CF_PRINTERFONTS),

.

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

.

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

.

System.Windows.Forms.PrintDialog

.

Public Class WWPrintDialog

.

    Private m_bAllowPrintToFile As Boolean = False

.

    Private m_sPrinterName As String = String.Empty

.

    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()

.

        Dim _ppr As PRINTPAGERANGE = New PRINTPAGERANGE()

.

        Dim prnsettings As Printing.PrinterSettings = New Printing.PrinterSettings()

.

        _pdex.lpPrintTemplateName = Nothing

.

        _pdex.Flags = PRINTFLAG.PD_NOSELECTION Or PRINTFLAG.PD_NOPAGENUMS

.

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

.

Public Class PRINTDLGEX

.

    Public lpPrintTemplateName As String

.

Public Class PRINTPAGERANGE

.

Public Class PRINTFLAG

.

    Public Const PD_PRINTTOFILE As Int32 = 32

.

    Public Const PD_PRINTSETUP As Int32 = 64

.

    Public Const PD_ENABLEPRINTHOOK As Int32 = 4096

.

    Public Const PD_ENABLEPRINTTEMPLATE As Int32 = 16384

.

    Public Const PD_ENABLEPRINTTEMPLATEHANDLE As Int32 = 65536

.

    Public Const PD_DISABLEPRINTTOFILE As Int32 = 524288

.

    Public Const PD_HIDEPRINTTOFILE As Int32 = 1048576

.
Documentation
[PrintDlgEx] on MSDN

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: