printing an external document ??

etsoft

Registered User.
Local time
Today, 15:41
Joined
Nov 14, 2003
Messages
15
Hi,

how can i print an external document from code ??

Thanks in advance.
 
In my old Browse [Find a directory or file] sample I am using the ShellExecute method to open a file. Add the below command to my browsing sample to Print a file.

Code:
Public Function PrintFile(sFileName As String)
On Error GoTo Err_PrintFile

    PrintFile = ShellExecute(Application.hWndAccessApp, "Print", sFileName, "", "C:\", 1)

Exit_PrintFile:
    Exit Function

Err_PrintFile:
    MsgBox Err.Number & " - " & Err.Description
    Resume Exit_PrintFile

End Function
 

Users who are viewing this thread

Back
Top Bottom