opening and saving files from server

Hi,

I have read the specs that files can be read from the local HD. It has some server side conversion for docx.

Is it somehow possible to also opensave files directly from server?

thanxs

14 Replies

PK Prakash Kumar D Syncfusion Team August 14, 2018 12:28 PM UTC

Hi Walter, 
 
Thanks for contacting Syncfusion support. 
 
Yes, it is possible to open and save files from server by implementing an Web API using Syncfusion.EJ2.DocumentEditor and Syncfusion.DocIO library. We have prepared a prototype sample to open and save files from server. Please find the sample from the below link  
  
Regards, 
Prakash Kumar 



WG Walter Grimm August 18, 2018 08:52 AM UTC

Thanxs,

I tried it but it did not open the page from server. I extracted the zip into one dir, the 2 docx files are in the dir, 

could you help me out with opening, and how to define name when saving.

https://test_external.quality-auditors.com/documenteditor


TWO more question please, is there any JS function that will fire when new text is inserted, and at which position it is inserted.

DO you plan somerhing like this with Excel sheets as well?



PK Prakash Kumar D Syncfusion Team August 20, 2018 12:35 PM UTC

Hi Walter, 
 
Thanks for your update. 
 
 Query 1: “I tried it but it did not open the page from server. I extracted the zip into one dir, the 2 docx files are in the dir,” 
 
We are unable to reproduce the reported issue with opening the document. It would be helpful if you could share the below details. So that we can provide the prompt solution at earlier.  
 
1.      Screenshot of error that you are facing while opening the document. 
2.      Console log. 
 
Query 2: “could you help me out with opening, and how to define name when saving 
 
We have prepared a sample application that works as follows. 
 
  1. All the supported files present under the folder “Files” in project location will be listed for importing. Please refer below screenshot.
 
Project folder location 
 
 
Launched application 
 
 
 
  1. We have provided option to modify the document title displayed in title bar. When you save the files, it will be saved with this name under same folder in project location.
 
Sample Link : https://www.syncfusion.com/downloads/support/forum/139237/ze/Document_Editor_Server-372395071 
 
 
Query 3: “is there any JS function that will fire when new text is inserted, and at which position it is inserted” 
 
Yes, our EJ2 Document editor provides a client-side event called “contentChange” which will be triggered whenever content of the document is changes such as insert, delete, cut, paste, formatting etc. Please refer to the following example. 
 
var documentEditor = new DocumentEditor(); 
 
documentEditor.appendTo('#container'); 
 
documentEditor.contentChange = function () { 
    // This method called every time when new text is inserted in the document  
} 
 
 
At present, there is no support to get the position of content changes. Could you please provide us more details about your requirement, so that we can investigate further and will provide you with appropriate solution at the earliest. 
 
Query 4: “DO you plan somerhing like this with Excel sheets as well? 
 
We have added this in our feature list and will be included in our release 2019 Volume 2 which will be rolled out by the end of April 2019 tentatively.   
 
Regards, 
Prakash Kumar 



WG Walter Grimm August 20, 2018 12:56 PM UTC

Hi,

thanxs for the ansewrs, 

sorry i changed the link to this one now, it is basically telling me that it cannot find the file in line 992  console.error(httpRequest.response);

https://venkatram.quality-auditors.com/documenteditor

For the update of actions, just thought it could be used to update diffent versions of the same file that are being used at same time,

to excel, that is great to hear, 

I i can see the docx opening and being saved at server i will get the Software immediatly.

thanxs


PK Prakash Kumar D Syncfusion Team August 21, 2018 05:02 AM UTC

 
Hi Walter,  
 
  
Thank for updating us.  
 
We can reproduce the issue on loading document. On further analysis, we could see that the base url of your application is  
 
