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 Jul 15, 2020 6:35 am

doc.saveToFile( **,FileFormat.DOCX)

com.spire.office.packages.sprGQD:Value was either too large or too small for an Int32....

majie123456
 
Posts: 6
Joined: Fri Jun 19, 2020 8:18 am

Wed Jul 15, 2020 7:29 am

Hello,

Thanks for your post.
To help us further investigate your issue, please provide your input file as well as your test environment information, such as OS information (E.g. Windows 7, 64 bit) and region setting (E.g. China, Chinese). You could send them to us(support@e-iceblue.com) via email. Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Jul 15, 2020 8:09 am

Code: Select all
Windows 7 Ultimate
JDK1.8
Free Spire.Office for Java (v3.1.1)


Code: Select all
Document doc=new Document();
doc.loadFormFile("1.docx");
doc.saveToFile("2.docx",FileFormat.Auto);


Code: Select all
Exception in thread "main" com.spire.office.packages.sprGQD: Value was either too large or too small for an Int32.
        at com.spire.office.packages.sprSYD.spr(lug:1089)
        ...

majie123456
 
Posts: 6
Joined: Fri Jun 19, 2020 8:18 am

Wed Jul 15, 2020 9:07 am

Hello,

Thanks for your more information.
I simulated a Word file and tested your scenario but didn't encounter any issue. To help us better investigate your issue, please share your test file "1.docx" with us. You could upload it here or send it to us(support@e-iceblue.com) via email. Thanks in advance.
Besides, I'd suggest you try our commercial version (the latest version is Spire.Office for Java Version:3.6.4) as it is more stable and contains more bug fixes.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Jul 15, 2020 9:16 am

Hello,
Thank you for your attention.
I have sent "1.docx" to the email,please check it.And if there is a problem in the document, please point it out.

majie123456
 
Posts: 6
Joined: Fri Jun 19, 2020 8:18 am

Wed Jul 15, 2020 9:40 am

Hello,

Thanks for providing your file via email.
I tested your case with Free Spire.Office for Java (v3.1.1) and Spire.Office for Java (v3.6.4) and indeed reproduced your issue. This issue has been logged in our bug tracking system with the ticket SPIREDOC-4810. Our Dev team will further investigate and fix it. If there is any update, we will let you know.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Fri Mar 19, 2021 9:43 am

Hello,

Hope you are doing well.
Glad to inform you that we just released Spire.Office for Java Version:4.3.0 which fixes the issue SPIREDOC-4810. Welcome to download it from the following links.
Website: https://www.e-iceblue.com/Download/office-for-java.html
Maven: http://repo.e-iceblue.com/nexus/content ... ice/4.3.0/

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Mar 23, 2021 9:44 am

Hello,

Greetings from E-iceblue!
Have you tested the hotfix? Could you please give us some feedback at your convenience?

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Doc