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 Jun 10, 2020 4:17 pm

Hi, I'm getting an exception:

System.ArgumentException: String cannot be of zero length.
Parameter name: oldValue
at System.String.ReplaceInternal(String oldValue, String newValue)
at System.String.Replace(String oldValue, String newValue)
at spr⤝.ᜒ(String A_0)
at spr⤝.ᜀ(String A_0, XmlSchema A_1)
at Spire.Doc.Document.ᜈ(Stream A_0)
at Spire.Doc.Document.ᜁ(Stream A_0, XHTMLValidationType A_1)
at Spire.Doc.Document.LoadFromStream(Stream stream, FileFormat fileFormat, XHTMLValidationType validationType)
at Spire.Doc.Document.ᜁ(String A_0, FileFormat A_1)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)
at Spire.Doc.Document..ctor(String fileName, FileFormat type)
at SpireTestCases.UnitTest1.HTMLToDOCTest() in \SpireTestCases\UnitTest1.cs:line 171


The code is simply:
Code: Select all
       
        public void HTMLToDOCTest()
        {
            string strFileName = "./Email.html";

            try
            {
                Spire.Doc.Document doc = new Document(strFileName, FileFormat.Html);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }


I have attached a copy of Email.html to help with your debugging.

Many thanks in advance,

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Thu Jun 11, 2020 2:00 am

Hello,

Thanks for your inquiry.
I have reproduced your issue and logged it into our bug tracking system with the ticket SPIREDOC-4624 for further investigation. Once there is any progress, we will inform you.
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

Mon Jun 29, 2020 10:29 am

Rachel,

A quick check-in on SPIREDOC-4624, any progress/new.

Darren.

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Tue Jun 30, 2020 1:30 am

Hi Darren,

Thanks for your following up.
I just checked the status of this issue and found it has been resolved. Now our Test team is testing other cases, once the hotfix is available, we will inform you ASAP.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Fri Jul 10, 2020 6:10 am

Rachel,

Just checking in on this one - Was it by any chance fixed in hotfix 5.7.0?

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Fri Jul 10, 2020 6:58 am

Hi Darren,

Thanks for your post.
Sorry to tell you that the fix for this issue is not included in the Spire.Office v5.7.0. It will be included in the next version. We will keep you informed once the hotfix is available.

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Tue Jul 14, 2020 6:19 am

Hi Darren,

Thanks for your patient waiting.
Glad to tell you that we just released Spire.Office Platinum(Hotfix) Version:5.7.3 which contains the fix for this issue, welcome to download it from the following links.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Office/5.7.3

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Wed Jul 15, 2020 1:24 pm

Thanks for your help with this issue. I can confirm that it is resolved by 5.7.3.

Darren

wraydc
 
Posts: 130
Joined: Wed Apr 11, 2018 5:14 am

Thu Jul 16, 2020 1:21 am

Hi Darren,

Thanks for your feedback.
Feel free to contact us if you need further assistance. Wish you all the best!

Sincerely,
Rachel
E-iceblue support team
User avatar

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

Return to Spire.Doc