Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Runtime Error 430?? Pin
Nadroj20-Feb-04 1:57
Nadroj20-Feb-04 1:57 
GeneralRe: Runtime Error 430?? Pin
erikkloeze20-Feb-04 3:40
erikkloeze20-Feb-04 3:40 
GeneralRe: Runtime Error 430?? Pin
Nadroj20-Feb-04 4:36
Nadroj20-Feb-04 4:36 
GeneralRe: Runtime Error 430?? Pin
Nadroj20-Feb-04 4:50
Nadroj20-Feb-04 4:50 
GeneralRe: Runtime Error 430?? Pin
erikkloeze20-Feb-04 10:03
erikkloeze20-Feb-04 10:03 
GeneralRe: Runtime Error 430?? Pin
Nadroj20-Feb-04 11:38
Nadroj20-Feb-04 11:38 
GeneralSet Printer Using Printing API Pin
Edbert P19-Feb-04 19:07
Edbert P19-Feb-04 19:07 
GeneralRe: Set Printer Using Printing API Pin
Duncan Edwards Jones20-Feb-04 8:09
professionalDuncan Edwards Jones20-Feb-04 8:09 
First you need to find out if the printer supports stapling at all by calling the Api GetDeviceCaps with the index DC_STAPLE.

Public Enum PrintDeviceCapabilitiesIndexes
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_FIELDS Which fields of the device mode are used
    DC_FIELDS = 1
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_PAPERS Which Printer Paper Sizes the device supports
    DC_PAPERS = 2
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_PAPERSIZE The dimensions of the paper in 10ths of a millimeter
    DC_PAPERSIZE = 3
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_MINEXTENT The minimum paper width and height the printer can support
    DC_MINEXTENT = 4
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_MAXEXTENT The maximum paper width and height the printer can support
    DC_MAXEXTENT = 5
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_BINS The standard paper bins supported by this printer
    DC_BINS = 6
    ' ##ENUMERATION_MEMBER_DESCRIPTION DC_DUPLEX Whether the printer supports duplex printing
    DC_DUPLEX = 7
    DC_SIZE = 8
    DC_EXTRA = 9
    DC_VERSION = 10
    DC_DRIVER = 11
    DC_BINNAMES = 12
    DC_ENUMRESOLUTIONS = 13
    DC_FILEDEPENDENCIES = 14
    DC_TRUETYPE = 15
    DC_PAPERNAMES = 16
    DC_ORIENTATION = 17
    DC_COPIES = 18
    DC_BINADJUST = 19
    DC_EMF_COMPLIANT = 20
    DC_DATATYPE_PRODUCED = 21
    DC_COLLATE = 22
    DC_MANUFACTURER = 23
    DC_MODEL = 24
    DC_PERSONALITY = 25
    DC_PRINTRATE = 26
    DC_PRINTRATEUNIT = 27
    DC_PRINTERMEM = 28
    DC_MEDIAREADY = 29
    DC_STAPLE = 30
    DC_PRINTRATEPPM = 31
    DC_COLORDEVICE = 32
    DC_NUP = 33
End Enum

Private Declare Function DeviceCapabilities Lib "winspool.drv" Alias "DeviceCapabilitiesA" (ByVal DeviceName As String, ByVal Portname As String, ByVal Index As PrintDeviceCapabilitiesIndexes, ByVal lpBuf As Long, pDevMode As Long) As Long


...

'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
GeneralRe: Set Printer Using Printing API Pin
Duncan Edwards Jones20-Feb-04 8:13
professionalDuncan Edwards Jones20-Feb-04 8:13 
GeneralRe: Set Printer Using Printing API Pin
Edbert P22-Feb-04 17:35
Edbert P22-Feb-04 17:35 
Generala problem in VB 6 (textbox.text) Pin
Nazila Naderi19-Feb-04 18:47
Nazila Naderi19-Feb-04 18:47 
GeneralRe: a problem in VB 6 (textbox.text) Pin
Nadroj20-Feb-04 12:46
Nadroj20-Feb-04 12:46 
GeneralRe: more details?! Pin
Nazila Naderi20-Feb-04 15:14
Nazila Naderi20-Feb-04 15:14 
GeneralRe: a problem in VB 6 (textbox.text) Pin
Hesham Amin20-Feb-04 21:40
Hesham Amin20-Feb-04 21:40 
GeneralTAB CONTROLS Pin
len_ems19-Feb-04 17:28
len_ems19-Feb-04 17:28 
GeneralRe: TAB CONTROLS Pin
Dave Kreskowiak22-Feb-04 16:36
mveDave Kreskowiak22-Feb-04 16:36 
GeneralRe: TAB CONTROLS Pin
Anonymous23-Feb-04 23:23
Anonymous23-Feb-04 23:23 
GeneralRe: TAB CONTROLS Pin
Dave Kreskowiak24-Feb-04 6:14
mveDave Kreskowiak24-Feb-04 6:14 
GeneralAdding PageBreak in Excel Pin
nvmoss19-Feb-04 11:15
nvmoss19-Feb-04 11:15 
GeneralGlobal Error Handler Pin
kingspawn19-Feb-04 8:09
kingspawn19-Feb-04 8:09 
GeneralRe: Global Error Handler Pin
John Kuhn19-Feb-04 14:11
John Kuhn19-Feb-04 14:11 
GeneralRe: Global Error Handler Pin
SimonCampbell20-Feb-04 2:03
SimonCampbell20-Feb-04 2:03 
GeneralRe: Global Error Handler Pin
John Kuhn20-Feb-04 7:52
John Kuhn20-Feb-04 7:52 
GeneralRe: Global Error Handler Pin
kingspawn20-Feb-04 9:57
kingspawn20-Feb-04 9:57 
GeneralCryptoAPI Pin
Mazdak19-Feb-04 5:08
Mazdak19-Feb-04 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.