|
How can I print a preformated file directly to printer?
|
Total Hit (2620) |
«b»Step-By-Step Example«/b»
1. On a Microsoft NT 4.0 system, add a printer with a name that contains a space.
2. Create a text file in the C:\ folder, for example, test.txt.
3. Start a new Standard EXE project in Visual Basic. Form1 is created by default.
4. From the Project menu, select Refer
....Read More |
Rating
|
|
|
How to install/uninstall Printer Driver programatically ?
|
Total Hit (5511) |
This article will show you how to install/uninstall Printer Driver without any user interaction.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Copy and Paster the following code in form code window
- Make sure you modify various parameter according to your requirement.
«c
....Read More |
Rating
|
|
|
How to display Advanced document property of a selected printer ?
|
Total Hit (3544) |
This demo will show you how to use AdvancedDocumentProperties function to displays a printer-configuration dialog box for the specified printer, allowing the user to configure that printer.
«b»Step-By-Step Example«/b»
- Create a standard exe project
- Place following code in form1 code windo
....Read More |
Rating
|
|
|
How to set default printer programatically on Win 9x/NT ?
|
Total Hit (4439) |
This article shows how to programmatically set which printer is the system default printer. Not all applications or components can select a specific printer to use. This often makes it necessary to change the default printer for the system so that the application or component will use the desired pr
....Read More |
Rating
|
|
|
|
How to change printer port using API ?
|
Total Hit (4402) |
«code LangId=1»Option Explicit
Private Type PRINTER_DEFAULTS
pDatatype As String
pDevMode As Long 'DEVMODE
DesiredAccess As Long
End Type
Private Declare Function GetPrinter Lib "winspool.drv" Alias "GetPrinterA" (ByVal hPrinter As Long, ByVal Level As Long, pPrinter As Long
....Read More |
Rating
|
|
|
Printing using GDI printing APIs
|
Total Hit (3652) |
This sample code will show you how to perform basic print operations using GDI print APIs
- Create a standard exe project
- Add one command button control on the form1
- Add the following code in form1
«code LangId=1»Option Explicit
Private Declare Function StartDoc Lib "gdi32" Alias _
....Read More |
Rating
|
|