Git Product home page Git Product logo

Comments (5)

tonyqus avatar tonyqus commented on June 19, 2024

Please provide the xlsx file.

from npoi.

weifan999 avatar weifan999 commented on June 19, 2024

here are the file
合约台账 - 副本.xlsx

from npoi.

tonyqus avatar tonyqus commented on June 19, 2024

In styles.xml, there are two tableStyle with same name 'TableStylePreset3_Accent1'. There is nothing wrong with NPOI exception. Please double check your file.

	<tableStyles count="3" defaultTableStyle="TableStylePreset3_Accent1" defaultPivotStyle="PivotStylePreset2_Accent1">
		<tableStyle name="TableStylePreset3_Accent1" pivot="0" count="7" xr9:uid="{59DB682C-5494-4EDE-A608-00C9E5F0F923}">
			<tableStyleElement type="wholeTable" dxfId="6"/>
			<tableStyleElement type="headerRow" dxfId="5"/>
			<tableStyleElement type="totalRow" dxfId="4"/>
			<tableStyleElement type="firstColumn" dxfId="3"/>
			<tableStyleElement type="lastColumn" dxfId="2"/>
			<tableStyleElement type="firstRowStripe" dxfId="1"/>
			<tableStyleElement type="firstColumnStripe" dxfId="0"/>
		</tableStyle>
		<tableStyle name="TableStylePreset3_Accent1" pivot="0" table="0" count="7" xr9:uid="{709FE4E6-EA37-494D-900A-CBBD63CA84A4}">
			<tableStyleElement type="wholeTable" dxfId="6"/>
			<tableStyleElement type="headerRow" dxfId="5"/>
			<tableStyleElement type="totalRow" dxfId="4"/>
			<tableStyleElement type="firstColumn" dxfId="3"/>
			<tableStyleElement type="lastColumn" dxfId="2"/>
			<tableStyleElement type="firstRowStripe" dxfId="1"/>
			<tableStyleElement type="firstColumnStripe" dxfId="0"/>
		</tableStyle>
		<tableStyle name="PivotStylePreset2_Accent1" table="0" count="10" xr9:uid="{267968C8-6FFD-4C36-ACC1-9EA1FD1885CA}">
			<tableStyleElement type="headerRow" dxfId="22"/>
			<tableStyleElement type="totalRow" dxfId="21"/>
			<tableStyleElement type="firstRowStripe" dxfId="20"/>
			<tableStyleElement type="firstColumnStripe" dxfId="19"/>
			<tableStyleElement type="firstSubtotalRow" dxfId="18"/>
			<tableStyleElement type="secondSubtotalRow" dxfId="17"/>
			<tableStyleElement type="firstRowSubheading" dxfId="16"/>
			<tableStyleElement type="secondRowSubheading" dxfId="15"/>
			<tableStyleElement type="pageFieldLabels" dxfId="14"/>
			<tableStyleElement type="pageFieldValues" dxfId="13"/>
		</tableStyle>
	</tableStyles>

from npoi.

weifan999 avatar weifan999 commented on June 19, 2024

I modified the style.xml of the file, and the code runs normally. However, when I open the xlsx file, nothing is done. After clicking Save, this error will appear again when executing NPOI.

from npoi.

weifan999 avatar weifan999 commented on June 19, 2024

It's very strange, so I mentioned it at the beginning, to open a worksheet, do nothing, just click save, and then close. An error will be reported when executing npoi code

from npoi.

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.