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

Opening a doc/pdf file with DocumentEditor from FileManager

Hi,

I have implemented the FileManager to work but now I want to be able to right click on the doc/pdf file from FileMnager and open them with DocumentEditor. 


The DocumentEditor should open with the file I selected from filemanager already loaded. Could you please provide a sample?


9 Replies 1 reply marked as answer

SM Suriya Murugan Syncfusion Team October 11, 2022 04:08 AM UTC

Hi William,


We will update details shortly.


Regards,

Suriya M.



SM Suriya Murugan Syncfusion Team October 12, 2022 03:59 AM UTC

Hi William,


Please check below KB for reference and let us know if you need any further assistance:


https://www.syncfusion.com/kb/10176/how-to-open-a-word-document-available-in-the-file-explorer-control-using-documenteditor


----------

If this post is helpful, please mark it as an answer so that other members can locate it more quickly.


Regards,

Suriya M.



WL william lee October 12, 2022 04:53 PM UTC

Hi Suriya,


My File Manager is accessing AWS S3 to get my files and I want to be able to open the document with DocumentEditor straight from the FileManager




When clicked 'Edit' it will open DocumentEditor with the document already loaded




And finally when saved it will save to the same file located inside the S3 


Hopefully this is possible,


Thank you



SM Suriya Murugan Syncfusion Team October 17, 2022 04:13 AM UTC

Hi William,


Once you get the document from AWS, please convert it into SFDT format and refer below documentation for reference.

https://ej2.syncfusion.com/aspnetcore/documentation/document-editor/import#convert-word-documents-into-sfdt


Then open the SFDT in document editor using open method. Please refer below documentation.


To export the document to AWS, please refer below documentation:

https://ej2.syncfusion.com/aspnetcore/documentation/document-editor/how-to/auto-save-document-in-document-editor


Regards,

Suriya M.



WL william lee October 20, 2022 12:45 AM UTC

Hi Suriya,


if I know the local path to the doc file I want to open, is it possible to open DocumentEditor with the file path? 


So the process would be to 

  1. find the file in local folder with the file path I have
  2. convert it to SFDT
  3. set this file as default so when I open the DocumentEditor, it would open with the file loaded in

Could you kindly provide a sample or a direction on how I can achieve this?

Thank you





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

Hi William,


We will share details by October 21, 2022.


Regards,

Suriya M.



WL william lee October 24, 2022 04:10 PM UTC

Hi Suriya,


Any update on this?



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

Hi William, 


Apologies for the delay.


We will share details shortly. 


Regards


Suriya M.



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

Hi William,


You can load the document from specific path. Please refer below API for reference:

https://github.com/SyncfusionExamples/EJ2-Document-Editor-Web-Services/blob/master/ASP.NET%20Core/src/Controllers/DocumentEditorController.cs#L259



In above, we have loaded document from App_Data folder and you can change path based on your requirement. Then load return SFDT in Documenteditor.

https://github.com/SyncfusionExamples/EJ2-Document-Editor-Web-Services/blob/master/ASP.NET%20Core/src/Controllers/DocumentEditorController.cs#L274

Please let us know if you need any further assistance.




Regards,

Suriya M.






Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon