Loading...
Loading...
Compare original and translation side by side
xlsxxlsxlsbxlsxxlsxlsbHomeController.csusing Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using Syncfusion.EJ2.Spreadsheet;
namespace YourApp.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Open(IFormCollection openRequest)
{
OpenRequest open = new OpenRequest();
open.File = openRequest.Files[0];
return Content(Workbook.Open(open));
}
public IActionResult Save(SaveSettings saveSettings)
{
if (saveSettings != null && saveSettings.JSONData != null)
{
return Workbook.Save(saveSettings);
}
return View();
}
}
}Index.cshtml@using Syncfusion.EJ2.Spreadsheet
<div class="control-pane">
<div class="control-section spreadsheet-control">
<ejs-spreadsheet id="spreadsheet" openUrl="Home/Open" saveUrl="Home/Save">
<e-spreadsheet-sheets>
<e-spreadsheet-sheet name="Sheet1">
<e-spreadsheet-rows>
<e-spreadsheet-row>
<e-spreadsheet-cells>
<e-spreadsheet-cell value="Hello, Spreadsheet!"></e-spreadsheet-cell>
</e-spreadsheet-cells>
</e-spreadsheet-row>
</e-spreadsheet-rows>
</e-spreadsheet-sheet>
</e-spreadsheet-sheets>
</ejs-spreadsheet>
</div>
</div>
HomeController.csusing Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using Syncfusion.EJ2.Spreadsheet;
namespace YourApp.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Open(IFormCollection openRequest)
{
OpenRequest open = new OpenRequest();
open.File = openRequest.Files[0];
return Content(Workbook.Open(open));
}
public IActionResult Save(SaveSettings saveSettings)
{
if (saveSettings != null && saveSettings.JSONData != null)
{
return Workbook.Save(saveSettings);
}
return View();
}
}
}Index.cshtml@using Syncfusion.EJ2.Spreadsheet
<div class="control-pane">
<div class="control-section spreadsheet-control">
<ejs-spreadsheet id="spreadsheet" openUrl="Home/Open" saveUrl="Home/Save">
<e-spreadsheet-sheets>
<e-spreadsheet-sheet name="Sheet1">
<e-spreadsheet-rows>
<e-spreadsheet-row>
<e-spreadsheet-cells>
<e-spreadsheet-cell value="Hello, Spreadsheet!"></e-spreadsheet-cell>
</e-spreadsheet-cells>
</e-spreadsheet-row>
</e-spreadsheet-rows>
</e-spreadsheet-sheet>
</e-spreadsheet-sheets>
</ejs-spreadsheet>
</div>
</div>
references/*.md{skill-root}/syncfusion-aspnetcore-spreadsheet-editor/output/index.cshtmlreferences/*.md## Rulesreferences/*.md{skill-root}/syncfusion-aspnetcore-spreadsheet-editor/output/index.cshtmlreferences/*.md## Rulesreferences/| File | Topic |
|---|---|
| initialization.md | Basic ASP.NET Core setup and options |
| data-binding.md | Local arrays, JSON, remote (DataManager) |
| formulas.md | Formulas, aggregates, named ranges |
| formatting.md | Cell formatting, borders, wrap text |
| number-formatting.md | Number formatting, decimals, currency, date |
| conditional-formatting.md | Rules, highlights based on conditions |
| data-validation.md | Validation rules, invalid highlights |
| sorting-filtering.md | Sorting, filtering |
| find-replace.md | Find, replace |
| import-export.md | Save (XLSX/CSV/PDF), open, openFromJson |
| charts.md | Insert, edit, delete charts |
| images.md | Insert, modify pictures |
| hyperlink.md | Add, remove hyperlinks |
| comments.md | Threaded comments, replies, resolve threads |
| notes.md | Simple cell notes, sticky visibility, add/edit/delete |
| protection.md | Sheet protection, cell locking, permissions |
| edit-cell.md | startEdit, endEdit, updateCell, edit modes |
| freeze-panes.md | Freeze rows/columns, split panes |
| row-column.md | Insert, delete, resize rows/columns, hide |
| merge-cells.md | Merge, unmerge cells, spanning |
| print.md | Page setup, headers/footers, scaling, margins |
| misc-operations.md | Autofill, clear, sheet management, goTo |
| clipboard.md | Copy, cut, paste with different paste types |
| selection.md | Select cells/ranges, multi-select, getSelectedRange |
| scrolling-virtualization.md | Virtual scrolling, large datasets, performance |
| wrap.md | Text wrapping, multi-line display, row height |
| defined-names.md | Named ranges, define names, refersTo format |
| custom-functions.md | Custom calculation functions, addCustomFunction |
| ribbon-customization.md | Ribbon tabs, toolbar items, file menu customization |
| context-menu.md | Right-click context menu, contextMenuBeforeOpen |
| localization.md | Multi-language, locale, RTL, number/date formats |
| events.md | Event handling, event properties, event patterns |
| autofill.md | Autofill patterns, fill types, series |
references/| 文件 | 主题 |
|---|---|
| initialization.md | 基础ASP.NET Core设置与选项 |
| data-binding.md | 本地数组、JSON、远程(DataManager)数据绑定 |
| formulas.md | 公式、聚合函数、命名区域 |
| formatting.md | 单元格格式、边框、文本换行 |
| number-formatting.md | 数字格式、小数、货币、日期 |
| conditional-formatting.md | 规则、基于条件的高亮显示 |
| data-validation.md | 验证规则、无效内容高亮显示 |
| sorting-filtering.md | 排序、筛选 |
| find-replace.md | 查找、替换 |
| import-export.md | 保存(XLSX/CSV/PDF)、打开、从JSON导入 |
| charts.md | 插入、编辑、删除图表 |
| images.md | 插入、修改图片 |
| hyperlink.md | 添加、移除超链接 |
| comments.md | 线程式评论、回复、解决线程 |
| notes.md | 简单单元格批注、可见性控制、添加/编辑/删除 |
| protection.md | 工作表保护、单元格锁定、权限设置 |
| edit-cell.md | 开始编辑、结束编辑、更新单元格、编辑模式 |
| freeze-panes.md | 冻结行/列、拆分窗格 |
| row-column.md | 插入、删除、调整行/列大小、隐藏 |
| merge-cells.md | 合并、取消合并单元格、跨区域合并 |
| print.md | 页面设置、页眉/页脚、缩放、边距 |
| misc-operations.md | 自动填充、清除、工作表管理、定位 |
| clipboard.md | 复制、剪切、粘贴(支持多种粘贴类型) |
| selection.md | 选择单元格/区域、多选、获取选中区域 |
| scrolling-virtualization.md | 虚拟滚动、大数据集、性能优化 |
| wrap.md | 文本换行、多行显示、行高 |
| defined-names.md | 命名区域、定义名称、引用格式 |
| custom-functions.md | 自定义计算函数、addCustomFunction |
| ribbon-customization.md | 功能区选项卡、工具栏项、文件菜单自定义 |
| context-menu.md | 右键上下文菜单、contextMenuBeforeOpen事件 |
| localization.md | 多语言、区域设置、RTL、数字/日期格式 |
| events.md | 事件处理、事件属性、事件模式 |
| autofill.md | 自动填充模式、填充类型、序列 |
https://cdn.syncfusion.com/ej2/{product_version}/dist/ej2.min.jsreferences/*.mdreferences/*.mdhttps://cdn.syncfusion.com/ej2/{product_version}/dist/ej2.min.jsreferences/*.mdreferences/*.md{skill-root}/syncfusion-aspnetcore-spreadsheet-editor/output/{skill-root}/syncfusion-aspnetcore-spreadsheet-editor/output/