Executing JavaScript in a PDF using .Net
---------------
Set AcrobatApp = CreateObject("AcroExch.App")
Set AcrobatDoc = CreateObject("AcroExch.PDDoc")
Set AcrobatVisDoc = CreateObject("AcroExch.AVDoc")
If AcrobatDoc.Open(aReportFile) Then
AcrobatVisDoc.Open aReportFile, "BASIC report"
AcrobatApp.Show
Set AcrobatJava = AcrobatDoc.GetJSObject
AcrobatJava.VBStub InternalFunc, ReportSQL, GetDSN, GetUID, GetPWD
Set AcrobatJava = Nothing
End If
Set AcrobatVisDoc = Nothing
Set AcrobatDoc = Nothing
Set AcrobatApp = Nothing
---------------
I am in the process of converting this VB6 application into a VB.Net application using Visual Studio 2005. I've searched the forums and knowledge base for how to move this functionality to .Net, but no luck.
Could someone please provide a reference or information on how to get this done?
|