C1Editor 8.0.20333.643

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

    • Post Options:
    • Link

    Posted 20 March 2024, 10: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 21 March 2024, 8:00 am 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.

  • Posted 2 July 2024, 12:20 am EST

    Hello Murat,

    The LoadDocument method is now deprecated; please use the LoadDocumentAsync() method to load documents, as mentioned in the last response.

    If you require any further assistance or have any questions, please do not hesitate to reach out to us.

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels