'Spire.Doc.FileFormat' does not contain a definition for pdf

Technical support for Spire.Doc

Moderator: iceblue support

'Spire.Doc.FileFormat' does not contain a definition for pdf

Postby harvinder.dhami@gmail.com » 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

Re: 'Spire.Doc.FileFormat' does not contain a definition for

Postby amy.zhao » 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: 2263
Joined: Wed Jun 27, 2012 8:50 am

Re: 'Spire.Doc.FileFormat' does not contain a definition for

Postby amy.zhao » 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: 2263
Joined: Wed Jun 27, 2012 8:50 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests