Code Monkey home page Code Monkey logo

Comments (7)

rstm-sf avatar rstm-sf commented on May 12, 2024 2

Thinking to add :)

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 12, 2024

Wasn't it added already in 0.3.0

from officeimo.

rstm-sf avatar rstm-sf commented on May 12, 2024

Oops didn't see it. Thank you. This issue is a little different, here is a request to use the passed stream

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 12, 2024

You're asking to add, or willing to add yourself ? :-)

from officeimo.

rstm-sf avatar rstm-sf commented on May 12, 2024

At the moment, the current issue rests on the fact that when cloning a document, the document itself is saved, despite the fact that AutoSave equal false dotnet/Open-XML-SDK#1139

* [Implement Save and Load to/from Stream #43](https://github.com/EvotecIT/OfficeIMO/pull/43)

By the way, this change suffers from the same problem

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 12, 2024

We actually fixed this in #16 as far as I remember. We had same issue, but so far the original document after load should not be changed?

from officeimo.

rstm-sf avatar rstm-sf commented on May 12, 2024

The problem remains with the document that is in memory, its state changes each time

wordDocument = WordprocessingDocument.Create(new MemoryStream(), documentType, autoSave);

or

var memoryStream = new MemoryStream();
word._fileStream.CopyTo(memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);
var wordDocument = WordprocessingDocument.Open(memoryStream, !readOnly, openSettings);

from officeimo.

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.