CodeItBetter Programming Another VB Programming Blog

How to Print a Text document

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
'Text File Handling - How to Print a Text document
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _
    ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _
    ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1
 
'The code:
ShellExecute Me.hwnd, "Print", App.Path & "\Output\badgereport.txt", vbNullString, "C:\", _
    SW_SHOWNORMAL
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.