With the help of Acrobat with MS Access VBA

With the help of Acrobat 9.5. I'm trying to analyze a problem, so I have this test code:

CODE

Void testObjects()
Dim i As Boolean
Dim objapp As acrobat. AcroApp
Set objapp = New acrobat. AcroApp
objApp. Show
I have = objapp. CloseAllDocs
Debug.Print I have
I have = objapp. Output
Debug.Print I have
Set objapp = Nothing
End Sub

After Objapp.closealldocs I I = true (successful) but after I get i = objapp.exit I = false (no), and of course Acrobat is still active. How can I get Acrobat to close? It is a bit of test code. In the real application Task Manager indicates acrobat using memory more and more as the application moves through the records.

I suspect I'm missing something obvious here, but what? My experience with Acrobat automation and access is limited, so be gentle with me! smile.gif

If this is the wrong forum, please tell me where I should go.

I thought people might be interested to know that I found a work around for the problem of memory leak. I inserted a break every so many documents and that seems to be enough to let the Acrobat to free the memory.

On the development of PC a break of 10 seconds every 50 records (or probably more) are sufficient enough. but I'll have to do some settings on the computer target to find the optimal number. This means that the process is extended, but it is once a year of operation, so I don't think that will be a problem. I'm estimating that the final time will be approximately 15 minutes.

Of course, I thought of the solution until after that I had worked to generate Word documents instead, but it now means that we can offer the form in PDF or Word format.

Thank you all for all the help and suggestions.

Tags: Acrobat

Similar Questions

Maybe you are looking for