Gets or sets the size of the font that is used for text in a run-time printing operation. Gets all font names that are available for the current printer. Gets or sets the name of the font in which text is displayed for a printing operation. Returns the number of fonts available for the current display device or active printer. Gets or sets the pattern used to fill shapes created by using the Circle and Line graphics methods. Gets or sets the color that is used to fill in shapes created by using the Circle and Line graphics methods. Gets or sets a value that determines whether a page is printed on both sides (if the printer supports this feature). Gets or sets the line width for output from graphics methods. Gets or sets a value that determines the line style for output from graphics methods. Gets or sets the document name to display (for example, in a print status dialog box or printer queue) while printing the document. Gets or sets the vertical coordinates for the next printing or drawing method. Gets or sets the horizontal coordinates for the next printing or drawing method. Gets or sets a value that determines the number of copies to be printed. Gets or sets a value specifying whether the output will print in color or in monochrome on a device that supports color. Initializes a new instance of the Printer class. Namespace: .Compatibility.VB6 Assembly: (in .dll) Inheritance Hierarchy MsgBox "The Printer Name you typed wasn't recognized.Provides a Printer object for use by upgraded Visual Basic 6.0 printing code. LReturn = OpenPrinter(Printer.Device Name, lhPrinter, 0) HPrinter As Long, pBuf As Any, ByVal cdBuf As Long, _ Private Declare Function WritePrinter Lib "winspool.drv" (ByVal _ Private Declare Function StartPagePrinter Lib "winspool.drv" (ByVal _ "StartDocPrinterA" (ByVal hPrinter As Long, ByVal Level As Long, _ Private Declare Function StartDocPrinter Lib "winspool.drv" Alias _ "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, _ Private Declare Function OpenPrinter Lib "winspool.drv" Alias _ Private Declare Function EndPagePrinter Lib "winspool.drv" (ByVal _ Private Declare Function EndDocPrinter Lib "winspool.drv" (ByVal _ Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal _ I did tried to replace the "AAAAAA" to a file name, it is not working as well.Īnyone here can advise about this part of the code? -> (MyDocInfo.pDocName = "AAAAAA") When i execute the VB program, i was able to see "AAAAAA" being sent to my printer queue but it wasn't print out actually. I get the code from microsoft support website. I am trying to use the code below to send Send Raw Data to a Printer Using the Win32 API from Visual Basic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |