Comment don't get saved to the document

Hello,

I'm facing an issue with saving comments into a document. Even though changes made when track changes is on get saved comments don't.
I'm using vue for the frontend and ASPNet for the backend
and I'm using the following line of code to save the sfdt into word:
WordDocument.Save(param.Sfdt, GetFormatType(type.ToLower()));

Thanks.

5 Replies

KB Kurthis Banu Abdul Majeeth Syncfusion Team February 10, 2021 04:41 PM UTC

Hi Omar, 

Thank you for contacting Syncfusion support.  
   
Currently, we don’t have saving comments into a document. However, we have logged a feature request for “saving comments” and it can be tracked through our feedback portal below.  
   

   
Please cast your vote to make it count. At the planning stage for every release cycle, we will review all open features and prioritize them based on the user demands. It will be available in any of our upcoming releases.  
   
If you have any more specifications/suggestions for the feature request, you can add it as a comment in the portal.  

Regards,  

Kurthis Banu A.  



OM Omar February 11, 2021 09:34 AM UTC

So, basically the comment button in the toolbar is not working ?


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 11, 2021 10:01 AM UTC

Hi Omar, 

We are sorry for inconvenience caused.  
Document Editor have comments support, so comment button in toolbar will work properly. Also, we have client-side comment export support and using saveAsBlob API you can save the comment document in server side. 

From previous update, we are saying that Document editor doesn't have support for comment save support in server-side comment. We have logged the feature request for this. And it can be tracked through our feedback portal below.   



Regards,   

Kurthis Banu A. 



OM Omar February 11, 2021 11:17 AM UTC

It'd be really helpful if you send me a quick demo for saving comments using vue.js in the frontend and ASPNet in the backend.
Currently, I'm using the Serialzie() function to get the sfdt json and then post it to the backend.


KB Kurthis Banu Abdul Majeeth Syncfusion Team February 12, 2021 09:35 AM UTC

Hi Omar, 

Regarding: saving comments using vue.js in the frontend  

Code Snippet for export document into blob in client-side: 

exportBlob: function () { 
 
            this.$refs.documenteditor.saveAsBlob('Docx').then((exportedDocument: Blob) => { 
 
             var fileReader = new FileReader(); 
                fileReader.onload = function () { 
                    var base64Text = “; base64,"; 
                    var param = { 
                        fileName: documenteditor.documentName, 
                        documentData: fileReader.result. substring (fileReader.result.indexOf(base64Text) + base64Text.length) 
                   
                    var httpRequest = new XMLHttpRequest(); 
                    httpRequest.open('Post', baseUrl, true); 
                    httpRequest.setRequestHeader("Content-Type", "application/json;charset=UTF-8"); 
                    httpRequest.onreadystatechange = function () { 
                        if (httpRequest.readyState === 4) { 
                            if (httpRequest.status === 200 || httpRequest.status === 304) { 
                                //Sucess 
                           
                       
                    }; 
                    httpRequest.send(JSON.stringify({param: { fileName: documenteditor.documentName, documentData: fileReader.result.substring(fileReader.result.indexOf(base64Text) + base64Text.length) } })); 
                }; 
 
                fileReader.readAsDataURL(blob); 
 
 
 
            }); 
       
 
 


Please, refer to the following sample to export document into blob in client-side. 


Please let us know if you have any other questions.  

Regards, 

Kurthis Banu A. 


Loader.
Up arrow icon