Hi,
Jade COM fails to load Adobe Acrobat using asp.net when ms sql server installed on the same machine. Without MS SQL Server it works fine. Could anybody tell me the reason.
following is the program we are using in asp.net application
Dim iNoOfPages As Long
Dim i As Long
Dim JadeObj As New JADECOMLib.Jade
Dim sSourceFileName As String
Dim sDestinationFileName As String
Try
sSourceFileName = "C:\\PDF to txt\\abc.pdf"
sDestinationFileName = Left(sSourceFileName, Len(sSourceFileName) - 4) & ".txt"
'Start Acrobat
Dim iOutput As Integer
iOutput = JadeObj.StartAcrobat()
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/Acrobat Start Successfully")
Else
Call PrintMsg("ConvertPDF_txt/Acrobat Failed.. Error Code: " & iOutput)
End If
'Open PDF file
iOutput = JadeObj.OpenPDF(sSourceFileName)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/Open PDF Successfully")
Else
Call PrintMsg("ConvertPDF_txt/Open PDF Failed.. Error Code: " & iOutput)
End If
'ntype : Type of zone.
'0 is auto detect
'1 is text-flow only output
'2 is text-preserve only output
'3 is table only output
'4 is graphic only output
'Get No. of Pages
iNoOfPages = JadeObj.GetNumPages()
If iNoOfPages = 0 Then
Call PrintMsg("ConvertPDF_txt/GetNumPages Failed.")
Else
Call PrintMsg("ConvertPDF_txt/GetNumPages =" & iNoOfPages)
End If
For i = 1 To iNoOfPages
JadeObj.SetJadeProperty(i, 0, 0, 100, 100, 2, 72, 3)
Next
iOutput = JadeObj.ExtractZones(0, sDestinationFileName)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/ExtractZones Successfully")
Else
Call PrintMsg("ConvertPDF_txt/ExtractZones Failed. Error Code = " & iOutput)
End If
'Close PDF
iOutput = JadeObj.ClosePDF(0)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/ClosePDF Successfully")
Else
Call PrintMsg("ConvertPDF_txt/ClosePDF Failed. Error Code = " & iOutput)
End If
'Close Acrobat
iOutput = JadeObj.CloseAcrobat()
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/CloseAcrobat Successfully.")
Else
Call PrintMsg("ConvertPDF_txt/CloseAcrobat Failed. Error Code = " & iOutput)
End If
Catch ex As Exception
Call PrintMsg("Error : " & ex.Message)
End Try
'-----------------------------------------------
thanks & regards
Dhananjay Honrao
Jade COM fails to load Adobe Acrobat using asp.net when ms sql server installed on the same machine. Without MS SQL Server it works fine. Could anybody tell me the reason.
following is the program we are using in asp.net application
Dim iNoOfPages As Long
Dim i As Long
Dim JadeObj As New JADECOMLib.Jade
Dim sSourceFileName As String
Dim sDestinationFileName As String
Try
sSourceFileName = "C:\\PDF to txt\\abc.pdf"
sDestinationFileName = Left(sSourceFileName, Len(sSourceFileName) - 4) & ".txt"
'Start Acrobat
Dim iOutput As Integer
iOutput = JadeObj.StartAcrobat()
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/Acrobat Start Successfully")
Else
Call PrintMsg("ConvertPDF_txt/Acrobat Failed.. Error Code: " & iOutput)
End If
'Open PDF file
iOutput = JadeObj.OpenPDF(sSourceFileName)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/Open PDF Successfully")
Else
Call PrintMsg("ConvertPDF_txt/Open PDF Failed.. Error Code: " & iOutput)
End If
'ntype : Type of zone.
'0 is auto detect
'1 is text-flow only output
'2 is text-preserve only output
'3 is table only output
'4 is graphic only output
'Get No. of Pages
iNoOfPages = JadeObj.GetNumPages()
If iNoOfPages = 0 Then
Call PrintMsg("ConvertPDF_txt/GetNumPages Failed.")
Else
Call PrintMsg("ConvertPDF_txt/GetNumPages =" & iNoOfPages)
End If
For i = 1 To iNoOfPages
JadeObj.SetJadeProperty(i, 0, 0, 100, 100, 2, 72, 3)
Next
iOutput = JadeObj.ExtractZones(0, sDestinationFileName)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/ExtractZones Successfully")
Else
Call PrintMsg("ConvertPDF_txt/ExtractZones Failed. Error Code = " & iOutput)
End If
'Close PDF
iOutput = JadeObj.ClosePDF(0)
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/ClosePDF Successfully")
Else
Call PrintMsg("ConvertPDF_txt/ClosePDF Failed. Error Code = " & iOutput)
End If
'Close Acrobat
iOutput = JadeObj.CloseAcrobat()
If iOutput = 0 Then
Call PrintMsg("ConvertPDF_txt/CloseAcrobat Successfully.")
Else
Call PrintMsg("ConvertPDF_txt/CloseAcrobat Failed. Error Code = " & iOutput)
End If
Catch ex As Exception
Call PrintMsg("Error : " & ex.Message)
End Try
'-----------------------------------------------
thanks & regards
Dhananjay Honrao
Last edited: