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 10, 2022 11:08 PM

Hi William,


We will update details shortly.


Regards,

Suriya M.



SM Suriya Murugan Syncfusion Team October 11, 2022 10:59 PM

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 11:53 AM

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 16, 2022 11:13 PM

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 19, 2022 07:45 PM

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 20, 2022 10:32 PM

Hi William,


We will share details by October 21, 2022.


Regards,

Suriya M.



WL william lee October 24, 2022 11:10 AM

Hi Suriya,


Any update on this?



SM Suriya Murugan Syncfusion Team October 26, 2022 10:55 PM

Hi William, 


Apologies for the delay.


We will share details shortly. 


Regards


Suriya M.



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

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