转换ms word文档pdf问题。 [英] Convert ms word document pdf issue.
问题描述
嗨。,
我使用此代码将word文档转换为pdf。此代码在本地系统中有效但在服务器Windows Server 2008中无效。
有人可以帮忙吗?
Dim abcDoc As WebSupergoo.ABCpdf7.Doc = Nothing
尝试
abcDoc =新的WebSupergoo.ABCpdf7.Doc()
Dim xro As New WebSupergoo.ABCpdf7.XReadOptions()
xro.FileExtension = fileExt
试试
abcDoc.Read(inputFile,xro)
Catch ex As Exception
System.Diagnostics.Trace.Write(ex.ToString())
抛出ex
结束尝试
Dim fileBytes As Byte()= abcDoc.GetData()
返回fileBytes
最后
如果不是abcDoc则没有那么
abcDoc.Clear()
abcDoc.Dispose()
结束如果
结束尝试
什么是不行是什么意思?看起来你正在使用第三方组件(正如你所需)。它是否在服务器上安装/许可?如果是,那么在没有看到错误消息的情况下,我们没有其他任何东西可以帮助你。
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
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.
这篇关于转换ms word文档pdf问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!