i have an option group on a print form for the user to
1. Print the cover page only
2. Pick and choose what to print - where as I fill and make visible text boxes to represent the display file names from an image table and then clicking the file names I use the followhyperlink method to bring up the file to review and print
3. The third option is "send all documents to printer" - This will recursively send files to the printer.
Well this worked fiine with office files (Word , excel) bu then came pdf's where some machines had adobe reader , some do not, some have foxit , some do not, some have Blue beam, some do not - so the shell command per se is not valid because there is no way for me to to know which application there pdf files are associated with.
So - is there any way to send a file straight to the printer regardless of association and without creating and killing the object.
I have been trying to use the full Shell API
apiShellExecute(hWndAccessApp, "print", _
"c:\mytest" & rst!strFileName, vbNullString, vbNullString, 0)
but it routinely throws back - file not found errors when in fact those files exist.
Thank you in advance.
1. Print the cover page only
2. Pick and choose what to print - where as I fill and make visible text boxes to represent the display file names from an image table and then clicking the file names I use the followhyperlink method to bring up the file to review and print
3. The third option is "send all documents to printer" - This will recursively send files to the printer.
Well this worked fiine with office files (Word , excel) bu then came pdf's where some machines had adobe reader , some do not, some have foxit , some do not, some have Blue beam, some do not - so the shell command per se is not valid because there is no way for me to to know which application there pdf files are associated with.
So - is there any way to send a file straight to the printer regardless of association and without creating and killing the object.
I have been trying to use the full Shell API
apiShellExecute(hWndAccessApp, "print", _
"c:\mytest" & rst!strFileName, vbNullString, vbNullString, 0)
but it routinely throws back - file not found errors when in fact those files exist.
Thank you in advance.