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.

Wed Mar 27, 2019 4:08 am

In some word documents the conversion freezes for a period then it gives below error. It happens mostly in framed documents and table containing documents.

Code: Select all
Line 271:                                    document.LoadFromFile(DocFile);
Line 272:                                    string temppd = HttpContext.Current.Server.MapPath(string.Format(@"~/Documents/{0}.pdf", Guid.NewGuid().ToString()));
Line 273:                                    document.SaveToFile(temppd, Spire.Doc.FileFormat.PDF);
Line 274:                                    document.Close();




System.Runtime.InteropServices.ExternalException: 'A generic error occurred in GDI+.'

System.Runtime.InteropServices.ExternalException
HResult=0x80004005
Message=A generic error occurred in GDI+.
Source=Spire.Doc
StackTrace:
at spr5584.0(String A_0, Font A_1, StringFormat A_2)
at spr5584.1(String A_0, Font A_1, StringFormat A_2)
at spr5584.0(TextRange A_0, spr5354 A_1, StringFormat A_2, String& A_3)
at spr5584.0(TextRange A_0, spr5354 A_1, String& A_2)
at spr5584.0(TextRange A_0, spr5354 A_1, String A_2)
at Spire.Doc.Fields.TextRange.Spire.Doc.Layout.IStringWidget.Draw(spr5584 dc, spr5354 ltWidget, String text)
at Spire.Doc.Fields.TextRange.Spire.Doc.Layout.IDocumentBase.Draw(spr5584 dc, spr5354 ltWidget)
at spr5354.1(spr5584 A_0)
at spr5354.1(spr5584 A_0)
at spr5354.1(spr5584 A_0)
at spr5354.1(spr5584 A_0)
at spr5354.1(spr5584 A_0)
at spr13072.2(spr5584 A_0)
at spr6400.0(Int32 A_0, Int32 A_1, ImageType A_2, MemoryStream A_3, Boolean A_4, Boolean A_5, Boolean A_6)
at spr7293.0(spr6400 A_0)
at spr7293.0(Document A_0)
at Spire.Doc.Document.3(String A_0)
at Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)
at SpireDoc.ExportPO(Int32 FormID, Int32 FormType, Boolean NoTurn) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Helper\SpireDoc.cs:line 273
at MailOps.FormSent4Close(Int32 FormID, Int32 xFormType, String ActionType) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Helper\MailOps.cs:line 160
at PO_Form.BtnSend2SmartClose_Click(Object sender, EventArgs e) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Pages\PO_Form.aspx.cs:line 1101



Thanks in advance
Taner

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Wed Mar 27, 2019 7:21 am

Hello,

Thank you for contacting.
I prefer to recommend you to download the latest Spire.Office Version:4.3.1 to try again. If the issue still occurs, please provide your testing Word documents to help us do further investigations. You could send them to us via email (support@e-iceblue.com). Besides, could you please let us know what is your testing environment? Did you deploy the application on Azure?

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1049
Joined: Wed Apr 25, 2018 3:20 am

Wed Mar 27, 2019 9:26 am

Hi, I don't have a licence to get the new version. My licence has expired. It is not a solution for me.

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Wed Mar 27, 2019 10:08 am

Hello,

Thanks for your quick response.
Yes, we checked our records and found your current license subscription was expired on 2018/5/23. Our Spire.Office versions released before this date are available for your license. Hence, please try with (spire.office 3.4.2) which is the latest version before the expired date. If your issue still exists in this version, we suggest you test with the latest version Spire.Office Version:4.3.1 to check if it could resolve your issue. Look forward to your testing result.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1049
Joined: Wed Apr 25, 2018 3:20 am

Wed Mar 27, 2019 10:43 am

I've below message with spire.office_3.4.2. I'll test it with the current version and get back to you.



