Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
TIF file printer from command line
Author:
Krishna
E-mail:
Click to e-mail author
Submitted:
8/2/2006
Version:
VB6
Compatibility:
VB6
Category:
Miscellaneous
Views:
14019
Tif file can be printed with 2 lines of code.
Declarations:
'none
Code:
Public Sub printtiff(filepath As String) winos = getwinOS If winos = "WINDOWS 2000" Then Dim lon As Long '-----Procedure #1------------default app kodakprv.exe lon = ShellExecute(hWnd, "print", filepath, "", "", 0) Else '-----Procedure #2--------default WIn 'picture '& 'faxviewe Dim tifstring As String tifstring = "rundll32.exe C:\WINDOWS\System32\shimgvw.dll,ImageView_PrintTo /pt" & " " & filepath & " Printer Name" & " drivername(ex:-winspool)" & " Port" K = Shell(tifstring, vbHide) End If end sub
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement