Giter Site home page Giter Site logo

Font Records about excellibrary HOT 4 CLOSED

oghenez avatar oghenez commented on June 17, 2024
Font Records

from excellibrary.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
SimpleTest.WriteLongTextTest() is failing at r35

Original comment by jetcat on 24 Feb 2009 at 12:58

from excellibrary.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
SimpleTest.WriteLongTextTest() passed on my machine.

Original comment by China.LiuJunFeng on 24 Feb 2009 at 3:01

  • Changed state: Done

from excellibrary.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
I am getting the following error:

TestCase 'ExcelLibrary.Test.SimpleTest.WriteLongTextTest'
failed: System.Exception : invalid size of rich text formatting information
    C:\excellibrary\trunk\src\ExcelLibrary\Office\Excel\BinaryFileFormat\Decode\StringDecoder.cs(176,0): at ExcelLibrary.BinaryFileFormat.StringDecoder.ReadString(Int32 lengthbits, RichTextFormat& rtf)
    C:\excellibrary\trunk\src\ExcelLibrary\Office\Excel\BinaryFileFormat\Extended\SST.cs(24,0): at ExcelLibrary.BinaryFileFormat.SST.Decode()
    C:\excellibrary\trunk\src\ExcelLibrary\Office\Excel\BinaryFileFormat\Decode\WorkbookDecoder.cs(85,0): at ExcelLibrary.BinaryFileFormat.WorkbookDecoder.DecodeRecords(List`1 records, SharedResource& sharedResource)
    C:\excellibrary\trunk\src\ExcelLibrary\Office\Excel\BinaryFileFormat\Decode\WorkbookDecoder.cs(19,0): at ExcelLibrary.BinaryFileFormat.WorkbookDecoder.Decode(Stream stream)
    C:\excellibrary\trunk\src\ExcelLibrary\Office\Excel\SpreadSheet\Workbook.cs(29,0):
at ExcelLibrary.SpreadSheet.Workbook.Open(String file)
    C:\excellibrary\trunk\src\ExcelLibrary.Test\SimpleTest.cs(86,0): at
ExcelLibrary.Test.SimpleTest.WriteLongTextTest()

===

It appears that when decoding string that is longer than 2000 character, then
StringDecoder throws exception (line 174)

Original comment by jetcat on 26 Feb 2009 at 12:40

from excellibrary.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 17, 2024
Yes, the following debug purpose code can be removed.
if (stringlength > 2000 || firstpart.Length > 2000 || size > 2000)
{
     throw new Exception("invalid size of rich text formatting information");
}

Original comment by China.LiuJunFeng on 26 Feb 2009 at 2:34

from excellibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.