We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

ISSUE: Server Side Exporting With Vue Document Editor

Good Morning,

Recently we attempted to implement the DocumentEditor component into a Vue app.  One of the promised features was server-side HTML exporting as seen on this documentation link. We added the relevant code in this documentation to the ASP.NET Core 2.1 backend and Vue frontend (seen in the attachments).  The following issues exist:

  • No call to the route saves any files.
  • The .sfdt data is being sent correctly in the request, but nothing is being done with it in the backend.
We expected this to work out of the box with JavaScript and Vue and not develop in C#, so any guidance is appreciated. 

Attachment: serversideexport_1178a494.zip

2 Replies

SM Suriya Murugan Syncfusion Team October 27, 2022 03:57 AM UTC

Hi Afraz,



We will update details shortly.


Regards


Suriya M



SM Suriya Murugan Syncfusion Team October 27, 2022 10:00 AM UTC

Hi Afraz,


We are providing two types of save APIs as mentioned below.

If your requirement to export the document as SFDT or Docx format, you can use client side save API, which downloads the document.

API name

Purpose

save(filename,FormatType):void

FormatType: Sfdt|Docx|Txt

Creates the document with specified file name and format type. Then, the created file is downloaded in the client browser by default.


Documentation link: https://ej2.syncfusion.com/vue/documentation/document-editor/export/


If you want to export the document in server, please use the below github services and try export case.

https://ej2.syncfusion.com/vue/documentation/document-editor/web-services/core/#save-as-file-formats-other-than-sfdt-and-docx

https://ej2.syncfusion.com/vue/documentation/document-editor/web-services/

Please let us know if you need any further assistance.



Regards,

Suriya M.


Loader.
Live Chat Icon For mobile
Up arrow icon