System.Runtime.InteropServices.ExternalException
HResult=0x80004005
Message=A generic error occurred in GDI+.
Source=Spire.Doc
StackTrace:
at spr4586.0(String A_0, Font A_1, StringFormat A_2)
at spr4586.1(String A_0, Font A_1, StringFormat A_2)
at spr4586.0(TextRange A_0, spr4385 A_1, StringFormat A_2, String& A_3)
at spr4586.0(TextRange A_0, spr4385 A_1, String& A_2)
at spr4586.0(TextRange A_0, spr4385 A_1, String A_2)
at Spire.Doc.Fields.TextRange.Spire.Doc.Layout.IStringWidget.Draw(spr4586 dc, spr4385 ltWidget, String text)
at Spire.Doc.Fields.TextRange.Spire.Doc.Layout.IDocumentBase.Draw(spr4586 dc, spr4385 ltWidget)
at spr4385.1(spr4586 A_0)
at spr4385.1(spr4586 A_0)
at spr4385.1(spr4586 A_0)
at spr4385.1(spr4586 A_0)
at spr4385.1(spr4586 A_0)
at spr10737.2(spr4586 A_0)
at spr5261.0(Int32 A_0, Int32 A_1, ImageType A_2, MemoryStream A_3, Boolean A_4, Boolean A_5, Boolean A_6)
at spr5982.0(spr5261 A_0)
at spr5982.0(Document A_0)
at Spire.Doc.Document.3(String A_0)
at Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)
at SpireDoc.ExportPO(Int32 FormID, Int32 FormType, Boolean NoTurn) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Helper\SpireDoc.cs:line 273
at MailOps.FormSent4Close(Int32 FormID, Int32 xFormType, String ActionType) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Helper\MailOps.cs:line 160
at PO_Form.BtnSend2SmartClose_Click(Object sender, EventArgs e) in C:\Users\TOZU\source\Workspaces\NovoPO\NovoPO\Pages\PO_Form.aspx.cs:line 1101

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Wed Mar 27, 2019 11:46 am

Dear Lisa,

I've tested it with the latest version Spire.Office Version:4.3.1 and It didn't respond for a long time. I'm still waiting for response from the code (about 20 minutes).


Lisa.Li wrote:Hello,

Thanks for your quick response.
Yes, we checked our records and found your current license subscription was expired on 2018/5/23. Our Spire.Office versions released before this date are available for your license. Hence, please try with (spire.office 3.4.2) which is the latest version before the expired date. If your issue still exists in this version, we suggest you test with the latest version Spire.Office Version:4.3.1 to check if it could resolve your issue. Look forward to your testing result.

Sincerely,
Lisa
E-iceblue support team

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Thu Mar 28, 2019 2:18 am

Hello,

Sorry to hear that! As for your situation, please provide your testing Word document to help us do the further investigation. You could send it to email (lisa.li@e-iceblue.com). And don’t worry, we promise to keep you file confidential and we will never use it for other purpose. Thanks in advance.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1049
Joined: Wed Apr 25, 2018 3:20 am

Thu Mar 28, 2019 4:58 am

Dear Lisa,

I sent it.
Kind regards
Taner

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Thu Mar 28, 2019 8:53 am

Hello Taner,

Thank you for sharing files.
After testing with the latest Spire.Office Version:4.3.1, I did notice that the application doesn’t respond for a long time when converting “1424...docx” and “1443...docx”. The file “555...docx” could be converted successfully in a short time, but the generated PDF has problems with the content format. I will report these issues to our Dev team for further investigating and fixing. If there is any update, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1049
Joined: Wed Apr 25, 2018 3:20 am

Sun Jun 16, 2019 6:14 am

Lisa.Li wrote:Hello Taner,

Thank you for sharing files.
After testing with the latest Spire.Office Version:4.3.1, I did notice that the application doesn’t respond for a long time when converting “1424...docx” and “1443...docx”. The file “555...docx” could be converted successfully in a short time, but the generated PDF has problems with the content format. I will report these issues to our Dev team for further investigating and fixing. If there is any update, we will let you know. Sorry for the inconvenience caused.

Sincerely,
Lisa
E-iceblue support team



Dear Lisa,

Any update on this issue?


Regards,
Taner

tanero
 
Posts: 6
Joined: Thu Nov 16, 2017 5:16 am

Mon Jun 17, 2019 8:01 am

Hello Taner,

Thank you for following up.
I am sorry to tell that there is no significant progress so far due to the complexity of the case. But our Dev team has given the highest priority to this issue and would keep looking into it. Once there is any good news, we will let you know immediately. Thanks for your understanding.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1049
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc