Need one sample VUE Syncfusion Control for Save content as DOCX on server side

Hello, I saw example how to save as docx on client side, but how to save it on server as docx? Now I save it as sfdt
            saveAsDocx: function() {
                this.save('Sfdt');
                },
             save: function (format) {
                // tslint:disable-next-line:max-line-length
                this.$refs.doceditcontainer.ej2Instances.documentEditor.saveAsBlob(format).then(function (sfdtBlob) {
                    var fileReader = new FileReader();
                    fileReader.onload = function (e) {
                        // Get Sfdt string here
                        var sfdtText = fileReader.result;
                        var rel='nofollow' href = window.location.rel='nofollow' href;
                        var id = rel='nofollow' href.split('/').pop();
                        axios.post('/save-file/'+id ,  sfdtText).then(response => {
                            window.location = response.data.redirect;
                        })
                            .catch(error => {
                                console.log(error)
                            });
                    };
                    fileReader.readAsText(sfdtBlob);
                    // The blob can be processed further
                })
            },

1 Reply

HC Harini Chellappa Syncfusion Team March 25, 2020 11:50 AM UTC

Hi Olga, 

Kindly refer the below documentation on exporting the document content and saving it in RTF format [you can set the format type to Docx] using DocIO in server and stream is then passed to client-side for downloading. You can either store stream as file stream in server side or pass it client-side and download. You can modify it based on your requirement.  


you can also refer the below KB platform-wise. 



If your requirement is to pass the document content as sfdt to server and save it then please refer the below documentation. 


Please let us know if you need any further assistance on this. 

Regards, 
Harini C 


Loader.
Up arrow icon