>I need to print an existing HTML document that a user passes me. Is there something built into windows that will allow me to do this? I could automate IE and then print, but was wondering if there was a better way.
>
>Thanks
>
>Don Tanner
Just use ShellExecute:
DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
INTEGER lnHWnd, ;
STRING lcAction, ;
STRING lcFileName, ;
STRING lcExeParams, ;
STRING lcDefDir, ;
INTEGER lnShowWindow
ShellExecute( 0, 'print', filename, "", "", 1 )