Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Nov 21, 2012 4:42 pm

Hi

I downloaded and installed Spire.Doc for .Net in the assumption that word2pdf conversion would be out-of-the-box available.
In my project in VS2010 I have referenced to Spire.Doc.dll and Spire.License.dll and copied sample code from the site into the project:
"
Imports System
Imports Spire.Doc
Imports Spire.Doc.Documents

Namespace Doc2Pdf
Friend Class toPDF
Shared Sub Main(ByVal args() As String)
'Load Document
Dim document As New Document()
document.LoadFromFile("E:\work\documents\TestSample.docx")

'Convert Word to PDF
document.SaveToFile("toPDF.PDF", FileFormat.PDF)

'Launch Document
System.Diagnostics.Process.Start("toPDF.PDF")
End Sub
End Class
End Namespace
"

However, VS Intellisense tells me PDF is not a member of Spire.Doc.FileFormat.

Do I need to include more dll?

KR

Henk Jelt Hoving

henkjelt
 
Posts: 3
Joined: Wed Nov 21, 2012 1:57 pm

Thu Nov 22, 2012 6:45 am

Hi Henk Jelt,

Thanks for your inquiry.
You need also Spire.Pdf.dll to be included. If you downloaded Spire.Doc Pack Version:4.5.16 from the link http://www.e-iceblue.com/Download/download-word-for-net-now.html, you will find spire.doc.dll(v4.5.16.3040), spire.license.dll(v1.3.2.40) and spire.pdf.dll (v2.6.21.3040) in bin/.net4.0. Please add them into your project. If you still have the problem, or you encounter others problems, please don't hesitate to contact us.


Best regards,
Amy
E-iceblue support
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Nov 26, 2012 11:57 am

Hi Amy

Thanks.
I downloaded the other Pack: Spire.Doc Standard Edition for .NET Version:4.5
This one does not contain the required dll.
I'll install and use the other one.

KR

Henk Jelt

henkjelt
 
Posts: 3
Joined: Wed Nov 21, 2012 1:57 pm

Tue Nov 27, 2012 3:13 am

Hi Henk Jelt,

Thanks for your feedback.
Spire.Doc Standard Edition for .NET Version:4.5 don't support doc to pdf convertion. Please download Spire.Doc Pack Version:4.5.21 or 4.5.16 Spire.Doc Pack (Hot Fix) Version:4.5.21.

Best regards,
Amy
E-iceblue support
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc