I have a small (60 mb) Access 2000 base I developed for a state agency that resides on their network. In a separate folder on the same network, there are around 20 gigs worth of scanned invoices in PDF format. The Access base archives the documents (with an individual description and document title) and the user can call up an individual PDF by clicking on the document hyperlink that refers to a PDF in the separate folder on the network. I developed a "keyword" type search mechanism, where the user could look up all of the documents with relevance to, say an individual company for instance. The Access query will then list the number of documents and their corresponding PDF hyperlinks in the form screen, like a list of "hits". The program can print a PDF file by using this code:
MY QUESTION IS, What would be the best way to ShellExecute multiple pathways, that are produced by a query? For, instance a "print all" button, that would print all of the PDF files that the listed hyperlinks refer to . . . Thanks
ian@everynobody.com
Code:
'----------------------------------------------------------
Private Declare Function ShellExecute 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
Private Sub Command1_Click()
ShellExecute 0, "PRINT", "C:\SomePDF.pdf", "", "", 1
End Sub
'----------------------------------------------------------
ian@everynobody.com