Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Tue Mar 26, 2013 12:46 pm

Hello,

I am currently evaluating this product for Word to Pdf conversion. I have take source from this website itself but my program does not build and error is Error 1 'Spire.Doc.FileFormat' does not contain a definition for 'PDF' C:\TestProjects\RainbowPDFConverter\RainbowPDFConverter\Program.cs 22 57 RainbowPDFConverter

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spire.Doc;
using Spire.Doc.Documents;


namespace RainbowPDFConverter
{
class Program
{
static void Main(string[] args)
{

Document document = new Document();


document.LoadFromFile(@"E:\work\documents\TestSample.docx");


document.SaveToFile("toPDF.PDF", FileFormat.PDF);


//Launch Document
System.Diagnostics.Process.Start("toPDF.PDF");


}
}
}

harvinder.dhami@gmail.com
 
Posts: 1
Joined: Mon Mar 25, 2013 6:40 pm

Wed Mar 27, 2013 2:54 am

Hello,

Thanks for your inquiry.
We think this error you met is caused by the edition of Spire.Doc you used is a standard edition.
Please kindly note that Standard Edition doesn't support Word to Pdf conversion. Pro Edition and Pack Edition can support Word to Pdf conversion. Please download and test Spire.Doc Pack Version:4.7(http://www.e-iceblue.com/Download/download-word-for-net-now.html).

If you have any other issue, please feel free to contact us.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Thu Mar 28, 2013 10:03 am

Hello,

Did you test Spire.Doc Pack Version:4.7? Has your issue been solved?
If you have any issues, please feel free to contact us.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Return to Spire.Doc

cron