GithubHelp home page GithubHelp logo

Comments (4)

gustavnavar avatar gustavnavar commented on July 20, 2024

I've tried to reproduce this error with a column value "zSF�91EE09�921+/yC17ohC" and everything is working fine.

Are you using WASM or Blazor Server?

Could you send me a project with a grid producing this error?

from grid.blazor.

RedSoxXx avatar RedSoxXx commented on July 20, 2024

@gustavnavar Blazor Server, please try with \ u001d unicode symbol, reproduced only if this unicode simbol in string, if you will not able to reproduce, I will create small project with example

from grid.blazor.

gustavnavar avatar gustavnavar commented on July 20, 2024

I could reproduce it inserting \u001d unicode character in a text field of the database.

I get this exception:

Unhandled exception rendering component: '�', hexadecimal value 0x1D, is an invalid character.
      System.ArgumentException: '�', hexadecimal value 0x1D, is an invalid character.
         at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
         at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
         at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
         at System.Xml.XmlWellFormedWriter.WriteString(String text)
         at DocumentFormat.OpenXml.OpenXmlLeafTextElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
         at DocumentFormat.OpenXml.OpenXmlPartRootElement.WriteTo(XmlWriter xmlWriter)
         at DocumentFormat.OpenXml.OpenXmlPartRootElement.Save(Stream stream)
         at DocumentFormat.OpenXml.OpenXmlPartRootElement.SaveToPart(OpenXmlPart openXmlPart)
         at DocumentFormat.OpenXml.OpenXmlPartRootElement.Save()
         at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.TrySavePartContent(OpenXmlPart part)
         at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.SavePartContents(Boolean save)
         at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose(Boolean disposing)
         at DocumentFormat.OpenXml.Packaging.OpenXmlPackage.Dispose()
         at GridBlazor.ExcelWriter.GenerateExcel(ExcelData data) in C:\Users\GustauNavarro\source\repos\Grid.Blazor\GridBlazor\ExcelWriter.cs:line 201
         at GridBlazor.ExcelWriter.GenerateExcel[T](IGridColumnCollection`1 columns, IEnumerable`1 items) in C:\Users\GustauNavarro\source\repos\Grid.Blazor\GridBlazor\ExcelWriter.cs:line 168

from grid.blazor.

gustavnavar avatar gustavnavar commented on July 20, 2024

Package 5.0.12 cleans all excel cell content (remove all XML invalid characters) before export is done.

from grid.blazor.

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.