Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1647)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

(Page 1 of 2) 37 Result(s) found 

Printing the contents of a picturebox, including (most) controls, to a printer
Total Hit (1569) API Declarations «Code LangId=1» Option Explicit Private Declare Function SendMessage Lib "user32.dll" Alias _ "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, _ ByVal wParam As Long, ByVal lParam As Long) As Long Private Const WM_PAINT = &HF Private Const WM_PRINT = &H317 ....Read More
Rating
How to Paint a ScanBar CODE39 on Printer or PictureBox
Total Hit (714) «Code LangId=1»'Put this code at a module. 'Usage: PaintCodeBar39 Printer, Xpos, Ypos, BarsHeight, WidthFactor, Text, HumanRead ' Printer.EndDoc Public Type C39 char As String * 1 bar(1 To 5) As Boolean spe(1 To 5) As Boolean ' 5th space for character gap End Type Dim CODE39( ....Read More
Rating
Draw an horizontal line in the current position (like an HTML line)
Total Hit (545)
Rating
Print a text in a specific position, if you don't indicate the x or y parameter the current position will be used
Total Hit (671)
Rating
Indicates if the new print operation will go out of the Page
Total Hit (617)
Rating
Print a Text with a specific alignment (left, Right or Center)
Total Hit (800) Module «Code LangId=1»Public Sub PrintAlignedText(s As String, Alignment As AlignmentConstants) Select Case Alignment Case vbCenter Printer.CurrentX = (Printer.ScaleWidth - Printer.TextWidth(s)) \ 2 Case vbLeftJustify Printer.CurrentX = 0 Case vbRightJustif ....Read More
Rating
Get the Number of Waiting Jobs of a specified Printer on your network
Total Hit (2297) API Declarations «Code LangId=1» Option Explicit 'Constants Definition Public Const CCHDEVICENAME = 32 Public Const CCHFORMNAME = 32 Public Const PRINTER_ACCESS_ADMINISTER = &H4 Public Const PRINTER_ACCESS_USE = &H8 'Types Definition Public Type DEVMODE dmDeviceName As String * C ....Read More
Rating
Print a Text File
Total Hit (737) Module «Code LangId=1» Option Explicit Public Sub PrintTXTFile(FileName As String) Dim x As Integer Dim s As String x = FreeFile On Error GoTo HandleError Open FileName For Input As x Do While Not EOF(x) Line Input #x, s Printer.Print s L ....Read More
Rating
Get the Default Printer
Total Hit (2439) API Declarations «Code LangId=1» Option Explicit 'MS Windows API Function Prototypes Private Declare Function GetProfileString Lib "kernel32.dll" Alias "GetProfileStringA" (ByVal lpAppName As String, ByVal lpKeyName As String, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVa ....Read More
Rating
Print an Image contained in a Picture Box or a Form
Total Hit (574) Module «Code LangId=1» 'Print the Picture contained in a PictureBox or a Form Public Sub PrintImage(p As IPictureDisp, Optional ByVal x, Optional ByVal y, Optional ByVal resize) If IsMissing(x) Then x = Printer.CurrentX If IsMissing(y) Then y = Printer.CurrentY If IsMissing(resiz ....Read More
Rating
How to Print a Multiline TextBox with Alignment!
Total Hit (1947) API Declarations «Code LangId=1» 'Add this to your Declarations Section: Public Declare Function SetTextAlign Lib "gdi32.dll" (ByVal hdc As Long, ByVal wFlags As Long) As Long Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wmsg As Long, ByV ....Read More
Rating
Printing using GDI printing APIs
Total Hit (1312) 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
How to change printer port using API ?
Total Hit (1752) «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
How to find out available ports on Local System or Remote System using EnumPorts API ?
Total Hit (1248) You can use EnumPorts API to find out available ports in a specified machine. «b»Step-By-Step Example«/b» - Create a standard exe project, form1 is added by default - Add one textbox, one command button and one listbox on the form1 - Place the following code in form code window «code LangId ....Read More
Rating
How to set default printer programatically on Win 9x/NT ?
Total Hit (1620) 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 install/uninstall Printer Driver programatically ?
Total Hit (1797) 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 (1508) 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 Print Using Custom Page Sizes on Windows NT and Windows 2000
Total Hit (3249) Have you ever tried to set custom paper size using VB inbuilt Printer object ??? You can set custom papersize by setting Printer.PaperSize = 256 and then Printer.Height = 4500 , Printer.Width = 7500 but unfortunately this wont work under NT/2000 because in NT each paper size is considered as a "Form ....Read More
Rating
How to monitor Printer Queue using printer API
Total Hit (6894) This article will show you how you can use OpenPrinter, EnumJobs and ClosePrinter API to monitor selected printer's queue. To implement Quick Demo perform the following steps - Create a standard exe project - Add module1 - Place 1 commandbutton, 1 textbox, 1 combobox 1 timer and 1 ListView ....Read More
Rating
How to display the Add Printer Dialog ?
Total Hit (848)
Rating
How to Add/Delete Printer Programatically using API?
Total Hit (10664) This article will show you step by step approch to Add and Delete Printer Programatically without any user interaction. When writing a Win32 application that installs a network printer connection, you must take into consideration differences in printing if the application will be run under both W ....Read More
Rating
How can I print a preformated file directly to printer?
Total Hit (785) «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 Cancel Printing job sent to Printer.
Total Hit (1065) To learn more about Printing Using API click on the folloing link «a href='http://msdn.microsoft.com/library/en-us/gdi/prntspol_0r1j.asp'»http://msdn.microsoft.com/library/en-us/gdi/prntspol_0r1j.asp«/a»
Rating
Send Raw Data to a Printer (Bypass Printer Driver) Using the Win32 API from Visual Basic.
Total Hit (5077) The Visual Basic Printer object allows for printing through printer drivers, but there may be times when it is desirable to use the Win32 API to send information more directly to the printer. The code sample to follow shows how to achieve this by using API functions that bypass printer drivers to co ....Read More
Rating
How to set width of Datareport ?
Total Hit (1222) Following code will set custom width and height for VB Datareport for a specified Printer
Rating
Setting Default Printer
Total Hit (673)
Rating
Setting Custom Paper Size using Printer API
Total Hit (11782) Here is the alternate method which shows how to use printer APIs to set custom papersize and other printer properties using API. This code will work with Win9x and WinNT both.
Rating
How to Print Full Justified Text
Total Hit (925) Module «Code LangId=1» Option Explicit Public Sub PrintLine(Text As String, SpaceWidth As Single, Target As Object) 'Print a justified line to the Target object Dim i As Integer Dim cx As Single Dim OldBold As Boolean Dim OldUnderLine As Boolean Dim OldItalic As ....Read More
Rating
Print a Picture to Fit a Page!
Total Hit (807) Module «Code LangId=1» Option Explicit Public Sub PrintPictureToFitPage(Pic As Picture) Dim PicRatio As Double Dim printerWidth As Double Dim printerHeight As Double Dim printerRatio As Double Dim printerPicWidth As Double Dim printerPicHeight As Double ' ....Read More
Rating
GetDefaultDriverName - Retrieving the default printer Driver name
Total Hit (3638)
Rating


(Page 1 of 2) 37 Result(s) found  1 2

Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  Blogs

© 2008 BinaryWorld LLC. All rights reserved.