Coder Social home page Coder Social logo

Comments (6)

mrworkman avatar mrworkman commented on June 27, 2024

A PR sounds like a good idea. Let's refrain from using actual integer values though. Can you set it up with an enum with sensible names?

from linqtoexcel.

tomchandler182 avatar tomchandler182 commented on June 27, 2024

Is there any progress on this?

from linqtoexcel.

JohnHopstaken avatar JohnHopstaken commented on June 27, 2024

Hi Tom,

I will send the PR this week. I kinda forgot about this issue, but I will take it up this week.
Sorry for the delay.

from linqtoexcel.

JohnHopstaken avatar JohnHopstaken commented on June 27, 2024

It turned I could only reproduce this problem in the Excel file mentioned above.
When I implemented the option and created integration tests with a newly created test Excel file, both the "formatted value" and "raw value" options returned the unformatted values. 🤔
I don't know why the problem in my original Excel files was solved when I used the IMEX=2 option.
Therefore, as my tests were unfortunately unable to prove the expected difference between IMEX=1 and IMEX=2, there is no point in sending a PR with my changes. 😕

from linqtoexcel.

tomchandler182 avatar tomchandler182 commented on June 27, 2024

Hi John, i think this issue is also affected by the data types in first 8 rows of the excel. if the first 8 as string, the Engine sets the whole column for the sheet as strings so all values are returned as formatted values. If there is a mix of data types then the column is set as a mixed type and therefore depending on the imex used, either a formatted or unformatted value is returned.

https://stackoverflow.com/questions/50013333/reading-excel-with-oledb-not-displaying-correct-values

from linqtoexcel.

JohnHopstaken avatar JohnHopstaken commented on June 27, 2024

Hi Tom,

I think you could be right. But in the mentioned Excel sheet I had either the formatted value or the unformatted value depending on the IMEX setting. It was consistent.
I don't understand why things behave differently in my newly created test Excel sheet. Even if I use mixed input in a given column.
As said, because I cannot get things to work as envisioned I will leave things as they are.

from linqtoexcel.

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.