File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
ej2-asp-core-mvc/code-snippet/spreadsheet Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
function beforeOpen(args) {
8
8
args.requestData["headers"] = {
9
- Authorization: "YOUR TEXT"
9
+ ...args.requestData,
10
+ headers: { Authorization: "YOUR TEXT" }
10
11
};
11
12
12
13
}
Original file line number Diff line number Diff line change 5
5
<script>
6
6
function beforeOpen(args) {
7
7
args.requestData["headers"] = {
8
- Authorization: "YOUR TEXT"
8
+ ...args.requestData,
9
+ headers: { Authorization: "YOUR TEXT" }
9
10
};
10
11
11
12
}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ function fileMenuItemSelect(args) {
20
20
);
21
21
formData.append("fileName", "Sample");
22
22
formData.append("saveType", "Xlsx");
23
+ formData.append("pdfLayoutSettings", JSON.stringify({ fitSheetOnOnePage: false, orientation: "Portrait" }));
23
24
fetch(
24
25
"https://services.syncfusion.com/aspnet/production/api/spreadsheet/save",
25
26
{
Original file line number Diff line number Diff line change 22
22
);
23
23
formData.append("fileName", "Sample");
24
24
formData.append("saveType", "Xlsx");
25
+ formData.append("pdfLayoutSettings", JSON.stringify({ fitSheetOnOnePage: false, orientation: "Portrait" }));
25
26
fetch(
26
27
"https://services.syncfusion.com/aspnet/production/api/spreadsheet/save",
27
28
{
You can’t perform that action at this time.
0 commit comments