billroper: (Default)
[personal profile] billroper
Back from Marcon and back to work.

So before I left, I was having a deep and abiding problem getting Microsoft's Open XML toolkit to work with a MemoryStream, because the MemoryStream couldn't be resized, nor could I find a way to get the resulting changes to the document written out to a disk file. This was after reading every bit of documentation I could find.

Today, it seems that my Google-fu turned back on, because I found the sample code that:

  • Explained how you could get a resizeable MemoryStream by creating an empty one and then copying the byte array of data into it.
  • Showed how you could call MemoryStream.WriteTo to send the resulting document to a FileStream.

    *thud* *thud* *thud*

    This should not have been this hard to find.
  • Date: 2015-05-13 04:40 pm (UTC)
    ext_12246: (it figures)
    From: [identity profile] thnidu.livejournal.com
    Microsoft. What do you expect?
    Edited Date: 2015-05-13 04:41 pm (UTC)

    Profile

    billroper: (Default)
    billroper

    May 2026

    S M T W T F S
          1 2
    3 4 5 6 7 8 9
    10 11 12 13 14 15 16
    17 18 19 20 21 2223
    24252627282930
    31      

    Most Popular Tags

    Style Credit

    Expand Cut Tags

    No cut tags
    Page generated May. 23rd, 2026 12:48 pm
    Powered by Dreamwidth Studios