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 

Always ensure that a printer is installed
Total Hit (887) Many developers incorrectly assume that a printer is always installed on their customers' machines, and therefore omit to check that this is actually the case. The following function, deceiptively trivial, returns False and displays an error message if no printer has been installed: «Code LangId= ....Read More
Rating
Display the Connect To Printer dialog
Total Hit (2244) Under Windows NT you can programmatically display the Connect To Printer dialog using one simple API function: «Code LangId=1» ' This works only under Windows NT and 2000 Private Declare Function ConnectToPrinterDlg Lib "winspool.drv" (ByVal hWnd As _ Long, ByVal flags As Long) As Long ....Read More
Rating
GetDefaultDriverName - Retrieving the default printer Driver name
Total Hit (3754)
Rating
InstallPrinter - Install a new printer on the system
Total Hit (2605)
Rating
PrintRotatedText - Display a rotated message
Total Hit (1735)
Rating
SelectPrinter - Setting the application's default printer
Total Hit (859)
Rating
ShowNetworkPrinterConnectionDialog - Connect or disconnect a printer
Total Hit (1633)
Rating
ShowPrinterProperties - Display printer's Properties dialog
Total Hit (4386)
Rating
Printing the contents of a picturebox, including (most) controls, to a printer
Total Hit (1645) 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 (756) «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 (582)
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 (708)
Rating
Indicates if the new print operation will go out of the Page
Total Hit (654)
Rating
Print a Text with a specific alignment (left, Right or Center)
Total Hit (875) 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 (2450) 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 (781) 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 (2544) 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 (622) 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 (2051) 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
How to Print Full Justified Text
Total Hit (1004) 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 (848) 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
Setting Default Printer
Total Hit (711)
Rating
Setting Custom Paper Size using Printer API
Total Hit (12416) 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 set width of Datareport ?
Total Hit (1267) Following code will set custom width and height for VB Datareport for a specified Printer
Rating
How to Cancel Printing job sent to Printer.
Total Hit (1106) 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 (5392) 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 Print Using Custom Page Sizes on Windows NT and Windows 2000
Total Hit (3372) 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 (7358) 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 (923)
Rating
How to Add/Delete Printer Programatically using API?
Total Hit (11621) 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


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