We request you modify the baseUrl in documenteditor.js file as below to resolve this issue. 
 
 
var baseUrl = ‘https://venkatram.quality-auditors.com/documenteditor’ + '/api/DocumentEditor/Import?fileName='+fileName; 
 
 
httpRequest.open('POST', ‘https://venkatram.quality-auditors.com/documenteditor’ + '/api/DocumentEditor/Save?fileName='+fileName, true); 
 
Please let us know if you need any further assistance. 
 
Regards, 
Prakash Kumar 



WG Walter Grimm August 21, 2018 06:14 AM UTC

OK, that worked just fine,

So one last question to bother you, 

Do you have any pathway of implementing multiaccess to to syncronice when multiple people work on the doc.


PK Prakash Kumar D Syncfusion Team August 21, 2018 09:26 AM UTC

Hi Walter, 
 
Thank you for updating us. 
 
At this moment, there is no API support to implement synchronous editing in our EJ2 Document editor by multiple users. We have already logged a feature request regarding this. We will let you know once this support has been implemented. 
 
Regards, 
Prakash Kumar 



PK Prakash Kumar D Syncfusion Team August 21, 2018 12:26 PM UTC

Hi Walter, 
 
Please find the details below 
 
Queries 
Response 
 At the bottom there is an open field with a question mark, when i insert a document into it from chrome ver 67, it will destroy the document after saving and reopening, it will destroy the tables. 
We are not clear about the requirement/issue you are mentioning. Please let us know your scenario which you are processing in detail along with screenshot. 
 
When I open the doc, it does not show the original borders as in the docx, it will destroy the orginal tables. 
Currently, our EJ2 Document editor does not support rendering of all kinds of borders. However, the actual border will be preserved in exported Word Document. We have already logged this requirement as feature request. We will let you know once this feature has been implemented. 
ALSO: I cannot add jpg pictures, only png files 
We are unable to reproduce the issue. We have tried adding jpg pictures and it is working properly at our end. 
 
 
Regards, 
Prakash Kumar 



WG Walter Grimm August 22, 2018 07:49 AM UTC

Hi,

 I have one demo file I tried,  please check  https://test.quality-auditors.com/documenteditor 

OK, when tables are not defined well in WW.docx it will destroy them after saving in syncf, solved

PLEASE CHECK THE FOLLOWING: I am using your demo package you sent, i have sent it to some clients to edit a field for testing, when people use Chrome it seems to work, when the people open it with Internet Explorer, they cannot write in the doc, also on my IE it does not work. It also does not save any pictures. 

IS the Demo version with some limitations to the functions, or can you please tell me why Internet Explorer it works on your demo page, but not on my server hosted version.




PK Prakash Kumar D Syncfusion Team August 23, 2018 10:48 AM UTC

Hi Walter, 
 
Thank you for your update.

We have already faced issues with inserting text in our EJ2 Document editor on Internet Explorer browser and fixed it internally. Kindly refer our latest scripts from below location to get this issue resolved.
 
 

Note: There is a known issue with inserting space on Internet Explorer browser. This fix will be included with our upcoming Essential Studio Volume 3 release, which is expected to be available on September 2018. We will let you know once this has been rolled out.
 
Regards, 
Prakash Kumar 



WG Walter Grimm August 23, 2018 02:21 PM UTC

Ok, so where do i put these two docs here, 

It is all a little confusing, since i do not have one easy small sample, with main fiel and JS,

I put the JS in the  doceditor project in the scripts ej2 subdirectory

the fabric.css, i s have searched are not in the samples dir but in the appiction install folder 

\sfusion\JavaScript - EJ2\16.2.0.41\Web (Essential JS 2)\JavaScript\ej2\document-editor

There is can find a fabric.css with ~ 800 kB, which i now replaced with 1,5 mB fabric.css, and the site is not working anymore

Can someone please tell me how this works, maybe i am too stupid,

but can you give me a really very easy one file sample with JS and CSS, and not one repository with 600 mB of data for a one page sample please.

So i place the JS in the SLN for the project, but the the CSS goes into a seperate directory, please help me understand how thsi all fits together, I looked at the getting started, but with  each component i get confused.

Please one file sample, with the ref to JS and CSS if you have please, no 600 mB chunk of data, for one page sample, (unless we need an API)


PK Prakash Kumar D Syncfusion Team August 27, 2018 07:34 AM UTC

Hi Walter, 
 
Thank you for your update. 


If you wish to
use a single JavaScript (ES5) file which contains all Essential JS 2 components, kindly try either one of the following ways. 
 
1. Refer from local folder 
 
Path 
Script 
**(installed location)**\Syncfusion\Essential Studio\JavaScript - EJ2\{RELEASE_VERSION}\Web (Essential JS 2)\JavaScript\ej2\dist\ej2.min.js 
 
Styles 
**(installed location)**\Syncfusion\Essential Studio\JavaScript - EJ2\{RELEASE_VERSION}\Web (Essential JS 2)\JavaScript\ej2\material.css 
 
Example 
C:\Program Files (x86)\Syncfusion\Essential Studio\JavaScript - EJ2\16.2.0.50\Web (Essential JS 2)\JavaScript\ej2\dist\ej2.min.js 
C:\Program Files (x86)\Syncfusion\Essential Studio\JavaScript - EJ2\16.2.0.50\Web (Essential JS 2)\JavaScript\ej2\material.css 
 
2. Refer CDN links 
Script 
 
Styles 
 
Note: Styles are also available for other themes such as fabric, bootstrap and high contrast. 
 
Regards, 
Prakash Kumar 



PG Pon Geetha A J Syncfusion Team August 27, 2018 10:39 AM UTC

HI, 
 
this is nice ok, but please understand that I am looking at this the first time, and it is not the soul core of my daily routine. 
 
But there is still a whole load of stuff going on that is completely not understandable, 
 
  1. You have the versions of the JS, JS1 and JS2 – well might be logical to you, but it took me quite some time to figure out that you are running two version of the same SW in parallel, and why I keep on finding stuff here and there and never are sure where (well, if you know there are two version, and pages completely different structure, than you start understanding why)
  2. The instruction of JS2 are on the https://help.syncfusion.com/js/overview
  3. The instruction for JS1 are on the page https://ej2.syncfusion.com/documentation/?lang=typescript
IF you compare the two pages, you will see that the JS1 is quite well documented with samples, as far as I checked some pages 
 
I did not find any API documentation in JS2 for the doc editor, the other components have some API documentation. 
 
When do you plan to havr the Gantt in JS2 please? 
 
------------------------------------------------------------------------------------------------------------------ 
FOR JS2, according to what you mention below:  
 
  1. Either I use the full JS version for JS2 ~ 5mB
  2. I can also reference the individual JS in the file OR
 
  1. I can add all of the ref in this kind of file according to your site for installation. (just strikes me that your example I have for Document editor does not have a system.config.js file, when it says to use it in the  documentation)
This is something really completely different, as what I have in the sample for document editor? 
 
--------------------------------------------------------------------------------------------------- 
AND NOW: When I use JS1, I can understand the procedure as described in the file https://ej2.syncfusion.com/documentation 
 
I need to use the following files: https://help.syncfusion.com/js/control-initialization  
 
  • ej.web.all.min.js
  • jQuery (version supported from 1.7.1 to 3.1.0)
  • jsrender.min.js
 
This has 13 mb, is this also available in subJS packages? 
 
I am sure that using JS1 and JS2 together will be no Issue, just need to download 20 mB 
 
 
 
 
regards 
  
Walter Grimm 



PK Prakash Kumar D Syncfusion Team August 28, 2018 01:41 PM UTC

Hi Walter, 
 
Please find the details below 
Query 1:  
You have the versions of the JS, JS1 and JS2 – well might be logical to you, but it took me quite some time to figure out that you are running two version of the same SW in parallel, and why I keep on finding stuff here and there and never are sure where (well, if you know there are two version, and pages completely different structure, than you start understanding why)  
  
Answer:  
Please find the below details about Essential JS 1 and Essential JS 2 frameworks   
Essential JS 1 is the first-generation JQuery based JavaScript UI framework from Syncfusion that was initially released in July 2013. This framework has been in active development for more than four years so it is very feature rich and mature. It also includes support for all popular browsers including older browsers like IE8. We will continue to develop, maintain and support this version for several more years. However, please note that new feature development will only happen in Essential JS 1 if an equivalent control is not yet available in Essential JS 2.    
Starting with the Volume 4 2017 release, we have also shipped a beta version of the second generation of the Essential JS library (Essential JS 2). This new library has several advantages over the first-generation library since it has been built from the ground up to be more modular, lightweight, responsive, fast and has no external dependencies. However, it only supports modern browsers starting from IE11 and currently only includes a subset of the controls available in Essential JS 1. Please note that we will ensure that a control in Essential JS 2 will have feature parity with its equivalent in Essential JS 1 before it is officially released.    
  
Query 2:  
IF you compare the two pages, you will see that the JS1 is quite well documented with samples, as far as I checked some pages  
  
Answer:  
We would like to inform you that, for EJ2 documentation only we have documented with samples. But for EJ1 we have documented withCode snippets and Screenshots alone. Please let us know if you need additional information regarding any controls.  
  
Query 3:  
 
I did not find any API documentation in JS2 for the doc editor, the other components have some API documentation 
 
Answer: 
We will publish this documentation on our volume 2 SP-2 release which will be rolled out by end of August 2018. 
 
Query 4:  
When do you plan to havr the Gantt in JS2 please?  
  
Answer:  
We have already added the EJ 2 Gantt component in our Essential Studio Volume 1, 2019 release wish list which will be tentatively available by January 2019. Until then we suggest you to use the Essential JS 1 Gantt in your application  
 
Regards, 
Prakash Kumar 


Loader.
Up arrow icon