Click here to Skip to main content
15,074,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi .,

I am using this code for converting word document to pdf. this code works in local system but it is not working in server windows server 2008 .
Can anyone help on this ?

Dim abcDoc As WebSupergoo.ABCpdf7.Doc = Nothing

Try
abcDoc = New WebSupergoo.ABCpdf7.Doc()

Dim xro As New WebSupergoo.ABCpdf7.XReadOptions()
xro.FileExtension = fileExt

Try
abcDoc.Read(inputFile, xro)
Catch ex As Exception
System.Diagnostics.Trace.Write(ex.ToString())
Throw ex
End Try

Dim fileBytes As Byte() = abcDoc.GetData()
Return fileBytes
Finally
If Not abcDoc Is Nothing Then
abcDoc.Clear()
abcDoc.Dispose()
End If
End Try
Posted

1 solution

What does 'does not work' mean ? It looks like you're using a third party component ( as you would need to ). Is it installed/licensed on the server ? If it is, then there's nothing else we could possibly guess without seeing the error message, to help you.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900