ThinWhiteDude
Technical User
Thanks to Roy Vidar I am able to print an external file from Access, via:
Private Declare Function apiShellExecute 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
Calling:
lngReturn = apiShellExecute(hWndAccessApp, "print", _
rst!Filename, vbNullString, vbNullString, 0)
But, I am very new to this type of procedure and would like to know how to indicate that I need 5 copies printed. Can that be done from this code?
Thanks,
TWD
Private Declare Function apiShellExecute 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
Calling:
lngReturn = apiShellExecute(hWndAccessApp, "print", _
rst!Filename, vbNullString, vbNullString, 0)
But, I am very new to this type of procedure and would like to know how to indicate that I need 5 copies printed. Can that be done from this code?
Thanks,
TWD