failed to convert word to SFDT, any help please ??

this is code:

   let ajax = new XMLHttpRequest();
    ajax.open('POST', 'https://localhost:62728/api/documenteditor/Import', true);
    ajax.setRequestHeader("Access-Control-Allow-Origin", "*")
    ajax.setRequestHeader("Access-Control-Allow-Methods", "GET,PUT,POST,DELETE,PATCH,OPTIONS")
    ajax.setRequestHeader("Access-Control-Allow-Credentials", "true")
    ajax.onreadystatechange = () => {
        if (ajax.readyState === 4) {
            if (ajax.status === 200 || ajax.status === 304) {
                // open SFDT text in document editor
                container.documenteditor.open(ajax.responseText);
            }
        }
    };
    let formData = new FormData();
    formData.append('files', res.data);
    ajax.send(formData);


this is error:

Failed to load resource: net::ERR_CONNECTION_REFUSED


6 Replies

SM Suriya Murugan Syncfusion Team October 20, 2022 04:18 AM UTC

Hi Mona,


We need some details regarding your reported issue.


Can you please share the details about your backend environment details and also , please share the backend services to check it in our side?


Regards,

Suriya M.



MO mona October 20, 2022 06:20 AM UTC

i used nodejs in backend and i use syncfusion in javascript



MO mona replied to Suriya Murugan October 20, 2022 08:41 AM UTC

why you late in replay ? 



SM Suriya Murugan Syncfusion Team October 21, 2022 03:31 AM UTC

Hi Mona,

Apologies!

You can deploy web APIs for server-side dependencies of Document Editor component in the following platforms.

Documenteditor doesn't have backend support in Nodejs.


https://ej2.syncfusion.com/documentation/document-editor/#supported-platforms-for-server-side-dependencies



Please let us know if you need any further assistance.




Regards,

Suriya M.





MO mona replied to Suriya Murugan October 21, 2022 05:23 AM UTC

if it for .net and java, how can i use it in react or javascript ??



SM Suriya Murugan Syncfusion Team October 27, 2022 09:54 AM UTC

Hi Mona,


Front end, you can use either Java or react.

Please find supported web platforms: https://ej2.syncfusion.com/documentation/document-editor/#supported-web-platforms


The following operations require server-side interaction

  • Open file formats other than SFDT
  • Paste with formatting
  • Restrict editing
  • Spellcheck
  • Save as file formats other than SFDT and DOCX

Note: If you don’t require the above functionalities then you can deploy as pure client-side component without any server-side interactions.


Supported server side platforms are ASP.NET Core, MVC and Java.


Please let us know if you need any further details.


Regards,

Suriya M.


Loader.
Up arrow icon