Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Reading/writing to an excel file in .NET

Solved2.60K views13th April 2023.net C++ driver excel
4
Benjamin Hodžić [SLC] [DevOps Advocate]1.12K 4th April 2023 0 Comments

Hi Dojo,

I need to develop a connector which reads and writes to an excel file. I can't use Microsoft COM objects because the customer doesn't have Microsoft Office installed. I've tried multiple NuGet packages, but they need licenses to be used commercially.

Does anyone have a suggestion on how to approach this?

Benjamin Hodžić [SLC] [DevOps Advocate] Selected answer as best 13th April 2023

7 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Toon Casteele [SLC] [DevOps Enabler]7.00K Posted 4th April 2023 2 Comments

I'm not sure if this is the most straight forward solution, but an xlsx file is nothing more than a zip of different things.

Try to rename your existing xlsx file to a .zip and unzip it. Then check how the content is configured. Probably at some kind you will come across a more normal file (likely an xml) which you can write to with something like a StreamWriter, then rezip the archive and rename it to get it back to a valid xlsx.

Again, not sure if this is the easiest solution given the limitations you have, but it's one of the most basic ways.

Toon Casteele [SLC] [DevOps Enabler] Posted new comment 4th April 2023
Benjamin Hodžić [SLC] [DevOps Advocate] commented 4th April 2023

Thank you for the answer, Toon. I will probably not do this manually, as the solution mentioned by Pedro already manipulates the XML files which are extracted from the .xlsx file.

Toon Casteele [SLC] [DevOps Enabler] commented 4th April 2023

That’s why Pedro is the expert 😉

You are viewing 1 out of 7 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin