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]

xpsprint

9: !!
10: !
.
Namespace
xpsprint
.
Description
xpsprint.dll
.
Title
xpsprint.dll

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

ntdll

.

     System.Diagnostics.Debug.Print(

.

        // print results:

.

    //        sample printout:

mpr

.

        RESOURCETYPE_PRINT,

.

  //      RESOURCETYPE_PRINT      = 2,

.

    Print = 2,

.

        RESOURCETYPE_PRINT,

.

    RESOURCETYPE_PRINT = 0x00000002,

.

    RESOURCETYPE_PRINT = &H2

.

localName is the local name for the network resource (drive or printer)

.

    PRINT   = 0x00000002,

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

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.");

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.

rasapi32

.

        SecureFileAndPrint = 0x1,

Structures

.
Summary
Contains information about the initialization and environment of a printer or a display device.
.

    Int16 dmPrintQuality;

.

    Public dmPrintQuality As Short

.

This code (taken from .NET source code) is working with System.Drawing.Printing.PrinterSettings.Gethdevmode, where default structure doesn't work for me.

.

    public Int16 dmPrintQuality;

.

struct FAX_PRINT_INFO {

.
Documentation
[FAX_PRINT_INFO] on MSDN
.

    DVASPECT_DOCPRINT = 8

.

    DVASPECT_DOCPRINT = 8

.
Summary
The JOB_INFO_1 structure specifies print-job information such as the job-identifier value, the name of the printer for which the job is spooled, the name of the machine that created the print job, the name of the user that owns the print job, and so on.
.

   public string pPrinterName;

.

   public UInt32 PagesPrinted;

.

        ///PRINT key

.

        PRINT = 0x2A,

.

        ///PRINT SCREEN key

.

        PRINT = 0,

.

public class PRINTDLG

.

    public IntPtr lpfnPrintHook;

.

    public IntPtr lpPrintTemplateName;

.

    public IntPtr hPrintTemplate;

.

Structure PRINTDLG

.
Documentation
[PRINTDLG] on MSDN
.
Summary
.

struct PRINTER_DEFAULTS {

.

/// The PRINTER_DEFAULTS structure specifies the default data type,

.

/// environment, initialization data, and access rights for a printer.

.

internal class PRINTER_DEFAULTS

.

   /// default data type for a printer.

.

   /// default environment and initialization data for a printer.

.

   /// Specifies desired access rights for a printer.

.

   /// The <see cref="OpenPrinter(string, out IntPtr, IntPtr)"/> function uses

.

   /// this member to set access rights to the printer. These rights can affect

.

   /// the operation of the SetPrinter and DeletePrinter functions.

.

Structure PRINTER_DEFAULTS

.

If you use the class-version, you only need one OpenPrinter declaration, because you can pass NULL or an object references.

.
Documentation
[PRINTER_DEFAULTS] on MSDN
.
Summary
Used by the EnumPrinters call in Winspool.
.

    public struct PRINTER_INFO_2

.

        public string pPrinterName;

.

        public string pPrintProcessor;

.

    Private Structure PRINTER_INFO_2

.

        Public pPrinterName As String

.

        Public pPrintProcessor As String

.

public PRINTER_ATTRIBUTES Attributes;

.

See the PRINTER_ATTRIBUTES enum for more details.

.

If you only want to get or set the DEVMODE struct, you can use the PRINTER_INFO_9 struct instead.

.
Documentation
[PRINTER_INFO_2] on MSDN
.
Summary
Used by the EnumPrinters call in Winspool.
.

    public struct PRINTER_INFO_5

.

        public string pPrinterName;

.

Structure PRINTER_INFO_5

.

public PRINTER_ATTRIBUTES Attributes;

.

See the PRINTER_ATTRIBUTES enum for more details.

.
Documentation
[PRINTER_INFO_5] on MSDN
.
Summary
.

/// The PRINTER_INFO_9 structure specifies the per-user default printer settings.

.

internal class PRINTER_INFO_9

.

   /// default printer data such as the paper orientation and the resolution.

.
Documentation
[PRINTER_INFO_9] on MSDN
.

     ushort PrintNameOffset;

.

     ushort PrintNameLength;

.

       (4 * sizeof(ushort)) + SubstituteNameLength + PrintNameLength +

.

PrintNameOffset

.

    Offset, in bytes, of the print name string in the PathBuffer array.

.

PrintNameLength

.

    Length, in bytes, of the print name string. If this string is null-terminated,

.

    PrintNameLength does not include space for the null character.

.

    the substitute name string and print name string.

.

  internal ushort PrintNameOffset;

.

  internal ushort PrintNameLength;

.

    internal ushort PrintNameOffset;

.

    internal ushort PrintNameLength;

.

        rdb.PrintNameOffset = (ushort)(targetLenBytes + 2);

.
Summary
Informs the print spooler that a document is to be spooled for printing.
.

[DllImport("winspool.drv", EntryPoint="StartDocPrinterW", SetLastError=true,

.

private static extern uint StartDocPrinter(

.

  IntPtr hPrinter,

.

[DllImport("winspool.drv", EntryPoint="StartDocPrinterA", SetLastError=true,

.

private static extern uint StartDocPrinter(

.

  IntPtr hPrinter,

.

Structure StartDocPrinter

.

  Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1W) As Long

.

  Public Function StartDocPrinter(hPrinter As IntPtr, Level As Integer, ByRef pDocInfo As DOC_INFO_1A) As Long

.
Documentation
[StartDocPrinter] on MSDN

Interfaces

.

      void PrintTemplateInstantiation([MarshalAs(UnmanagedType.IDispatch)] object pDisp);

.

      void PrintTemplateTeardown([MarshalAs(UnmanagedType.IDispatch)] object pDisp);

.

      Sub PrintTemplateInstantiation(<MarshalAs(UnmanagedType.IDispatch)> ByVal pDisp As Object)

.

      Sub PrintTemplateTeardown(<MarshalAs(UnmanagedType.IDispatch)> ByVal pDisp As Object)

.

        // the autocomplete object treats pwszQuickComplete as a sprintf

.

        #region Print

.

        /// Prints the current view. Print Dialog does not appear and therefore a document

.

        /// will be printed.with the default printer settings

.

        public void Print()

.

                    InfoPathControl.XmlForm.Print();

.

                    //NOTE: XmlForm.Print(true) will NOT show the print dialog.

.

                    //The print dialog is not supported in hosting scenarios

.

                    throw new HostedException("An error occurred while attempting to print this form", ex);

.

    SHCONTF_NETPRINTERSRCH = 0x0200,

.

        Debug.Print("\r\nCount =>" + iHistoryCount.ToString());

.

                Debug.Print("\r\nTitle =>" + Marshal.PtrToStringUni(pTitle));

.

                Debug.Print("\r\nUrl =>" + Marshal.PtrToStringUni(pUrl));

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.");

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;

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


 
Access PInvoke.net directly from VS: