Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Multiple copies using Shell Execute API

Status
Not open for further replies.

ThinWhiteDude

Technical User
Sep 21, 2004
97
0
0
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top