in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Corrupted file when saving to a MemoryStream

Last post 02-13-2008 12:58 PM by C1_GaryB. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 01-24-2008 10:22 AM

    • iamzek
    • Not Ranked
    • Joined on 01-24-2008
    • Posts 4

    Corrupted file when saving to a MemoryStream

    Hello,

     I'm building an Excel Workbook from scratch using C1.C1Excel build 2.1.20071.63

    When saving to a file, my document is well formatted (colors ok, fonts ok, content ok).

    When saving to a Memorystream, it gets corrupted (strange characters, values gane, formatting gone).

    I need to send the file using email. I don't want to write it to a temporary file (though it works fine) because the application is a windows service that runs on a server.

    What am I doing wrong ?

  • 01-28-2008 5:58 AM In reply to

    • iamzek
    • Not Ranked
    • Joined on 01-24-2008
    • Posts 4

    Re: Corrupted file when saving to a MemoryStream

    Same problem with latest build 2.1.20073.74...

    Any idea ? 

  • 02-04-2008 7:43 AM In reply to

    • iamzek
    • Not Ranked
    • Joined on 01-24-2008
    • Posts 4

    Re: Corrupted file when saving to a MemoryStream

     Problem still not resolved...

     Anyone ?

     

  • 02-11-2008 9:34 AM In reply to

    • iamzek
    • Not Ranked
    • Joined on 01-24-2008
    • Posts 4

    Re: Corrupted file when saving to a MemoryStream

    No answer from technical support.

    Should I buy yet another third party component ?

    Any help from users ? Please...

  • 02-13-2008 12:58 PM In reply to

    Re: Corrupted file when saving to a MemoryStream

    Hi,
     
    Sorry for the late response.
     
    I have created an application which creates a MemoryStream and uses it to save an excel file using C1Excel. The C1Excel controls reads an excel file (which has a preformatted data with formula's, colors etc). Now I have used this memory stream to load the file to another excel and read it - everything works fine.
     
    I have attached the application with the mail. Please let me know if I am missing out anything.
     
    Thanks,
    Gary.
    <iamzek> wrote in message news:201320@10.0.1.98...

    Hello,

     I'm building an Excel Workbook from scratch using C1.C1Excel build 2.1.20071.63

    When saving to a file, my document is well formatted (colors ok, fonts ok, content ok).

    When saving to a Memorystream, it gets corrupted (strange characters, values gane, formatting gone).

    I need to send the file using email. I don't want to write it to a temporary file (though it works fine) because the application is a windows service that runs on a server.

    What am I doing wrong ?



    http://helpcentral.componentone.com/cs/forums/p/74108/201320.aspx#201320

Page 1 of 1 (5 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.