C1Editor 8.0.20333.643

Posted by: murat.yardimci on 20 March 2024, 1:19 am EST

  • Posted 20 March 2024, 1:19 am EST

    Hi,

    Can you tell me if it is now possible to load documents from a stream? The C1Editor’s “LoadDocument” method has an overload to be able to pass a stream. But unfortunately that doesn’t work. When I pass a stream it hangs in place. Do you have an example for me on how I can open a document based on a stream?

    Thank you.

    Murat

  • Posted 20 March 2024, 11:00 pm EST

    Hello Murat,

    Apologies for the inconvenience. We are able to observe the issue.

    We have raised your concern with the development team. Rest assured, as soon as we get any updates, we’ll inform you.

    [Internal tracking ID: C1WIN-31866]

    However, you can use the Editor’s LoadDocumentAsync() method to load the document using a stream as follows:

    c1Editor1.C1EditorReady += C1Editor1_C1EditorReady;
    
    private async void C1Editor1_C1EditorReady(object? sender, EventArgs e)
    {
        var ms = new MemoryStream(File.ReadAllBytes("tesla.html"));
        await c1Editor1.LoadDocumentAsync(ms, true);
    }

    Please refer to the attached sample for implementation. (see Editor_LoadDocument.zip)

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels