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 Jan 17, 2018 4:17 pm

Good evening,
we have a commercial license for Spire.Doc for .NET and we have experienced some issues.
We have a problem with tables for which we define multiple header rows. For example in the original .docx file (created by Word) we have a table with three rows we want to set as header:
1) We have a style for the table
2) We have some format choices (background color, text color) applied "manually" to second and third rows, because otherwise Word would apply the format, defined for the first Row in the style for the table, to the first row only.

The header of the table is converted fine to pdf unless we set the options that the first three rows must be repeated at the beginning of each page. In this case it seems like that Spire only applies the table Style and discards the "manual" format for the second and third rows.
Please find attached the source .docx file and the resulting .pdf file. The issue is shown in page 2, in the second and third tables (not counting the one which contains only the text ##INIZIO_VALUTAZIONI##).

You can find below the very simple code we use:

Spire.Doc.Document doc = new Spire.Doc.Document();
string fullpath = Path.Combine(HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["PATHFILETEMPLATE"].ToString()), "default", "Template_DVR_Allegato6_step5.docx");
doc.LoadFromFile(fullpath);
doc.SaveToFile(fullpath.Replace(".docx", ".pdf"), Spire.Doc.FileFormat.PDF);


Basically to show you the problem, we just open an existing docx file and then save IT as PDF.
Thanks in advance for your support.
Matteo Bruzzese

igeam_ssi
 
Posts: 6
Joined: Mon Oct 23, 2017 10:55 am

Thu Jan 18, 2018 6:22 am

Hello,

Thanks for your feedback. I get a 'System.DivideByZeroException' while converting your source file. Please tell us which version of Spire.Doc you are using, OS information and Region Language setting of your machine. In addition, please check if you shared the wrong file.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Jan 18, 2018 5:01 pm

Hallo,
thanks for your prompt reply.
Here's the requested information:

Spire.Doc v4.0.30319
OS: tested on Windows 10 Pro and Windows Server 2012 R2
Region Language: Italy

I checked the attached file and it seems to be the right version. Anyway please find attached a different copy of the file.
Best regards,
Matteo.

igeam_ssi
 
Posts: 6
Joined: Mon Oct 23, 2017 10:55 am

Fri Jan 19, 2018 2:25 am

Hello,

Thanks for your sharing. I have reproduced the issue with your reattached file and posted it to our DEV team. If there is any update, we will let you know. We apologize for the inconvenience.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Jan 19, 2018 11:08 am

Hi,
Thanks for your reply.
Please let us know as soon as you've some feedback or fix. It's an important issue for us.

In general terms, how can we check if updated versions of Spire.Doc are available?

Best regards.

igeam_ssi
 
Posts: 6
Joined: Mon Oct 23, 2017 10:55 am

Mon Jan 22, 2018 1:43 am

Hello,

Thanks for your reply.
Sure, we will resolve your issue as soon as we can. Once the new version is available, we will inform you here on the forum.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Feb 07, 2018 8:05 am

Hi,

Glad to inform that your issue has been resolved in the hotfix(Spire.Doc Pack(hot fix) Version:6.2.0).

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Fri Feb 09, 2018 7:25 am

Hello,

Greeting from E-iceblue.
Has the hotfix resolved your issue?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Mon Feb 19, 2018 9:58 am

Hello,
we've installed the hotfix and the issue has been resolved.
Thanks for your support.

Best regards,
Matteo.

igeam_ssi
 
Posts: 6
Joined: Mon Oct 23, 2017 10:55 am

Tue Feb 20, 2018 1:22 am

Hello Matteo,

Thanks for your feedback. Welcome to write to us, if any question.

Best regards,
Simon
E-icelbue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.Doc