1.Please confirm whether you are using local service or our EJ2 web service link for Open/Save functionality. Local Service
2. If you are using local service for Open/Save functionality please share customization codes for this.
public IActionResult Open(IFormCollection openRequest, int Id)
{
ExcelEngine excelEngine = new ExcelEngine();
IWorkbook workbook;
Stream memStream = (openRequest.Files[0] as IFormFile).OpenReadStream();
workbook = excelEngine.Excel.Workbooks.Open(memStream, ExcelOpenType.SpreadsheetML2007);
List<CustomArgs> customArgs = GetCustomArgs(workbook,Id);
MemoryStream outputStream = new MemoryStream();
workbook.SaveAs(outputStream);
//outputStream.Position = 0;
IFormFile formFile = new FormFile(outputStream, 0, outputStream.Length, "", openRequest.Files[0].FileName);
//outputStream.Close();
OpenRequest open = new OpenRequest();
open.File = formFile;
var content = Workbook.Open(open);
content = content.Insert(content.Length - 2, ", \"customArgs\":" + JsonConvert.SerializeObject(customArgs));
return Content(content);
}
3. Share the control rendering codes for spreadsheet control.
ejs-spreadsheet #default (created)="onCreated($event)" (ngAfterContentChecked)="LoadSpread($event)" (beforeCellRender)="OnBefore($event)" (select)="onCellClick($event)" [openUrl]="openLoc" (openComplete)="onOpenComplete($event)" mode="None" (loadComplete)="LoadSpread($event)" [allowOpen]="true"> </ejs-spreadsheet>
4. If you are import any excel file at initial load, please share us the Excel file.
5. Please confirm whether you are hosting Angular UI application or Web service application in IIS in your end?
Yes we use web service application in IIS