Spire.Doc

Technical support for Spire.Doc

Moderator: iceblue support

Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 5:57 am

I want to convert word to pdf. i download the trial version of Spire.Doc but it seems not ful fil my requirement. I don't find the code to convert to pdf even in demo also. Please suggest.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:08 am

i need the dll of trial verssion.If it fulfil our requirement then we redy to buy.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:11 am

We just want to see the demo to convert PDF from word. but we are not able to find the demo or code
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby Gary.zhang » Wed Jul 31, 2013 6:17 am

Hello,
Thanks for your inquiry.

Our Spire.Doc Pro Edition could fulfil our requirement, which supports converting files from Word to PDF. Please download it from http://www.e-iceblue.com/Download/download-word-for-net-now/spiredoc-pack4-9-6.html and test the following code.
Code: Select all
Document doc = new Document();
doc.LoadFromFile(string fileName);
doc.SaveToFile(string fileName,FileFormat.PDF);


Sincerely,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:22 am

i am not able to find the dll, which i will add and use your code in my application.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:24 am

i have already downloaded the same you suggested above still not getting success
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:49 am

This code corrupts my word file
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:49 am

Corrupts word file and not convert to pdf
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 6:55 am

I use the below code it

string fileName = Server.MapPath("images/DiptiRanjan.docx");
Document doc = new Document();
doc.LoadFromFile(fileName);
doc.SaveToFile(fileName, FileFormat.PDF);

first time it executes without resulting nothing.2nd time it gives an exception on(doc.LoadFromFile(fileName);) line saying below line.
Zip exception.Can't locate end of central directory record. Possible wrong file format or archive is corrupt.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby Gary.zhang » Wed Jul 31, 2013 6:55 am

Hello,

Since you install it, you can find the dll in the following path,
C:/program file/e-iceblue/Spire.Doc/Bin.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: Spire.Doc

Postby Gary.zhang » Wed Jul 31, 2013 7:00 am

diptiranjan.s wrote:I use the below code it

string fileName = Server.MapPath("images/DiptiRanjan.docx");
Document doc = new Document();
doc.LoadFromFile(fileName);
doc.SaveToFile(fileName, FileFormat.PDF);

first time it executes without resulting nothing.2nd time it gives an exception on(doc.LoadFromFile(fileName);) line saying below line.
Zip exception.Can't locate end of central directory record. Possible wrong file format or archive is corrupt.


Could you please provide us your document so that we could reproduce the exception and work out the solution for you ASAP.

Thanks,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 7:12 am

how can i send ? here the extenssion "docx" is not allowed.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby Gary.zhang » Wed Jul 31, 2013 7:19 am

diptiranjan.s wrote:how can i send ? here the extenssion "docx" is not allowed.


Please firstly zip and attach it, and you also can send it to our email address(Support@e-iceblue.com).

Thanks,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: Spire.Doc

Postby diptiranjan.s » Wed Jul 31, 2013 7:21 am

Please find the attachment"DiptiRanjan.rar"
You do not have the required permissions to view the files attached to this post.
diptiranjan.s
 
Posts: 13
Joined: Wed Jul 31, 2013 5:24 am

Re: Spire.Doc

Postby Gary.zhang » Wed Jul 31, 2013 7:49 am

Hello,

Thanks for your document.

We have done the test and it could be converted to Pdf, please refer to the following code. I put the document in a folder called file under the project.
Code: Select all
 Document doc = new Document();
 doc.LoadFromFile(Server.MapPath("file/DiptiRanjan.docx"));
 doc.SaveToFile("DiptiRanjan.pdf", FileFormat.PDF, Response, HttpContentType.Attachment);


If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Next

Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests