v25.1.35
This commit is contained in:
Родитель
6601de92df
Коммит
8190ecb37e
|
@ -0,0 +1,74 @@
|
|||
### Bug description
|
||||
Clearly and concisely describe the problem (this cannot be empty).
|
||||
|
||||
### Root cause
|
||||
Briefly describe the root cause and analysis of the problem.
|
||||
If there is an internal discussion on the forum, provide the link.
|
||||
|
||||
### Solution description
|
||||
Describe the changes made in the code in detail for the reviewers.
|
||||
|
||||
### Reason for not identifying earlier
|
||||
* [ ] Guidelines not followed. If yes, provide which guideline is not followed.
|
||||
|
||||
* [ ] Guidelines not given. If yes, provide which/who need to address.
|
||||
Tag label `update-guideline-coreteam` or `update-guideline-productteam`.
|
||||
|
||||
* [ ] If any other reason, provide the details here.
|
||||
|
||||
### Areas tested against this fix
|
||||
Provide details about the areas or combinations that have been tested against this code changes.
|
||||
* [ ] Tested against feature matrix. [Feature matrix link](https://syncfusion.sharepoint.com/sites/EJ2ProductOwners/Shared%20Documents/Forms/AllItems.aspx?viewid=ae81c682%2D3d0f%2D462a%2Db8ec%2D7358748d489d&id=%2Fsites%2FEJ2ProductOwners%2FShared%20Documents%2FGeneral%2FFeature%20Matrix%20%2D%20Documents)
|
||||
* [ ] NA
|
||||
|
||||
### Is it a breaking issue?
|
||||
* [ ] Yes, Tag `breaking-issue`.
|
||||
* [ ] NO
|
||||
|
||||
If yes, provide the breaking commit details / MR here.
|
||||
|
||||
### Action taken
|
||||
What action did you take to avoid this in future?
|
||||
|
||||
Feature matrix document updated
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
* [ ] NA
|
||||
|
||||
Automation details - Mark `Is Automated` field as (Yes, Manual, Not Applicable) in corresponding JIRA task once the bug is automated.
|
||||
* [ ] BUnit, share corresponding MR.
|
||||
* [ ] E2E or Manual Automation using tester - Make sure all items are automated with priority before release which can be tracked in [automation dashboard](https://syncfusion.atlassian.net/secure/Dashboard.jspa?selectPageId=43396).
|
||||
|
||||
If the same issue is reproduced in ej2, what will you do?
|
||||
* [ ] Resolved. Provide MR link.
|
||||
* [ ] NO. Created task to track it. Share task link.
|
||||
* [ ] NA
|
||||
|
||||
Is this common issue need to be addressed in the same component or on other components in our platform?
|
||||
* [ ] Yes - Need to check in other components, tag `needs-attention-coreteam`
|
||||
* [ ] No
|
||||
|
||||
### Output screenshots
|
||||
Post the output screenshots if an UI is affected or added due to this bug.
|
||||
|
||||
### Blazor Checklist
|
||||
Confirm whether this feature is ensured in both Blazor Server and WASM
|
||||
* [ ] NA
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
|
||||
Is there any new API or existing API name change?
|
||||
* [ ] Yes. If yes, Provide API Review task link.
|
||||
* [ ] NO
|
||||
|
||||
Is there any existing behavior change due to this code change?
|
||||
* [ ] Yes. Add `breaking-change` label.
|
||||
* [ ] NO
|
||||
|
||||
|
||||
Do the code changes cause any memory leak and performance issue? (Test only if you suspect that your code may cause problem)
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
|
||||
## Reviewer Checklist
|
||||
* [ ] All provided information are reviewed and ensured.
|
|
@ -0,0 +1,80 @@
|
|||
### Feature description
|
||||
Clearly and concisely describe the feature.
|
||||
|
||||
### Requirement and specification document.
|
||||
Share the JIRA task which is attached with the requirement and specification document or directly share the document.
|
||||
- Even for a small feature, draft a requirement and specification document and attach it in the task.
|
||||
|
||||
### API Review task
|
||||
Provide task link.
|
||||
|
||||
### Output screenshots
|
||||
Post the output screenshots if an UI is affected or added due to this feature.
|
||||
|
||||
### Feature matrix document
|
||||
|
||||
Feature matrix document updated against this feature and committed in this [common location] (https://syncfusion.sharepoint.com/sites/EJ2ProductOwners/Shared%20Documents/Forms/AllItems.aspx?viewid=ae81c682%2D3d0f%2D462a%2Db8ec%2D7358748d489d&id=%2Fsites%2FEJ2ProductOwners%2FShared%20Documents%2FGeneral%2FFeature%20Matrix%20%2D%20Documents) .
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
* [ ] NA
|
||||
|
||||
Provide the details about the areas or combinations which have been tested against this code changes.
|
||||
* [ ] Tested against feature matrix.
|
||||
|
||||
### Feature acceptance criteria (Test-case document)
|
||||
Draft the test cases in excel and attach it in the MR itself. The automation must be covered based on this positive and worst-case test-cases.
|
||||
|
||||
### Automation details
|
||||
Mark 'Is Automated' field as (Yes, Manual, Not Applicable) in corresponding JIRA task once the feature is automated.
|
||||
* [ ] BUnit, share corresponding MR.
|
||||
* [ ] E2E or Manual Automation using tester - Make sure all items are automated with priority before release which can be tracked in [automation dashboard](https://syncfusion.atlassian.net/secure/Dashboard.jspa?selectPageId=43396).
|
||||
|
||||
### Test bed sample location
|
||||
Provide the test bed sample location where the code reviewers can review the new feature’s behaviors.
|
||||
|
||||
### Feature completion checklist
|
||||
|
||||
UX changes got approval if UI is added or modified?
|
||||
* [ ] Yes. Provide Task link.
|
||||
* [ ] NO
|
||||
* [ ] NA
|
||||
|
||||
Drafted UG for this feature?
|
||||
* [ ] Yes, provide MR link.
|
||||
* [ ] NO, provide task link.
|
||||
* [ ] NA
|
||||
|
||||
Content team reviewed the UI content changes.
|
||||
* [ ] Yes. Provide MR or Task link.
|
||||
* [ ] NO
|
||||
* [ ] NA
|
||||
|
||||
Is this the common feature which needs to be addressed in the same component or on other components in our platform?
|
||||
* [ ] Yes. If we need to check in other components, tag "needs-attention-coreteam"
|
||||
* [ ] NO
|
||||
|
||||
Is there any existing behavior change due to this code change?
|
||||
* [ ] Yes. If So, add `breaking-change` label.
|
||||
* [ ] NO
|
||||
|
||||
### Blazor Checklist
|
||||
Confirm whether the ensured feature is in both Blazor Server and WASM.
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
* [ ] NA
|
||||
|
||||
Do the code changes cause any memory leak and performance issue?
|
||||
* [ ] Yes
|
||||
* [ ] NO
|
||||
|
||||
## Reviewer Checklist
|
||||
* [ ] Reviewed feature matrix document modifications and reviewed developer testing report against the feature matrix reviewed.
|
||||
* [ ] Testbed sample ensured.
|
||||
* [ ] Coverage report checked.
|
||||
* [ ] Ensured the code changes meet the coding standard.
|
||||
* [ ] Confirming script changes made in this merge request can't be achieved in C#.
|
||||
|
||||
Created task in Blazor to synchronize if the feature is not available and applicable.
|
||||
* [ ] NA
|
||||
* [ ] Yes, task link.
|
||||
* [ ] NO, share reason.
|
|
@ -8,4 +8,4 @@ bin/
|
|||
obj/
|
||||
package-lock.json
|
||||
deploy/
|
||||
npm-debug.log
|
||||
npm-debug.log
|
|
@ -16,4 +16,3 @@ wwwroot/styles/material3-dark.css:aws-access-token:1
|
|||
wwwroot/styles/material3.css:aws-access-token:1
|
||||
wwwroot/styles/tailwind.css:aws-access-token:1
|
||||
wwwroot/styles/tailwind-dark.css:aws-access-token:1
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class AutoCompleteController : Controller
|
||||
{
|
||||
public IActionResult ObjectValueBinding()
|
||||
{
|
||||
AutoCompleteRecord model = new AutoCompleteRecord();
|
||||
model.RecordList = new AutoCompleteRecord().RecordModelList();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.CircularChart3D
|
||||
{
|
||||
public partial class CircularChart3DController : Controller
|
||||
{
|
||||
public IActionResult Donut()
|
||||
{
|
||||
List<DonutChartData> ChartPoints = new List<DonutChartData>
|
||||
{
|
||||
new DonutChartData { X = "Tesla", Y = 137429 },
|
||||
new DonutChartData { X = "Aion", Y = 80308 },
|
||||
new DonutChartData { X = "Wuling", Y = 76418 },
|
||||
new DonutChartData { X = "Changan", Y = 52849 },
|
||||
new DonutChartData { X = "Geely", Y = 47234 },
|
||||
new DonutChartData { X = "Nio", Y = 31041 },
|
||||
new DonutChartData { X = "Neta", Y = 22449 },
|
||||
new DonutChartData { X = "BMW", Y = 18733 }
|
||||
};
|
||||
ViewBag.ChartData = ChartPoints;
|
||||
return View();
|
||||
}
|
||||
public class DonutChartData
|
||||
{
|
||||
public string X;
|
||||
public double Y;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.CircularChart3D
|
||||
{
|
||||
public partial class CircularChart3DController : Controller
|
||||
{
|
||||
public IActionResult Pie()
|
||||
{
|
||||
List<PieChartData> ChartPoints = new List<PieChartData>
|
||||
{
|
||||
new PieChartData { X = "Canada", Y = 46, Text= "Canada: 46" },
|
||||
new PieChartData { X = "Hungary", Y = 30, Text= "Hungary: 30" },
|
||||
new PieChartData { X = "Germany", Y = 79, Text= "Germany: 79" },
|
||||
new PieChartData { X = "Mexico", Y = 13, Text= "Mexico: 13" },
|
||||
new PieChartData { X = "China", Y = 56, Text= "China: 56" },
|
||||
new PieChartData { X = "India", Y = 41, Text= "India: 41" },
|
||||
new PieChartData { X = "Bangladesh", Y = 25, Text= "Bangladesh: 25" },
|
||||
new PieChartData { X = "United States", Y = 32, Text= "United States: 32" },
|
||||
new PieChartData { X = "Belgium", Y = 34, Text= "Belgium: 34" }
|
||||
};
|
||||
ViewBag.ChartData = ChartPoints;
|
||||
return View();
|
||||
}
|
||||
public class PieChartData
|
||||
{
|
||||
public string X;
|
||||
public double Y;
|
||||
public string Text;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.CircularChart3D
|
||||
{
|
||||
public partial class CircularChart3DController : Controller
|
||||
{
|
||||
public IActionResult PieRadius()
|
||||
{
|
||||
List<PieRadiusData> ChartPoints = new List<PieRadiusData>
|
||||
{
|
||||
new PieRadiusData { X = "Argentina", Y = 505370, R = "100", Text = "Argentina" },
|
||||
new PieRadiusData { X = "Belgium", Y = 551500, R = "118.7", Text = "Belgium" },
|
||||
new PieRadiusData { X = "Dominican Republic", Y = 312685, R = "137.5", Text = "Dominican Republic" },
|
||||
new PieRadiusData { X = "Cuba", Y = 350000, R = "124.6", Text = "Cuba" },
|
||||
new PieRadiusData { X = "Egypt", Y = 301000, R = "150.8", Text = "Egypt" },
|
||||
new PieRadiusData { X = "Kazakhstan", Y = 300000, R = "155.5", Text = "Kazakhstan" },
|
||||
new PieRadiusData { X = "Somalia", Y = 357022, R = "160.6", Text = "Somalia" }
|
||||
};
|
||||
ViewBag.ChartData = ChartPoints;
|
||||
return View();
|
||||
}
|
||||
public class PieRadiusData
|
||||
{
|
||||
public string X;
|
||||
public double Y;
|
||||
public string R;
|
||||
public string Text;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.CircularChart3D
|
||||
{
|
||||
public partial class CircularChart3DController : Controller
|
||||
{
|
||||
public IActionResult PieWithLegend()
|
||||
{
|
||||
List<PieWithLegendChartData> ChartPoints = new List<PieWithLegendChartData>
|
||||
{
|
||||
new PieWithLegendChartData { X = "Chrome", Y = 62.92, Text = "62.92%" },
|
||||
new PieWithLegendChartData { X = "Internet Explorer", Y = 6.12, Text = "6.12%" },
|
||||
new PieWithLegendChartData { X = "Opera", Y = 3.15, Text = "3.15%" },
|
||||
new PieWithLegendChartData { X = "Edge", Y = 5.5, Text = "5.5%" },
|
||||
new PieWithLegendChartData { X = "Safari", Y = 19.97, Text = "19.97%" },
|
||||
new PieWithLegendChartData { X = "Others", Y = 2.34, Text = "2.34%" }
|
||||
};
|
||||
ViewBag.ChartData = ChartPoints;
|
||||
return View();
|
||||
}
|
||||
public class PieWithLegendChartData
|
||||
{
|
||||
public string X;
|
||||
public double Y;
|
||||
public string Text;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.CircularChart3D
|
||||
{
|
||||
public partial class CircularChart3DController : Controller
|
||||
{
|
||||
public IActionResult Selection()
|
||||
{
|
||||
List<SelectionChartData> ChartPoints = new List<SelectionChartData>
|
||||
{
|
||||
new SelectionChartData { X = "Chrome", Y = 62.92 },
|
||||
new SelectionChartData { X = "Internet Explorer", Y = 6.12 },
|
||||
new SelectionChartData { X = "Edge", Y = 5.5 },
|
||||
new SelectionChartData { X = "Opera", Y = 3.15 },
|
||||
new SelectionChartData { X = "Safari", Y = 19.97 },
|
||||
new SelectionChartData { X = "Others", Y = 2.34 }
|
||||
};
|
||||
ViewBag.ChartData = ChartPoints;
|
||||
return View();
|
||||
}
|
||||
public class SelectionChartData
|
||||
{
|
||||
public string X;
|
||||
public double Y;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class ComboBoxController : Controller
|
||||
{
|
||||
public IActionResult ObjectValueBinding()
|
||||
{
|
||||
ComboBoxRecord model = new ComboBoxRecord();
|
||||
model.RecordList = new ComboBoxRecord().RecordModelList();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -109,7 +109,6 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
ViewBag.getConnectorDefaults = "getConnectorDefaults";
|
||||
ViewBag.setNodeTemplate = "setNodeTemplate";
|
||||
|
||||
|
||||
var selectedItems =new DiagramSelector ();
|
||||
selectedItems.Constraints = (SelectorConstraints.ConnectorSourceThumb
|
||||
| SelectorConstraints.ConnectorTargetThumb);
|
||||
|
|
|
@ -40,13 +40,13 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
{
|
||||
List<DiagramNode> nodes = new List<DiagramNode>();
|
||||
nodes.Add(CreateNodes("node1", 100, 125, "Terminator", "Begin", 100, 35, new List<DiagramPort>() { new DiagramPort() { } }));
|
||||
nodes.Add(CreateNodes("node2", 300, 125, "Process", "Specify collection", 120, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new PointsShape() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node3", 500, 125, "Decision", "Particulars \n required?", 100, 50, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new PointsShape() { X = 0.5, Y = 1 } } }));
|
||||
nodes.Add(CreateNodes("node2", 300, 125, "Process", "Specify collection", 120, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new DiagramPoint() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node3", 500, 125, "Decision", "Particulars \n required?", 100, 50, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new DiagramPoint() { X = 0.5, Y = 1 } } }));
|
||||
nodes.Add(CreateNodes("node4", 730, 125, "Process", "Specify particulars", 90, 25,new List<DiagramPort>() { new DiagramPort() { } }));
|
||||
nodes.Add(CreateNodes("node5", 500, 225, "Process", "Design collection", 100, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port", Offset = new PointsShape() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node5", 500, 225, "Process", "Design collection", 100, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port", Offset = new DiagramPoint() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node6", 500, 320, "Process", "Cluster of events", 100, 25, new List<DiagramPort>() { new DiagramPort() { } }));
|
||||
nodes.Add(CreateNodes("node7", 500, 420, "Process", "Start the process", 100, 25, new List<DiagramPort>() { new DiagramPort() { } }));
|
||||
nodes.Add(CreateNodes("node8", 730, 320, "Process", "Record and analyze \n results", 170, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new PointsShape() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node8", 730, 320, "Process", "Record and analyze \n results", 170, 25, new List<DiagramPort>() { new DiagramPort() { Id = "port1", Offset = new DiagramPoint() { X = 1, Y = 0.5 } } }));
|
||||
nodes.Add(CreateNodes("node9", 730, 420, "Terminator", "End ", 100, 35, new List<DiagramPort>() { new DiagramPort() { } }));
|
||||
return nodes;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Style = new DiagramShapeStyle() { Fill = "#DCDCDC", StrokeColor = "#DCDCDC" },
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation() { Id = "label1", Content = "Design" } },
|
||||
Shape = new { type = "Flow", shape = "Process" },
|
||||
Ports = new List<DiagramPort>() { new DiagramPort() { Id = "designPort", Offset = new PointsShape() { X = 0, Y = 0.5 } } }
|
||||
Ports = new List<DiagramPort>() { new DiagramPort() { Id = "designPort", Offset = new DiagramPoint() { X = 0, Y = 0.5 } } }
|
||||
});
|
||||
nodes.Add(new DiagramNode()
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Style = new DiagramShapeStyle() { Fill = "#DCDCDC", StrokeColor = "#DCDCDC" },
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation() { Id = "label1", Content = "Coding" } },
|
||||
Shape = new { type = "Flow", shape = "Process" },
|
||||
Ports = new List<DiagramPort>() { new DiagramPort() { Id = "codingPort", Offset = new PointsShape() { X = 0, Y = 0.5 } } }
|
||||
Ports = new List<DiagramPort>() { new DiagramPort() { Id = "codingPort", Offset = new DiagramPoint() { X = 0, Y = 0.5 } } }
|
||||
});
|
||||
List<DiagramPort> port = new List<DiagramPort>();
|
||||
nodes.Add(new DiagramNode()
|
||||
|
@ -152,9 +152,9 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation() { Id = "label1", Content = "End" } },
|
||||
Shape = new { type = "Flow", shape = "Terminator" }
|
||||
});
|
||||
port.Add(new DiagramPort() { Id = "porterror", Offset = new PointsShape() { X = 0.5, Y = 0 } });
|
||||
port.Add(new DiagramPort() { Id = "portcoding", Offset = new PointsShape() { X = 1, Y = 0.5 } });
|
||||
port.Add(new DiagramPort() { Id = "portdesign", Offset = new PointsShape() { X = 0.5, Y = 1 } });
|
||||
port.Add(new DiagramPort() { Id = "porterror", Offset = new DiagramPoint() { X = 0.5, Y = 0 } });
|
||||
port.Add(new DiagramPort() { Id = "portcoding", Offset = new DiagramPoint() { X = 1, Y = 0.5 } });
|
||||
port.Add(new DiagramPort() { Id = "portdesign", Offset = new DiagramPoint() { X = 0.5, Y = 1 } });
|
||||
nodes.Add(new DiagramNode()
|
||||
{
|
||||
Id = "node7",
|
||||
|
|
|
@ -74,7 +74,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
|
||||
List<Phase> phases1 = new List<Phase>();
|
||||
Phase phase1 = new Phase();
|
||||
phase1.Header = new Header() { Style = new DiagramTextStyle() { StrokeColor = "#757575" } };
|
||||
phase1.Header = new Header() { Style = new DiagramTextStyle() { StrokeColor = "#757575"} };
|
||||
phases1.Add(phase1);
|
||||
|
||||
List<Phase> phases2 = new List<Phase>();
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 60,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Customer query",Offset=new PointsShape(){X=0.5,Y=1 },
|
||||
{ Id = "label1", Content = "Customer query",Offset=new DiagramPoint(){X=0.5,Y=1 },
|
||||
Margin= new DiagramMargin(){ Top=15} } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
|
@ -107,7 +107,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 70,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Enough details?",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Enough details?",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -124,7 +124,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 50,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Analyse",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Analyse",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -158,7 +158,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 70,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Validate",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Validate",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -192,7 +192,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 50,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Request",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Request",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -226,7 +226,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 50,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Log bug/feature",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Log bug/feature",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -244,7 +244,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Height = 55,
|
||||
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
|
||||
Annotations = new List<DiagramNodeAnnotation>() { new DiagramNodeAnnotation()
|
||||
{ Id = "label1", Content = "Implement",Offset=new PointsShape(){X=0.5,Y=0.5 } } },
|
||||
{ Id = "label1", Content = "Implement",Offset=new DiagramPoint(){X=0.5,Y=0.5 } } },
|
||||
Shape = new BpmnShapes()
|
||||
{
|
||||
Type = "Bpmn",
|
||||
|
@ -257,7 +257,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Diagram
|
|||
Collapsed = false,
|
||||
Events = new List<DiagramBpmnSubEvent>()
|
||||
{
|
||||
new DiagramBpmnSubEvent(){Event=BpmnEvents.Intermediate,Trigger=BpmnTriggers.Timer,Offset=new PointsShape(){X=0.5,Y=1},Width=25,Height=25}
|
||||
new DiagramBpmnSubEvent(){Event=BpmnEvents.Intermediate,Trigger=BpmnTriggers.Timer,Offset=new DiagramPoint(){X=0.5,Y=1},Width=25,Height=25}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public IActionResult AutoSave()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult BulletsAndNumbering()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult CharacterFormat()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public ActionResult Chart()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers {
|
||||
public partial class DocumentEditorController : Controller
|
||||
{
|
||||
public ActionResult ColorpickerCustomization()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult Comments()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public ActionResult CustomContextMenu()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult Default()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -13,7 +13,9 @@ using Microsoft.AspNetCore.Http;
|
|||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO;
|
||||
using Syncfusion.EJ2.DocumentEditor;
|
||||
using Syncfusion.DocIORenderer;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Syncfusion.Pdf;
|
||||
using WDocument = Syncfusion.DocIO.DLS.WordDocument;
|
||||
using WFormatType = Syncfusion.DocIO.FormatType;
|
||||
|
||||
|
@ -153,6 +155,136 @@ namespace EJ2CoreSampleBrowser.Controllers.DocumentEditor
|
|||
public string documentData { get; set; }
|
||||
}
|
||||
|
||||
private string RetrieveFileType(string name)
|
||||
{
|
||||
int index = name.LastIndexOf('.');
|
||||
string format = index > -1 && index < name.Length - 1 ?
|
||||
name.Substring(index) : ".doc";
|
||||
return format;
|
||||
}
|
||||
|
||||
internal static WFormatType GetWFormatType(string format)
|
||||
{
|
||||
if (string.IsNullOrEmpty(format))
|
||||
throw new NotSupportedException("EJ2 DocumentEditor does not support this file format.");
|
||||
switch (format.ToLower())
|
||||
{
|
||||
case ".dotx":
|
||||
return WFormatType.Dotx;
|
||||
case ".docx":
|
||||
return WFormatType.Docx;
|
||||
case ".docm":
|
||||
return WFormatType.Docm;
|
||||
case ".dotm":
|
||||
return WFormatType.Dotm;
|
||||
case ".dot":
|
||||
return WFormatType.Dot;
|
||||
case ".doc":
|
||||
return WFormatType.Doc;
|
||||
case ".rtf":
|
||||
return WFormatType.Rtf;
|
||||
case ".html":
|
||||
return WFormatType.Html;
|
||||
case ".txt":
|
||||
return WFormatType.Txt;
|
||||
case ".xml":
|
||||
return WFormatType.WordML;
|
||||
case ".odt":
|
||||
return WFormatType.Odt;
|
||||
case ".md":
|
||||
return WFormatType.Markdown;
|
||||
default:
|
||||
throw new NotSupportedException("EJ2 DocumentEditor does not support this file format.");
|
||||
}
|
||||
}
|
||||
|
||||
public class SaveParameter
|
||||
{
|
||||
public string Content { get; set; }
|
||||
public string FileName { get; set; }
|
||||
public string Format { get; set; }
|
||||
}
|
||||
|
||||
[AcceptVerbs("Post")]
|
||||
[HttpPost]
|
||||
[Route("Export")]
|
||||
public FileStreamResult Export([FromBody] SaveParameter data)
|
||||
{
|
||||
string fileName = data.FileName;
|
||||
string format = RetrieveFileType(string.IsNullOrEmpty(data.Format) ? fileName : data.Format);
|
||||
if (string.IsNullOrEmpty(fileName))
|
||||
{
|
||||
fileName = "Document1.docx";
|
||||
}
|
||||
WDocument document;
|
||||
if (format.ToLower() == ".pdf")
|
||||
{
|
||||
Stream stream = WordDocument.Save(data.Content, FormatType.Docx);
|
||||
document = new Syncfusion.DocIO.DLS.WordDocument(stream, Syncfusion.DocIO.FormatType.Docx);
|
||||
}
|
||||
else
|
||||
{
|
||||
document = WordDocument.Save(data.Content);
|
||||
}
|
||||
return SaveDocument(document, format, fileName);
|
||||
}
|
||||
|
||||
private FileStreamResult SaveDocument(WDocument document, string format, string fileName)
|
||||
{
|
||||
Stream stream = new MemoryStream();
|
||||
string contentType = "";
|
||||
if (format.ToLower() == ".pdf")
|
||||
{
|
||||
contentType = "application/pdf";
|
||||
DocIORenderer render = new DocIORenderer();
|
||||
PdfDocument pdfDocument = render.ConvertToPDF(document);
|
||||
stream = new MemoryStream();
|
||||
pdfDocument.Save(stream);
|
||||
pdfDocument.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
WFormatType type = GetWFormatType(format);
|
||||
switch (type)
|
||||
{
|
||||
case WFormatType.Rtf:
|
||||
contentType = "application/rtf";
|
||||
break;
|
||||
case WFormatType.WordML:
|
||||
contentType = "application/xml";
|
||||
break;
|
||||
case WFormatType.Html:
|
||||
contentType = "application/html";
|
||||
break;
|
||||
case WFormatType.Dotx:
|
||||
contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.template";
|
||||
break;
|
||||
case WFormatType.Docx:
|
||||
contentType = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
||||
break;
|
||||
case WFormatType.Doc:
|
||||
contentType = "application/msword";
|
||||
break;
|
||||
case WFormatType.Dot:
|
||||
contentType = "application/msword";
|
||||
break;
|
||||
case WFormatType.Odt:
|
||||
contentType = "application/vnd.oasis.opendocument.text";
|
||||
break;
|
||||
case WFormatType.Markdown:
|
||||
contentType = "text/markdown";
|
||||
break;
|
||||
}
|
||||
document.Save(stream, type);
|
||||
}
|
||||
document.Close();
|
||||
stream.Position = 0;
|
||||
return new FileStreamResult(stream, contentType)
|
||||
{
|
||||
FileDownloadName = fileName
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
[AcceptVerbs("Post")]
|
||||
[HttpPost]
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult DocumentList()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public ActionResult DocumentProtection()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers {
|
||||
public partial class DocumentEditorController : Controller
|
||||
{
|
||||
public ActionResult Export()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult FormFields()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult HeadersAndFooters()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers {
|
||||
public partial class DocumentEditorController : Controller
|
||||
{
|
||||
public ActionResult HeadingNavigation()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult HyperlinksAndBookmarks()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult MailMerge()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
|
||||
List<object> listdata = new List<object>();
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult MultipleColumns()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -17,8 +17,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public ActionResult Notes()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult ParagraphFormat()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult RightToLeft()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult Ruler()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult SectionFormat()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult Styles()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult TableFormat()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult TableOfContents()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -18,8 +18,10 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
public IActionResult ToolbarCustomization()
|
||||
{
|
||||
List<object> exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
ViewBag.toolbarItems = new string[] {"New", "Open", "Undo", "Redo","Comments", "Image","Table", "Hyperlink","Bookmark", "TableOfContents", "Header", "Footer",
|
||||
"PageSetup", "PageNumber","Break","Find","LocalClipboard", "RestrictEditing" };
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult TrackChanges()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -16,8 +16,10 @@ namespace EJ2CoreSampleBrowser.Controllers {
|
|||
public ActionResult WebLayout()
|
||||
{
|
||||
List < object > exportItems = new List<object>();
|
||||
exportItems.Add(new { text = "Microsoft Word (.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Syncfusion Document Text (*.sfdt)", id = "sfdt" });
|
||||
exportItems.Add(new { text = "Word Document (*.docx)", id = "word" });
|
||||
exportItems.Add(new { text = "Word Template (*.dotx)", id = "dotx" });
|
||||
exportItems.Add(new { text = "Plain Text (*.txt)", id = "txt" });
|
||||
ViewBag.ExportItems = exportItems;
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class DropDownListController : Controller
|
||||
{
|
||||
public IActionResult ObjectValueBinding()
|
||||
{
|
||||
DropDownListRecord model = new DropDownListRecord();
|
||||
model.RecordList = new DropDownListRecord().RecordModelList();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System.Threading.Tasks;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.Gantt
|
||||
{
|
||||
public partial class GanttController : Controller
|
||||
{
|
||||
public IActionResult UndoRedo()
|
||||
{
|
||||
ViewBag.dataSource = GanttData.EditingData();
|
||||
ViewBag.projectResources = GanttData.EditingResources();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Syncfusion.EJ2.Popups;
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class ImageEditorController : Controller
|
||||
{
|
||||
|
||||
public IActionResult CustomToolbar()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class MultiSelectController : Controller
|
||||
{
|
||||
public IActionResult ObjectValueBinding()
|
||||
{
|
||||
MultiSelectRecord model = new MultiSelectRecord();
|
||||
model.RecordList = new MultiSelectRecord().RecordModelList();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class MultiSelectController : Controller
|
||||
{
|
||||
public IActionResult VirtualScroll()
|
||||
{
|
||||
MultiSelectRecord model = new MultiSelectRecord();
|
||||
model.RecordList = new MultiSelectRecord().RecordModelList();
|
||||
return View(model);
|
||||
}
|
||||
}
|
||||
public class MultiSelectRecord
|
||||
{
|
||||
public string ID { get; set; }
|
||||
public string Text { get; set; }
|
||||
public string Group { get; set; }
|
||||
public List<MultiSelectRecord> RecordList { set; get; }
|
||||
public List<MultiSelectRecord> RecordModelList()
|
||||
{
|
||||
Random random = new Random();
|
||||
return Enumerable.Range(1, 150).Select(i => new MultiSelectRecord()
|
||||
{
|
||||
ID = i.ToString(),
|
||||
Text = "Item " + i,
|
||||
Group = GetRandomGroup(random),
|
||||
}).ToList();
|
||||
}
|
||||
public string GetRandomGroup(Random random)
|
||||
{
|
||||
// Generate a random number between 1 and 4 to determine the group
|
||||
int randomGroup = random.Next(1, 5);
|
||||
switch (randomGroup)
|
||||
{
|
||||
case 1:
|
||||
return "Group A";
|
||||
case 2:
|
||||
return "Group B";
|
||||
case 3:
|
||||
return "Group C";
|
||||
case 4:
|
||||
return "Group D";
|
||||
default:
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13,14 +13,14 @@ using Microsoft.AspNetCore.Mvc;
|
|||
using Syncfusion.Drawing;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.PDF
|
||||
{
|
||||
public partial class PdfController : Controller
|
||||
{
|
||||
//
|
||||
// GET: /SplitPDF/
|
||||
|
||||
|
||||
public ActionResult SplitPDF()
|
||||
{
|
||||
return View();
|
||||
|
|
|
@ -72,9 +72,8 @@ namespace EJ2CoreSampleBrowser.Controllers.PDF
|
|||
}
|
||||
else
|
||||
{
|
||||
//Opens an existing document from stream through constructor of `WordDocument` class
|
||||
FileStream fileStreamPath = new FileStream(_hostingEnvironment.WebRootPath + @"/DocIO/WordtoPDF.docx", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
return fileStreamPath;
|
||||
ViewBag.Message = string.Format("Choose a Word format document file.");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Syncfusion.EJ2.PdfViewer;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.PdfViewer
|
||||
{
|
||||
|
||||
public partial class PdfViewerController : Controller
|
||||
{
|
||||
// GET: Default
|
||||
public ActionResult CustomContextMenu()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -21,6 +21,13 @@ using System.Security.Cryptography.X509Certificates;
|
|||
using Syncfusion.Pdf.Security;
|
||||
using Syncfusion.Pdf;
|
||||
using System.Net;
|
||||
using Syncfusion.DocIORenderer;
|
||||
using Syncfusion.Pdf.Graphics;
|
||||
using Syncfusion.Presentation;
|
||||
using Syncfusion.PresentationRenderer;
|
||||
using Syncfusion.XlsIO;
|
||||
using Syncfusion.XlsIORenderer;
|
||||
using WFormatType = Syncfusion.DocIO.FormatType;
|
||||
#if REDIS
|
||||
using Microsoft.Extensions.Caching.Distributed;
|
||||
#endif
|
||||
|
@ -407,6 +414,116 @@ namespace EJ2CoreSampleBrowser.Controllers.PdfViewer
|
|||
return Content(JsonConvert.SerializeObject(jsonResult));
|
||||
}
|
||||
|
||||
[AcceptVerbs("Post")]
|
||||
[HttpPost]
|
||||
[Route("api/[controller]/LoadFile")]
|
||||
public IActionResult LoadFile([FromBody] Dictionary<string, string> jsonObject)
|
||||
{
|
||||
if (jsonObject.ContainsKey("data"))
|
||||
{
|
||||
|
||||
string base64 = jsonObject["data"];
|
||||
//string fileName = args.FileData[0].Name;
|
||||
string type = jsonObject["type"];
|
||||
string data = base64.Split(',')[1];
|
||||
byte[] bytes = Convert.FromBase64String(data);
|
||||
var outputStream = new MemoryStream();
|
||||
Syncfusion.Pdf.PdfDocument pdfDocument = new Syncfusion.Pdf.PdfDocument();
|
||||
using (Stream stream = new MemoryStream(bytes))
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case "docx":
|
||||
case "dot":
|
||||
case "doc":
|
||||
case "dotx":
|
||||
case "docm":
|
||||
case "dotm":
|
||||
case "rtf":
|
||||
Syncfusion.DocIO.DLS.WordDocument doc = new Syncfusion.DocIO.DLS.WordDocument(stream, GetWFormatType(type));
|
||||
//Initialization of DocIORenderer for Word to PDF conversion
|
||||
DocIORenderer render = new DocIORenderer();
|
||||
//Converts Word document into PDF document
|
||||
pdfDocument = render.ConvertToPDF(doc);
|
||||
doc.Close();
|
||||
break;
|
||||
case "pptx":
|
||||
case "pptm":
|
||||
case "potx":
|
||||
case "potm":
|
||||
//Loads or open an PowerPoint Presentation
|
||||
IPresentation pptxDoc = Presentation.Open(stream);
|
||||
pdfDocument = PresentationToPdfConverter.Convert(pptxDoc);
|
||||
pptxDoc.Close();
|
||||
break;
|
||||
case "xlsx":
|
||||
case "xls":
|
||||
ExcelEngine excelEngine = new ExcelEngine();
|
||||
//Loads or open an existing workbook through Open method of IWorkbooks
|
||||
IWorkbook workbook = excelEngine.Excel.Workbooks.Open(stream);
|
||||
//Initialize XlsIO renderer.
|
||||
XlsIORenderer renderer = new XlsIORenderer();
|
||||
//Convert Excel document into PDF document
|
||||
pdfDocument = renderer.ConvertToPDF(workbook);
|
||||
workbook.Close();
|
||||
break;
|
||||
case "jpeg":
|
||||
case "jpg":
|
||||
case "png":
|
||||
case "bmp":
|
||||
//Add a page to the document
|
||||
PdfPage page = pdfDocument.Pages.Add();
|
||||
//Create PDF graphics for the page
|
||||
PdfGraphics graphics = page.Graphics;
|
||||
PdfBitmap image = new PdfBitmap(stream);
|
||||
//Draw the image
|
||||
graphics.DrawImage(image, 0, 0);
|
||||
break;
|
||||
case "pdf":
|
||||
string pdfBase64String = Convert.ToBase64String(bytes);
|
||||
return Content("data:application/pdf;base64," + pdfBase64String);
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
pdfDocument.Save(outputStream);
|
||||
outputStream.Position = 0;
|
||||
byte[] byteArray = outputStream.ToArray();
|
||||
pdfDocument.Close();
|
||||
outputStream.Close();
|
||||
|
||||
string base64String = Convert.ToBase64String(byteArray);
|
||||
return Content("data:application/pdf;base64," + base64String);
|
||||
|
||||
|
||||
}
|
||||
return Content("data:application/pdf;base64," + "");
|
||||
}
|
||||
public static WFormatType GetWFormatType(string format)
|
||||
{
|
||||
if (string.IsNullOrEmpty(format))
|
||||
throw new NotSupportedException("This is not a valid Word documnet.");
|
||||
switch (format.ToLower())
|
||||
{
|
||||
case "dotx":
|
||||
return WFormatType.Dotx;
|
||||
case "docx":
|
||||
return WFormatType.Docx;
|
||||
case "docm":
|
||||
return WFormatType.Docm;
|
||||
case "dotm":
|
||||
return WFormatType.Dotm;
|
||||
case "dot":
|
||||
return WFormatType.Dot;
|
||||
case "doc":
|
||||
return WFormatType.Doc;
|
||||
case "rtf":
|
||||
return WFormatType.Rtf;
|
||||
default:
|
||||
throw new NotSupportedException("This is not a valid Word documnet.");
|
||||
}
|
||||
}
|
||||
|
||||
private string GetDocumentPath(string document)
|
||||
{
|
||||
string documentPath = string.Empty;
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Syncfusion.EJ2.Popups;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
using Syncfusion.EJ2.Navigations;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.Dialog
|
||||
{
|
||||
public partial class PdfViewerController : Controller
|
||||
{
|
||||
public IActionResult MultiFormatViewer()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Syncfusion.EJ2.PdfViewer;
|
||||
using System.IO;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.PdfViewer
|
||||
{
|
||||
|
||||
public partial class PdfViewerController : Controller
|
||||
{
|
||||
// GET: Default
|
||||
public ActionResult OrganizePages()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,131 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2018.
|
||||
// Copyright Syncfusion Inc. 2001-2018. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO;
|
||||
using Syncfusion.Presentation;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers
|
||||
{
|
||||
public partial class PowerPointController : Controller
|
||||
{
|
||||
public IActionResult Image()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public ActionResult Image(string button)
|
||||
{
|
||||
if (button == null)
|
||||
return View();
|
||||
//Create an instance of PowerPoint.
|
||||
IPresentation pptxDoc = Presentation.Create();
|
||||
//Add a blank slide to Presentation.
|
||||
ISlide firstSlide = pptxDoc.Slides.Add(SlideLayoutType.Blank);
|
||||
|
||||
//Add a title text box to the slide.
|
||||
IShape titleShape = firstSlide.Shapes.AddTextBox(55, 23, 853, 72);
|
||||
//Set vertical alignment to the text body.
|
||||
titleShape.TextBody.VerticalAlignment = VerticalAlignmentType.Bottom;
|
||||
//Add a title paragraph.
|
||||
IParagraph titleParagraph = titleShape.TextBody.AddParagraph();
|
||||
//Set the alignment properties for the paragraph.
|
||||
titleParagraph.HorizontalAlignment = HorizontalAlignmentType.Center;
|
||||
//Add a text part.
|
||||
ITextPart titleTextPart = titleParagraph.AddTextPart("Adventure Works Cycles");
|
||||
//Set the font properties for the text part.
|
||||
titleTextPart.Font.FontSize = 36;
|
||||
|
||||
//Add a content text box to the slide.
|
||||
IShape textbox = firstSlide.Shapes.AddTextBox(66, 132, 543, 350);
|
||||
//Add the first paragraph.
|
||||
IParagraph paragraph1 = textbox.TextBody.AddParagraph();
|
||||
//Set bulleted list type.
|
||||
paragraph1.ListFormat.Type = ListType.Bulleted;
|
||||
//Set paragraph properties.
|
||||
paragraph1.LeftIndent = 22;
|
||||
paragraph1.FirstLineIndent = -22;
|
||||
paragraph1.LineSpacing = 38;
|
||||
paragraph1.SpaceBefore = 10;
|
||||
//Add a new text part.
|
||||
paragraph1.AddTextPart("Adventure Works Cycles, the fictitious company on which the Adventure Works sample databases are based, is a large, multinational manufacturing company.");
|
||||
|
||||
//Add the second paragraph.
|
||||
IParagraph paragraph2 = textbox.TextBody.AddParagraph();
|
||||
//Set bulleted list type.
|
||||
paragraph2.ListFormat.Type = ListType.Bulleted;
|
||||
//Set paragraph properties.
|
||||
paragraph2.LeftIndent = 22;
|
||||
paragraph2.FirstLineIndent = -22;
|
||||
paragraph2.LineSpacing = 38;
|
||||
paragraph2.SpaceBefore = 10;
|
||||
//Add a new text part.
|
||||
paragraph2.AddTextPart("The company manufactures and sells metal and composite bicycles to North American, European, and Asian commercial markets. While its base operation is located in Bothell, Washington, with 290 employees, several regional sales teams are located throughout their market base.");
|
||||
string basePath = _hostingEnvironment.WebRootPath;
|
||||
//Create an instance for the image as a stream.
|
||||
FileStream imageStream = new FileStream(basePath + @"/PowerPoint/CycleLogo.jpg", FileMode.Open, FileAccess.Read);
|
||||
//Add a picture to the shape collection.
|
||||
IPicture picture = firstSlide.Shapes.AddPicture(imageStream, 610, 246, 328, 123);
|
||||
//Add alternate text to the picture.
|
||||
picture.Description = "Adventure Works Cycles Logo";
|
||||
//Apply bounding box size and position.
|
||||
picture.Crop.ContainerWidth = 328f;
|
||||
picture.Crop.ContainerHeight = 123f;
|
||||
picture.Crop.ContainerLeft = 609f;
|
||||
picture.Crop.ContainerTop = 246f;
|
||||
//Apply cropping size and offsets.
|
||||
picture.Crop.Width = 370f;
|
||||
picture.Crop.Height = 151f;
|
||||
picture.Crop.OffsetX = -4.32f;
|
||||
picture.Crop.OffsetY = 1.44f;
|
||||
|
||||
//Add a title-only slide to Presentation.
|
||||
ISlide secondSlide = pptxDoc.Slides.Add(SlideLayoutType.TitleOnly);
|
||||
//Retrieve the first shape of the slide.
|
||||
IShape titleShape2 = secondSlide.Shapes[0] as IShape;
|
||||
//Add a title paragraph.
|
||||
IParagraph titleParagraph2 = titleShape2.TextBody.AddParagraph();
|
||||
//Set the alignment properties for the paragraph.
|
||||
titleParagraph2.HorizontalAlignment = HorizontalAlignmentType.Center;
|
||||
//Add a text part.
|
||||
ITextPart titleTextPart2 = titleParagraph2.AddTextPart("About Adventure Works Cycles");
|
||||
//Set the font properties for the text part.
|
||||
titleTextPart2.Font.FontName = "Calibri";
|
||||
titleTextPart2.Font.FontSize = 40;
|
||||
|
||||
//Get an SVG image as a stream.
|
||||
FileStream svgImageStream = new FileStream(basePath + @"/PowerPoint/About.svg", FileMode.Open, FileAccess.Read);
|
||||
//Get a fallback image as a stream.
|
||||
FileStream fallbackImageStream = new FileStream(basePath + @"/PowerPoint/About.png", FileMode.Open, FileAccess.Read);
|
||||
//Add the SVG picture to a slide by specifying its size and position.
|
||||
IPicture svgPicture = secondSlide.Pictures.AddPicture(svgImageStream, fallbackImageStream, 172, 155, 643, 256);
|
||||
//Add alternate text to the picture.
|
||||
svgPicture.Description = "About Adventure Works Cycles";
|
||||
|
||||
//Close the image streams.
|
||||
imageStream.Close();
|
||||
svgImageStream.Close();
|
||||
fallbackImageStream.Close();
|
||||
MemoryStream ms = new MemoryStream();
|
||||
|
||||
//Saves the presentation to the memory stream.
|
||||
pptxDoc.Save(ms);
|
||||
//Set the position of the stream to beginning.
|
||||
ms.Position = 0;
|
||||
//Close the Presentation.
|
||||
pptxDoc.Close();
|
||||
//Initialize the file stream to download the presentation.
|
||||
FileStreamResult fileStreamResult = new FileStreamResult(ms, "application/vnd.openxmlformats-officedocument.presentationml.presentation");
|
||||
//Set the file name.
|
||||
fileStreamResult.FileDownloadName = "Images.pptx";
|
||||
|
||||
return fileStreamResult;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -52,7 +52,7 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
heading.TextBody.Paragraphs[0].Font.FontSize = 18;
|
||||
|
||||
string mswordPath = basePath + @"/PowerPoint/OleTemplate.docx";
|
||||
//Get the excel file as stream
|
||||
//Get the word document as stream
|
||||
Stream wordStream = new FileStream(mswordPath, FileMode.Open);
|
||||
string imagePath = basePath + @"/PowerPoint/OlePicture.png";
|
||||
//Image to be displayed, This can be any image
|
||||
|
@ -71,6 +71,9 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
presentation.Save(ms);
|
||||
//Set the position of the stream to beginning.
|
||||
ms.Position = 0;
|
||||
//Dispose the streams.
|
||||
wordStream.Dispose();
|
||||
imageStream.Dispose();
|
||||
return File(ms, "application/vnd.openxmlformats-officedocument.presentationml.presentation", "InsertOLEObject.pptx");
|
||||
}
|
||||
else
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
using Syncfusion.EJ2.QueryBuilder;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.QueryBuilder
|
||||
{
|
||||
public partial class QueryBuilderController : Controller
|
||||
{
|
||||
public IActionResult CloneFunctionalities()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -19,7 +19,16 @@ namespace EJ2CoreSampleBrowser.Controllers.QueryBuilder
|
|||
{
|
||||
public IActionResult DefaultFunctionalities()
|
||||
{
|
||||
ViewBag.ImportBtn = new ButtonModel() { isPrimary = true, cssClass = "e-flat", content = "Import" };
|
||||
ViewBag.CancelBtn = new ButtonModel() { content = "Cancel", cssClass = "e-flat" };
|
||||
return View();
|
||||
}
|
||||
}
|
||||
public class ButtonModel
|
||||
{
|
||||
public string content { get; set; }
|
||||
public bool isPrimary { get; set; }
|
||||
public string cssClass { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
using Syncfusion.EJ2.QueryBuilder;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.QueryBuilder
|
||||
{
|
||||
public partial class QueryBuilderController : Controller
|
||||
{
|
||||
public IActionResult LockFunctionalities()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
using Syncfusion.EJ2.QueryBuilder;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.QueryBuilder
|
||||
{
|
||||
public partial class QueryBuilderController : Controller
|
||||
{
|
||||
public IActionResult MongoFunctionalities()
|
||||
{
|
||||
ViewBag.ImportBtn = new ButtonModel() { isPrimary = true, cssClass = "e-flat", content = "Import" };
|
||||
ViewBag.CancelBtn = new ButtonModel() { content = "Cancel", cssClass = "e-flat" };
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET8.Controllers.Ribbon
|
||||
{
|
||||
public partial class RibbonController : Controller
|
||||
{
|
||||
public IActionResult ContextualTab()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.Ribbon
|
||||
{
|
||||
public partial class RibbonController : Controller
|
||||
{
|
||||
public IActionResult RibbonGallery()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET6.Controllers.Ribbon
|
||||
{
|
||||
public partial class RibbonController : Controller
|
||||
{
|
||||
public IActionResult RibbonKeyTip()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,6 +18,13 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
{
|
||||
public IActionResult Events()
|
||||
{
|
||||
string hostUrl = "https://ej2-aspcore-service.azurewebsites.net/";
|
||||
ViewBag.ajaxSettings = new {
|
||||
url = hostUrl + "api/FileManager/FileOperations",
|
||||
getImageUrl = hostUrl + "api/FileManager/GetImage",
|
||||
uploadUrl = hostUrl + "api/FileManager/Upload",
|
||||
downloadUrl = hostUrl + "api/FileManager/Download"
|
||||
};
|
||||
ViewBag.items = new[] { "Bold", "Italic", "Underline", "StrikeThrough", "SuperScript", "SubScript", "|",
|
||||
"FontName", "FontSize", "FontColor", "BackgroundColor", "|",
|
||||
"LowerCase", "UpperCase",
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
tooltipText = "Image Editor",
|
||||
template = "<button class=\"e-tbar-btn e-btn\" id=\"imageEditor\"><span class=\"e-btn-icon e-icons e-rte-image-editor\"></span></button>"
|
||||
};
|
||||
ViewBag.image = new object[] { "Replace", "Align", "Caption", "Remove", "-", "InsertLink", "Display", "AltText", imageEdit };
|
||||
ViewBag.image = new object[] { "Replace", "Align", "Caption", "Remove", "-", "InsertLink","OpenImageLink","EditImageLink","RemoveImageLink", "Display", "AltText", imageEdit };
|
||||
|
||||
return View();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.TextArea
|
||||
{
|
||||
public partial class TextAreaController : Controller
|
||||
{
|
||||
public IActionResult Api()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.TextArea
|
||||
{
|
||||
public partial class TextAreaController : Controller
|
||||
{
|
||||
public IActionResult DefaultFunctionalities()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.TextArea
|
||||
{
|
||||
public partial class TextAreaController : Controller
|
||||
{
|
||||
public IActionResult FloatingLabel()
|
||||
{
|
||||
ViewBag.data = new floatLabelValues().TextAreaModel();
|
||||
ViewBag.floatLabelValue = "Auto";
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using EJ2CoreSampleBrowser.Models;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.TextArea
|
||||
{
|
||||
public partial class TextAreaController : Controller
|
||||
{
|
||||
public IActionResult Resize()
|
||||
{
|
||||
ViewBag.data = new resizeValues().TextAreaModel();
|
||||
ViewBag.resizeValue = "Vertical";
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.TextArea
|
||||
{
|
||||
public class TextAreaValue
|
||||
{
|
||||
[Required(ErrorMessage = "Value is required")]
|
||||
public string comments { get; set; }
|
||||
}
|
||||
public partial class TextAreaController : Controller
|
||||
{
|
||||
TextAreaValue textarea = new TextAreaValue();
|
||||
// GET: TextAreaFor
|
||||
public IActionResult TextAreaFor()
|
||||
{
|
||||
textarea.comments = "";
|
||||
return View(textarea);
|
||||
}
|
||||
[HttpPost]
|
||||
|
||||
public IActionResult TextAreaFor(TextAreaValue model)
|
||||
{
|
||||
//posted value is obtained from the model
|
||||
textarea.comments = model.comments;
|
||||
return View(textarea);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -18,6 +18,8 @@ namespace EJ2CoreSampleBrowser.Controllers.TextBoxes
|
|||
{
|
||||
public IActionResult Multiline()
|
||||
{
|
||||
ViewBag.data = new floatValues().TextBoxModel();
|
||||
ViewBag.floatValue = "Auto";
|
||||
return View();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET8.Controllers.Timeline
|
||||
{
|
||||
public partial class TimelineController : Controller
|
||||
{
|
||||
public IActionResult API()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET8.Controllers.Timeline
|
||||
{
|
||||
public partial class TimelineController : Controller
|
||||
{
|
||||
public IActionResult Default()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace EJ2CoreSampleBrowser_NET8.Controllers.Timeline
|
||||
{
|
||||
public partial class TimelineController : Controller
|
||||
{
|
||||
public IActionResult Template()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -21,7 +21,7 @@ namespace EJ2CoreSampleBrowser.Controllers.Word
|
|||
public partial class WordController : Controller
|
||||
{
|
||||
#region TableofContents
|
||||
public ActionResult TableofContents(string Group1, string UpdateTOC)
|
||||
public ActionResult TableOfContents(string Group1, string UpdateTOC)
|
||||
{
|
||||
if (Group1 == null)
|
||||
return View();
|
||||
|
|
|
@ -0,0 +1,187 @@
|
|||
#region Copyright Syncfusion Inc. 2001 - 2024
|
||||
// Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
|
||||
using Syncfusion.DocIO;
|
||||
using Syncfusion.DocIO.DLS;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
using Syncfusion.DocIORenderer;
|
||||
|
||||
|
||||
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Controllers.Word
|
||||
{
|
||||
public partial class WordController : Controller
|
||||
{
|
||||
#region TableOfFigures
|
||||
public ActionResult TableOfFigures(string Group1, string Button, string ExcludeLabelsAndNumbers)
|
||||
{
|
||||
if (Group1 == null)
|
||||
return View();
|
||||
string basePath = _hostingEnvironment.WebRootPath;
|
||||
string dataPath = basePath + @"/Word/TableOfFiguresInput.docx";
|
||||
string contenttype1 = "application/vnd.ms-word.document.12";
|
||||
FileStream fileStream = new FileStream(dataPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
if (Button == "View Template")
|
||||
{
|
||||
return File(fileStream, contenttype1, "TableOfFiguresInput.docx");
|
||||
}
|
||||
try
|
||||
{
|
||||
//Open an existing word document.
|
||||
using (WordDocument document = new WordDocument(fileStream, FormatType.Docx))
|
||||
{
|
||||
fileStream.Dispose();
|
||||
fileStream = null;
|
||||
#region Add Table of Figures
|
||||
//Create a new paragraph.
|
||||
WParagraph paragraph = new WParagraph(document);
|
||||
paragraph.AppendText("List of Figures");
|
||||
//Apply Heading1 style for paragraph.
|
||||
paragraph.ApplyStyle(BuiltinStyle.Heading1);
|
||||
//Insert the paragraph.
|
||||
document.LastSection.Body.ChildEntities.Insert(0, paragraph);
|
||||
|
||||
//Create new paragraph and append TOC.
|
||||
paragraph = new WParagraph(document);
|
||||
TableOfContent tableOfContent = paragraph.AppendTOC(1, 3);
|
||||
//Disable a flag to exclude heading style paragraphs in TOC entries.
|
||||
tableOfContent.UseHeadingStyles = false;
|
||||
//Set the name of SEQ field identifier for table of figures.
|
||||
tableOfContent.TableOfFiguresLabel = "Figure";
|
||||
if (ExcludeLabelsAndNumbers == "ExcludeLabelsAndNumbers")
|
||||
//Disable the flag, to exclude caption's label and number in TOC entries.
|
||||
tableOfContent.IncludeCaptionLabelsAndNumbers = false;
|
||||
|
||||
//Insert the paragraph to the text body.
|
||||
document.LastSection.Body.ChildEntities.Insert(1, paragraph);
|
||||
#endregion
|
||||
|
||||
#region Add caption for pictures
|
||||
//Find all pictures from the document.
|
||||
List<Entity> pictures = document.FindAllItemsByProperty(EntityType.Picture, null, null);
|
||||
// Iterate each picture and add caption.
|
||||
foreach (WPicture picture in pictures)
|
||||
{
|
||||
//Set alternate text as caption for picture.
|
||||
WParagraph captionPara = picture.AddCaption("Figure", CaptionNumberingFormat.Number, CaptionPosition.AfterImage) as WParagraph;
|
||||
captionPara.AppendText(" " + picture.AlternativeText);
|
||||
//Apply formatting to the caption.
|
||||
captionPara.ApplyStyle(BuiltinStyle.Caption);
|
||||
captionPara.ParagraphFormat.BeforeSpacing = 8;
|
||||
captionPara.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Add Table of Tables
|
||||
// Create a new paragraph.
|
||||
paragraph = new WParagraph(document);
|
||||
paragraph.AppendText("List of Tables");
|
||||
// Apply Heading1 style for paragraph.
|
||||
paragraph.ApplyStyle(BuiltinStyle.Heading1);
|
||||
// Insert the paragraph.
|
||||
document.LastSection.Body.ChildEntities.Insert(2, paragraph);
|
||||
|
||||
//Create a new paragraph and append TOC.
|
||||
paragraph = new WParagraph(document);
|
||||
tableOfContent = paragraph.AppendTOC(1, 3);
|
||||
//Disable a flag to exclude heading style paragraphs in TOC entries.
|
||||
tableOfContent.UseHeadingStyles = false;
|
||||
//Set the name of SEQ field identifier for table of tables.
|
||||
tableOfContent.TableOfFiguresLabel = "Table";
|
||||
if (ExcludeLabelsAndNumbers == "ExcludeLabelsAndNumbers")
|
||||
//Disable the flag, to exclude caption's label and number in TOC entries.
|
||||
tableOfContent.IncludeCaptionLabelsAndNumbers = false;
|
||||
// Insert the paragraph to the text body.
|
||||
document.LastSection.Body.ChildEntities.Insert(3, paragraph);
|
||||
#endregion
|
||||
|
||||
#region Add caption for tables
|
||||
// Find all tables from the document.
|
||||
List<Entity> tables = document.FindAllItemsByProperty(EntityType.Table, null, null);
|
||||
//Iterate each table and add caption.
|
||||
foreach (WTable table in tables)
|
||||
{
|
||||
//Gets the table index.
|
||||
int tableIndex = table.OwnerTextBody.ChildEntities.IndexOf(table);
|
||||
//Create a new paragraph and appends the sequence field to use as a caption.
|
||||
WParagraph captionPara = new WParagraph(document);
|
||||
captionPara.AppendText("Table ");
|
||||
captionPara.AppendField("Table", FieldType.FieldSequence);
|
||||
//Set alternate text as caption for table.
|
||||
captionPara.AppendText(" " + table.Description);
|
||||
// Apply formatting to the paragraph.
|
||||
captionPara.ApplyStyle(BuiltinStyle.Caption);
|
||||
captionPara.ParagraphFormat.BeforeSpacing = 8;
|
||||
captionPara.ParagraphFormat.HorizontalAlignment = HorizontalAlignment.Center;
|
||||
//Insert the paragraph next to the table.
|
||||
table.OwnerTextBody.ChildEntities.Insert(tableIndex + 1, captionPara);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Update
|
||||
//Update all document fields to update SEQ fields.
|
||||
document.UpdateDocumentFields();
|
||||
//Update the table of contents.
|
||||
document.UpdateTableOfContents();
|
||||
#endregion
|
||||
|
||||
#region Document SaveOption
|
||||
string filename = "";
|
||||
string contenttype = "";
|
||||
MemoryStream ms = new MemoryStream();
|
||||
//Save as .docx format.
|
||||
if (Group1 == "WordDocx")
|
||||
{
|
||||
filename = "TableOfFigures.docx";
|
||||
contenttype = "application/vnd.ms-word.document.12";
|
||||
document.Save(ms, FormatType.Docx);
|
||||
}
|
||||
// Save as .doc format.
|
||||
else if (Group1 == "WordDoc")
|
||||
{
|
||||
filename = "TableOfFigures.doc";
|
||||
contenttype = "application/msword";
|
||||
document.Save(ms, FormatType.Doc);
|
||||
}
|
||||
//Save as .xml format.
|
||||
else if (Group1 == "WordML")
|
||||
{
|
||||
filename = "TableOfFigures.xml";
|
||||
contenttype = "application/msword";
|
||||
document.Save(ms, FormatType.WordML);
|
||||
}
|
||||
//Save as .pdf format.
|
||||
else if (Group1 == "Pdf")
|
||||
{
|
||||
filename = "TableOfFigures.pdf";
|
||||
contenttype = "application/pdf";
|
||||
Syncfusion.DocIORenderer.DocIORenderer renderer = new Syncfusion.DocIORenderer.DocIORenderer();
|
||||
Syncfusion.Pdf.PdfDocument pdfDoc = renderer.ConvertToPDF(document);
|
||||
pdfDoc.Save(ms);
|
||||
pdfDoc.Close();
|
||||
renderer.Dispose();
|
||||
}
|
||||
#endregion Document SaveOption
|
||||
ms.Position = 0;
|
||||
return File(ms, contenttype, filename);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
ViewBag.Message = string.Format("The input document could not be processed completely, Could you please email the document to support@syncfusion.com for troubleshooting.");
|
||||
}
|
||||
return View();
|
||||
}
|
||||
|
||||
#endregion TableOfFigures
|
||||
}
|
||||
}
|
|
@ -22,25 +22,27 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.25" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.GridExport.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.GridExport.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -23,4 +23,3 @@ Global
|
|||
SolutionGuid = {64565AF7-1372-47D6-86E7-F1297BC5FFF5}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
|
|
|
@ -22,25 +22,27 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.0" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.GridExport.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.GridExport.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -23,4 +23,3 @@ Global
|
|||
SolutionGuid = {EAFF0E5A-D397-4A01-8A96-838B4ADC1C37}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.25" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -19,15 +19,17 @@
|
|||
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.25" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0" Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.Spreadsheet.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -235,7 +235,6 @@ window.samplesList = [
|
|||
"name": "Worksheet To Image",
|
||||
"category": "Conversions",
|
||||
"order": 7,
|
||||
"type": "update",
|
||||
"component": "Excel",
|
||||
"dir": "Excel",
|
||||
"uid": "00444422",
|
||||
|
@ -286,7 +285,6 @@ window.samplesList = [
|
|||
"name": "Pivot Table",
|
||||
"category": "Business Intelligence",
|
||||
"order": 9,
|
||||
"type": "update",
|
||||
"component": "Excel",
|
||||
"dir": "Excel",
|
||||
"uid": "00616127",
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
#region Copyright Syncfusion Inc. 2001-2024.
|
||||
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
|
||||
// Use of this code is subject to the terms of our license.
|
||||
// A copy of the current license can be obtained at any time by e-mailing
|
||||
// licensing@syncfusion.com. Any infringement will be prosecuted under
|
||||
// applicable laws.
|
||||
#endregion
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
namespace EJ2CoreSampleBrowser.Models
|
||||
{
|
||||
public class EmployeeData
|
||||
{
|
||||
public EmployeeData()
|
||||
{
|
||||
|
||||
}
|
||||
public EmployeeData(int EmployeeID, string FirstName, string LastName, string Title, DateTime BirthDate, DateTime HireDate, int ReportsTo, string Address, string PostalCode, string Phone, string City, string Country, int Age, string PrimaryFramework)
|
||||
{
|
||||
this.EmployeeID = EmployeeID;
|
||||
this.FirstName = FirstName;
|
||||
this.LastName = LastName;
|
||||
this.Title = Title;
|
||||
this.BirthDate = BirthDate;
|
||||
this.HireDate = HireDate;
|
||||
this.ReportsTo = ReportsTo;
|
||||
this.Address = Address;
|
||||
this.PostalCode = PostalCode;
|
||||
this.Phone = Phone;
|
||||
this.City = City;
|
||||
this.Country = Country;
|
||||
this.Age = Age;
|
||||
this.PrimaryFramework = PrimaryFramework;
|
||||
|
||||
}
|
||||
public int EmployeeID { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Title { get; set; }
|
||||
public DateTime BirthDate { get; set; }
|
||||
public DateTime HireDate { get; set; }
|
||||
|
||||
public int ReportsTo { get; set; }
|
||||
|
||||
public string Address { get; set; }
|
||||
public string PostalCode { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string City { get; set; }
|
||||
public string Country { get; set; }
|
||||
public int Age { get; set; }
|
||||
public string PrimaryFramework { get; set; }
|
||||
public static List<EmployeeData> GetAllRecords()
|
||||
{
|
||||
List<EmployeeData> Emp = new List<Models.EmployeeData>();
|
||||
Emp.Add(new EmployeeData(1, "Nancy", "Davolio", "Sales Representative", new DateTime(1948, 12, 08), new DateTime(1992, 05, 01), 2, "507 - 20th Ave. E.Apt. 2A ", " 98122", "(206) 555-9857 ", "Seattle ", "USA", 41, "React"));
|
||||
Emp.Add(new EmployeeData(2, "Andrew", "Fuller", "Vice President, Sales", new DateTime(1952, 02, 19), new DateTime(1992, 08, 14), 4, "908 W. Capital Way", "98401 ", "(206) 555-9482 ", "Kirkland ", "USA", 42, "Angular"));
|
||||
Emp.Add(new EmployeeData(3, "Janet", "Leverling", "Sales Representative", new DateTime(1963, 08, 30), new DateTime(1992, 04, 01), 3, " 4110 Old Redmond Rd.", "98052 ", "(206) 555-8122", "Redmond ", "USA ", 43, "Vue"));
|
||||
Emp.Add(new EmployeeData(4, "Margaret", "Peacock", "Sales Representative", new DateTime(1937, 09, 19), new DateTime(1993, 05, 03), 6, "14 Garrett Hill ", "SW1 8JR ", "(71) 555-4848 ", "London ", "UK ", 44, "Javascript"));
|
||||
Emp.Add(new EmployeeData(5, "Steven", "Buchanan", "Sales Manager", new DateTime(1955, 03, 04), new DateTime(1993, 10, 17), 8, "Coventry HouseMiner Rd. ", "EC2 7JR ", " (206) 555-8122", "Tacoma ", " USA", 45, "Typescript"));
|
||||
Emp.Add(new EmployeeData(6, "Michael", "Suyama", "Sales Representative", new DateTime(1963, 07, 02), new DateTime(1993, 10, 17), 2, " 7 Houndstooth Rd.", " WG2 7LT", "(71) 555-4444 ", "London ", "UK ", 46, "Blazor"));
|
||||
Emp.Add(new EmployeeData(7, "Robert", "King", "Sales Representative", new DateTime(1960, 05, 29), new DateTime(1994, 01, 02), 7, "Edgeham HollowWinchester Way ", "RG1 9SP ", "(71) 555-5598 ", "London ", " UK", 47, "ASP.NET Core"));
|
||||
Emp.Add(new EmployeeData(8, "Laura", "Callahan", "Inside Sales Coordinator", new DateTime(1958, 01, 09), new DateTime(1994, 03, 05), 9, "722 Moss Bay Blvd. ", "98033 ", " (206) 555-3412", "Seattle ", "USA ", 48, "ASP.NET MVC"));
|
||||
Emp.Add(new EmployeeData(9, "Anne", "Dodsworth", "Sales Representative", new DateTime(1966, 01, 27), new DateTime(1994, 11, 15), 5, "4726 - 11th Ave. N.E. ", "98105 ", "(71) 555-5598 ", " London", "UK ", 49, "Java"));
|
||||
return Emp;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -32,7 +32,7 @@ namespace EJ2CoreSampleBrowser.Models
|
|||
this.Phone = Phone;
|
||||
this.City = City;
|
||||
this.Country = Country;
|
||||
|
||||
|
||||
}
|
||||
public int EmployeeID { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
|
|
|
@ -82,5 +82,38 @@ namespace EJ2CoreSampleBrowser.Models
|
|||
return floatText;
|
||||
}
|
||||
}
|
||||
|
||||
public class floatLabelValues
|
||||
{
|
||||
public string floatLabelValue { get; set; }
|
||||
|
||||
public string text { get; set; }
|
||||
|
||||
public List<floatLabelValues> TextAreaModel()
|
||||
{
|
||||
List<floatLabelValues> floatLabelText = new List<floatLabelValues>();
|
||||
floatLabelText.Add(new floatLabelValues { floatLabelValue = "Auto", text = "Auto" });
|
||||
floatLabelText.Add(new floatLabelValues { floatLabelValue = "Never", text = "Never" });
|
||||
floatLabelText.Add(new floatLabelValues { floatLabelValue = "Always", text = "Always" });
|
||||
return floatLabelText;
|
||||
}
|
||||
}
|
||||
|
||||
public class resizeValues
|
||||
{
|
||||
public string resizeValue { get; set; }
|
||||
|
||||
public string text { get; set; }
|
||||
|
||||
public List<resizeValues> TextAreaModel()
|
||||
{
|
||||
List<resizeValues> resizeValueText = new List<resizeValues>();
|
||||
resizeValueText.Add(new resizeValues { resizeValue = "Vertical", text = "Vertical" });
|
||||
resizeValueText.Add(new resizeValues { resizeValue = "Horizontal", text = "Horizontal" });
|
||||
resizeValueText.Add(new resizeValues { resizeValue = "Both", text = "Both" });
|
||||
resizeValueText.Add(new resizeValues { resizeValue = "None", text = "None" });
|
||||
return resizeValueText;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,21 +18,21 @@ namespace CoreDemos
|
|||
{
|
||||
List<ThemeList> theme = new List<ThemeList>();
|
||||
theme.Add(new ThemeList { Id = "material3", Theme = "Material3", Index = 0 });
|
||||
theme.Add(new ThemeList { Id = "material3-dark", Theme = "Material3 Dark", Index = 1});
|
||||
theme.Add(new ThemeList { Id = "fluent", Theme = "Fluent", Index = 2 });
|
||||
theme.Add(new ThemeList { Id = "fluent-dark", Theme = "Fluent Dark", Index = 3});
|
||||
theme.Add(new ThemeList { Id = "bootstrap5", Theme = "Bootstrap v5", Index = 4 });
|
||||
theme.Add(new ThemeList { Id = "bootstrap5-dark", Theme = "Bootstrap v5 Dark", Index = 5 });
|
||||
theme.Add(new ThemeList { Id = "tailwind", Theme = "Tailwind CSS", Index = 6 });
|
||||
theme.Add(new ThemeList { Id = "tailwind-dark", Theme = "Tailwind CSS Dark", Index = 7});
|
||||
theme.Add(new ThemeList { Id = "material", Theme = "Material", Index = 8 });
|
||||
theme.Add(new ThemeList { Id = "bootstrap4", Theme = "Bootstrap v4", Index = 9 });
|
||||
if (isDevelopment)
|
||||
{
|
||||
theme.Add(new ThemeList { Id = "bootstrap", Theme = "Bootstrap", Index = 10 });
|
||||
theme.Add(new ThemeList { Id = "bootstrap-dark", Theme = "Bootstrap Dark", Index = 11 });
|
||||
}
|
||||
theme.Add(new ThemeList { Id = "highcontrast", Theme = "High Contrast", Index = 12 });
|
||||
//theme.Add(new ThemeList { Id = "material3-dark", Theme = "Material3 Dark", Index = 1});
|
||||
theme.Add(new ThemeList { Id = "fluent", Theme = "Fluent", Index = 1 });
|
||||
//theme.Add(new ThemeList { Id = "fluent-dark", Theme = "Fluent Dark", Index = 3});
|
||||
theme.Add(new ThemeList { Id = "bootstrap5", Theme = "Bootstrap v5", Index = 2 });
|
||||
// theme.Add(new ThemeList { Id = "bootstrap5-dark", Theme = "Bootstrap v5 Dark", Index = 4 });
|
||||
theme.Add(new ThemeList { Id = "tailwind", Theme = "Tailwind CSS", Index = 3 });
|
||||
//theme.Add(new ThemeList { Id = "tailwind-dark", Theme = "Tailwind CSS Dark", Index = 6});
|
||||
// theme.Add(new ThemeList { Id = "material", Theme = "Material", Index = 7 });
|
||||
// theme.Add(new ThemeList { Id = "bootstrap4", Theme = "Bootstrap v4", Index = 8 });
|
||||
//if (isDevelopment)
|
||||
//{
|
||||
// theme.Add(new ThemeList { Id = "bootstrap", Theme = "Bootstrap", Index = 9 });
|
||||
// theme.Add(new ThemeList { Id = "bootstrap-dark", Theme = "Bootstrap Dark", Index = 10 });
|
||||
//}
|
||||
theme.Add(new ThemeList { Id = "highcontrast", Theme = "High Contrast", Index = 4 });
|
||||
return theme;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,4 +16,3 @@
|
|||
<add key="All" value="(Aggregate source)"/>
|
||||
</activePackageSource>
|
||||
</configuration>
|
||||
|
||||
|
|
|
@ -20,16 +20,22 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0"
|
||||
Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -50,4 +56,4 @@
|
|||
<None Remove="ej2-web-services\**" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -20,16 +20,22 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0"
|
||||
Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XpsToPdfConverter.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PdfToImageConverter.Net" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
<PackageReference Include="Syncfusion.XlsIO.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.XlsIORenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace EJ2CoreSampleBrowser.Controllers
|
|||
{
|
||||
public IActionResult Index()
|
||||
{
|
||||
return RedirectToAction("Default", "PDF");
|
||||
return RedirectToAction("Default", "Pdf");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"Document Processing Library": [ "PDF" ],
|
||||
"Document Processing Library": [ "Pdf" ],
|
||||
"Viewer": [ "PdfViewer" ]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ if (!window) {
|
|||
window.samplesList = [
|
||||
{
|
||||
"name": "PDF",
|
||||
"directory": "PDF",
|
||||
"type": "update",
|
||||
"directory": "Pdf",
|
||||
"category": "Document Processing Library",
|
||||
"samples": [
|
||||
{
|
||||
|
@ -15,7 +14,7 @@ window.samplesList = [
|
|||
"category": "PDF",
|
||||
"order": 0,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464600"
|
||||
},
|
||||
|
@ -25,7 +24,7 @@ window.samplesList = [
|
|||
"category": "Product Showcase",
|
||||
"order": 1,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464601"
|
||||
},
|
||||
|
@ -35,7 +34,7 @@ window.samplesList = [
|
|||
"category": "Product Showcase",
|
||||
"order": 1,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464602"
|
||||
},
|
||||
|
@ -45,7 +44,7 @@ window.samplesList = [
|
|||
"category": "Getting Started",
|
||||
"order": 2,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464603"
|
||||
},
|
||||
|
@ -55,7 +54,7 @@ window.samplesList = [
|
|||
"category": "Compression",
|
||||
"order": 3,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464646"
|
||||
},
|
||||
|
@ -65,7 +64,7 @@ window.samplesList = [
|
|||
"category": "Drawing Text",
|
||||
"order": 4,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464604"
|
||||
},
|
||||
|
@ -75,7 +74,7 @@ window.samplesList = [
|
|||
"category": "Drawing Text",
|
||||
"order": 4,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464605"
|
||||
},
|
||||
|
@ -85,7 +84,7 @@ window.samplesList = [
|
|||
"category": "Drawing Text",
|
||||
"order": 4,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464606"
|
||||
},
|
||||
|
@ -95,7 +94,7 @@ window.samplesList = [
|
|||
"category": "Drawing Text",
|
||||
"order": 4,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464607"
|
||||
},
|
||||
|
@ -105,7 +104,7 @@ window.samplesList = [
|
|||
"category": "Graphics",
|
||||
"order": 5,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464608"
|
||||
},
|
||||
|
@ -115,7 +114,7 @@ window.samplesList = [
|
|||
"category": "Graphics",
|
||||
"order": 5,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464609"
|
||||
},
|
||||
|
@ -125,7 +124,7 @@ window.samplesList = [
|
|||
"category": "Graphics",
|
||||
"order": 5,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464610"
|
||||
},
|
||||
|
@ -135,17 +134,17 @@ window.samplesList = [
|
|||
"category": "Graphics",
|
||||
"order": 5,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464611"
|
||||
},
|
||||
{
|
||||
"url": "MultiColumnHTMLText",
|
||||
"url": "MultiColumnHtmlText",
|
||||
"name": "Multi Column HTML Text",
|
||||
"category": "Graphics",
|
||||
"order": 5,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464649"
|
||||
},
|
||||
|
@ -155,7 +154,7 @@ window.samplesList = [
|
|||
"category": "Tables",
|
||||
"order": 6,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464612"
|
||||
},
|
||||
|
@ -165,7 +164,7 @@ window.samplesList = [
|
|||
"category": "Tables",
|
||||
"order": 6,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464613"
|
||||
},
|
||||
|
@ -175,7 +174,7 @@ window.samplesList = [
|
|||
"category": "Import and Export",
|
||||
"order": 7,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464614"
|
||||
},
|
||||
|
@ -185,7 +184,7 @@ window.samplesList = [
|
|||
"category": "Import and Export",
|
||||
"order": 7,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464615"
|
||||
},
|
||||
|
@ -195,7 +194,7 @@ window.samplesList = [
|
|||
"category": "Import and Export",
|
||||
"order": 7,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464645"
|
||||
},
|
||||
|
@ -205,7 +204,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464616"
|
||||
},
|
||||
|
@ -215,7 +214,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464641"
|
||||
},
|
||||
|
@ -225,7 +224,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464651"
|
||||
},
|
||||
|
@ -235,7 +234,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464652"
|
||||
},
|
||||
|
@ -245,7 +244,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464642"
|
||||
},
|
||||
|
@ -255,7 +254,7 @@ window.samplesList = [
|
|||
"category": "Conversions",
|
||||
"order": 8,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464659",
|
||||
"parentId": "038",
|
||||
|
@ -270,7 +269,7 @@ window.samplesList = [
|
|||
"category": "Security",
|
||||
"order": 9,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464617"
|
||||
},
|
||||
|
@ -280,7 +279,7 @@ window.samplesList = [
|
|||
"category": "Security",
|
||||
"order": 9,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464618"
|
||||
},
|
||||
|
@ -290,7 +289,7 @@ window.samplesList = [
|
|||
"category": "Security",
|
||||
"order": 9,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464644"
|
||||
},
|
||||
|
@ -300,7 +299,7 @@ window.samplesList = [
|
|||
"category": "Security",
|
||||
"order": 9,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464647"
|
||||
},
|
||||
|
@ -310,7 +309,7 @@ window.samplesList = [
|
|||
"category": "Settings",
|
||||
"order": 10,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464619"
|
||||
},
|
||||
|
@ -320,7 +319,7 @@ window.samplesList = [
|
|||
"category": "Settings",
|
||||
"order": 10,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464620"
|
||||
},
|
||||
|
@ -330,7 +329,7 @@ window.samplesList = [
|
|||
"category": "Settings",
|
||||
"order": 10,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464621"
|
||||
},
|
||||
|
@ -340,7 +339,7 @@ window.samplesList = [
|
|||
"category": "Settings",
|
||||
"order": 10,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464622"
|
||||
},
|
||||
|
@ -350,7 +349,7 @@ window.samplesList = [
|
|||
"category": "Analyze Document",
|
||||
"order": 11,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464643"
|
||||
},
|
||||
|
@ -360,7 +359,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464623"
|
||||
},
|
||||
|
@ -370,7 +369,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464624"
|
||||
},
|
||||
|
@ -380,7 +379,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464625"
|
||||
},
|
||||
|
@ -390,7 +389,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464626"
|
||||
},
|
||||
|
@ -400,7 +399,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464627"
|
||||
},
|
||||
|
@ -410,7 +409,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464628"
|
||||
},
|
||||
|
@ -420,7 +419,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464629"
|
||||
},
|
||||
|
@ -430,7 +429,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464630"
|
||||
},
|
||||
|
@ -440,7 +439,7 @@ window.samplesList = [
|
|||
"category": "User Interaction",
|
||||
"order": 12,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464631"
|
||||
},
|
||||
|
@ -450,7 +449,7 @@ window.samplesList = [
|
|||
"category": "Conformance",
|
||||
"order": 13,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464632"
|
||||
},
|
||||
|
@ -460,7 +459,7 @@ window.samplesList = [
|
|||
"category": "Conformance",
|
||||
"order": 13,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464648"
|
||||
},
|
||||
|
@ -470,7 +469,7 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464633"
|
||||
},
|
||||
|
@ -480,8 +479,7 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"type": "update",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464634"
|
||||
},
|
||||
|
@ -491,7 +489,7 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464635"
|
||||
},
|
||||
|
@ -501,17 +499,17 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464636"
|
||||
},
|
||||
{
|
||||
"url": "ImportandStamp",
|
||||
"url": "ImportAndStamp",
|
||||
"name": "Import and Stamp",
|
||||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464637"
|
||||
},
|
||||
|
@ -521,7 +519,7 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464638"
|
||||
},
|
||||
|
@ -531,27 +529,27 @@ window.samplesList = [
|
|||
"category": "Modify Documents",
|
||||
"order": 14,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464650"
|
||||
},
|
||||
{
|
||||
"url": "AutoTag",
|
||||
"url": "Autotag",
|
||||
"name": "Autotag",
|
||||
"category": "Accessibility",
|
||||
"order": 15,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464639"
|
||||
},
|
||||
{
|
||||
"url": "CustomTag",
|
||||
"url": "Customtag",
|
||||
"name": "Customtag",
|
||||
"category": "Accessibility",
|
||||
"order": 15,
|
||||
"component": "PDF",
|
||||
"dir": "PDF",
|
||||
"dir": "Pdf",
|
||||
"parentId": "046",
|
||||
"uid": "00464640"
|
||||
}
|
||||
|
@ -559,118 +557,155 @@ window.samplesList = [
|
|||
"order": 7,
|
||||
"uid": "046"
|
||||
},
|
||||
{
|
||||
"name": "PDF Viewer",
|
||||
"directory": "PdfViewer",
|
||||
"category": "Viewer",
|
||||
"type": "update",
|
||||
"samples": [
|
||||
{
|
||||
"url": "Default",
|
||||
"name": "Default Functionalities",
|
||||
"category": "PDF Viewer",
|
||||
"order": 0,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048480"
|
||||
},
|
||||
{
|
||||
"url": "ReadOnly",
|
||||
"name": "Read-Only",
|
||||
"category": "Document Security",
|
||||
"order": 1,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048481",
|
||||
"type": "new",
|
||||
},
|
||||
{
|
||||
"url": "DocumentList",
|
||||
"name": "Document List",
|
||||
"category": "File Management",
|
||||
"order": 2,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048482",
|
||||
"type": "new"
|
||||
},
|
||||
{
|
||||
"url": "CustomToolbar",
|
||||
"name": "Custom Toolbar",
|
||||
"category": "Toolbar",
|
||||
"order": 3,
|
||||
"type": "update",
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048483",
|
||||
"type": "update"
|
||||
},
|
||||
{
|
||||
"url": "RightToLeft",
|
||||
"name": "Right To Left",
|
||||
"category": "Localization",
|
||||
"order": 4,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048484"
|
||||
},
|
||||
{
|
||||
"url": "FormFilling",
|
||||
"name": "Form Filling",
|
||||
"category": "PDF Form",
|
||||
"order": 5,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048485"
|
||||
},
|
||||
{
|
||||
"url": "FormDesigner",
|
||||
"name": "Form Designer",
|
||||
"category": "PDF Form",
|
||||
"order": 5,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048486"
|
||||
},
|
||||
{
|
||||
"url": "Annotations",
|
||||
"name": "Annotations",
|
||||
"category": "Annotation",
|
||||
"order": 6,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048487",
|
||||
},
|
||||
{
|
||||
"url": "HandwrittenSignature",
|
||||
"name": "Handwritten Signature",
|
||||
"category": "Signature",
|
||||
"order": 7,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048488",
|
||||
},
|
||||
{
|
||||
"url": "InvisibleSignature",
|
||||
"name": "Invisible Signature",
|
||||
"category": "Signature",
|
||||
"order": 7,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048489",
|
||||
}
|
||||
],
|
||||
"order": 8,
|
||||
"uid": "048"
|
||||
}
|
||||
{
|
||||
"name": "PDF Viewer",
|
||||
"directory": "PdfViewer",
|
||||
"category": "Viewer",
|
||||
"type": "update",
|
||||
"samples": [
|
||||
{
|
||||
"url": "Default",
|
||||
"name": "Default Functionalities",
|
||||
"category": "PDF Viewer",
|
||||
"order": 0,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048480"
|
||||
},
|
||||
{
|
||||
"url": "ReadOnly",
|
||||
"name": "Read-Only",
|
||||
"category": "Document Security",
|
||||
"order": 1,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048481",
|
||||
},
|
||||
{
|
||||
"url": "DocumentList",
|
||||
"name": "Document List",
|
||||
"category": "File Management",
|
||||
"order": 2,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048482",
|
||||
},
|
||||
{
|
||||
"url": "MultiFormatViewer",
|
||||
"name": "Multi-Format Viewer",
|
||||
"category": "File Management",
|
||||
"type": "new",
|
||||
"order": 2,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048492",
|
||||
},
|
||||
{
|
||||
"url": "OrganizePages",
|
||||
"name": "Organize Pages",
|
||||
"category": "Editor",
|
||||
"order": 3,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048483",
|
||||
"type": "new"
|
||||
},
|
||||
{
|
||||
"url": "CustomToolbar",
|
||||
"name": "Toolbar",
|
||||
"category": "Customization",
|
||||
"order": 4,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048484",
|
||||
},
|
||||
{
|
||||
"url": "CustomContextMenu",
|
||||
"name": "Context Menu",
|
||||
"category": "Customization",
|
||||
"order": 4,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048485",
|
||||
"type": "new"
|
||||
},
|
||||
{
|
||||
"url": "RightToLeft",
|
||||
"name": "Right To Left",
|
||||
"category": "Localization",
|
||||
|
||||
"order": 5,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
|
||||
"uid": "0048486"
|
||||
},
|
||||
{
|
||||
"url": "FormFilling",
|
||||
"name": "Form Filling",
|
||||
"category": "PDF Form",
|
||||
|
||||
"order": 6,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
|
||||
"uid": "0048487"
|
||||
},
|
||||
{
|
||||
"url": "FormDesigner",
|
||||
"name": "Form Designer",
|
||||
"category": "PDF Form",
|
||||
|
||||
"order": 6,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
|
||||
"uid": "0048488"
|
||||
},
|
||||
{
|
||||
"url": "Annotations",
|
||||
"name": "Annotations",
|
||||
"category": "Annotation",
|
||||
"order": 7,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048489",
|
||||
},
|
||||
{
|
||||
"url": "HandwrittenSignature",
|
||||
"name": "Handwritten Signature",
|
||||
"category": "Signature",
|
||||
|
||||
"order": 8,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
|
||||
"uid": "0048490",
|
||||
},
|
||||
{
|
||||
"url": "InvisibleSignature",
|
||||
"name": "Invisible Signature",
|
||||
"category": "Signature",
|
||||
"order": 8,
|
||||
"component": "PdfViewer",
|
||||
"dir": "PdfViewer",
|
||||
"parentId": "048",
|
||||
"uid": "0048491",
|
||||
}
|
||||
],
|
||||
"order": 8,
|
||||
"uid": "048"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -20,16 +20,18 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0"
|
||||
Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -20,16 +20,18 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Caching.Redis" Version="2.2.0"
|
||||
Condition="$(DefineConstants.Contains('REDIS'))" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.11" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="24.2.3" />
|
||||
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Pdf.Imaging.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Presentation.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.PresentationRenderer.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.Licensing" Version="25.1.35" />
|
||||
<PackageReference Include="Syncfusion.SkiaSharpHelper.Net.Core" Version="25.1.35" />
|
||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -33,7 +33,6 @@ window.samplesList = [
|
|||
"url": "PPTXToImage",
|
||||
"name": "PPTX To Image",
|
||||
"category": "Conversions",
|
||||
"type": "update",
|
||||
"order": 2,
|
||||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
|
@ -44,7 +43,6 @@ window.samplesList = [
|
|||
"url": "PPTXToPDF",
|
||||
"name": "PPTX To PDF",
|
||||
"category": "Conversions",
|
||||
"type": "update",
|
||||
"order": 2,
|
||||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
|
@ -112,6 +110,17 @@ window.samplesList = [
|
|||
"uid": "00454559"
|
||||
|
||||
},
|
||||
{
|
||||
"url": "Image",
|
||||
"name": "Image",
|
||||
"category": "Slide Elements",
|
||||
"order": 5,
|
||||
"type": "update",
|
||||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045460"
|
||||
},
|
||||
{
|
||||
"url": "Chart",
|
||||
"name": "Chart",
|
||||
|
@ -120,7 +129,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045460"
|
||||
"uid": "0045461"
|
||||
},
|
||||
{
|
||||
"url": "Slide",
|
||||
|
@ -130,7 +139,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045461"
|
||||
"uid": "0045462"
|
||||
},
|
||||
{
|
||||
"url": "SmartArt",
|
||||
|
@ -140,7 +149,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045462"
|
||||
"uid": "0045463"
|
||||
},
|
||||
{
|
||||
"url": "Table",
|
||||
|
@ -150,7 +159,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045463"
|
||||
"uid": "0045464"
|
||||
},
|
||||
{
|
||||
"url": "Comment",
|
||||
|
@ -160,7 +169,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045464"
|
||||
"uid": "0045465"
|
||||
},
|
||||
{
|
||||
"url": "Connector",
|
||||
|
@ -170,7 +179,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045465"
|
||||
"uid": "0045466"
|
||||
},
|
||||
{
|
||||
"url": "OLEObject",
|
||||
|
@ -180,7 +189,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045466"
|
||||
"uid": "0045467"
|
||||
},
|
||||
{
|
||||
"url": "HeaderAndFooter",
|
||||
|
@ -190,7 +199,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045467"
|
||||
"uid": "0045468"
|
||||
},
|
||||
{
|
||||
"url": "ImportData",
|
||||
|
@ -200,7 +209,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045468"
|
||||
"uid": "0045469"
|
||||
},
|
||||
{
|
||||
"url": "CreateAnimation",
|
||||
|
@ -210,7 +219,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045469"
|
||||
"uid": "0045470"
|
||||
},
|
||||
{
|
||||
"url": "ModifyAnimation",
|
||||
|
@ -220,7 +229,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045470"
|
||||
"uid": "0045471"
|
||||
},
|
||||
{
|
||||
"url": "AnimationConverter",
|
||||
|
@ -230,7 +239,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045471",
|
||||
"uid": "0045472",
|
||||
},
|
||||
{
|
||||
"url": "SlideTransition",
|
||||
|
@ -240,7 +249,7 @@ window.samplesList = [
|
|||
"component": "PowerPoint",
|
||||
"dir": "PowerPoint",
|
||||
"parentId": "045",
|
||||
"uid": "0045472"
|
||||
"uid": "0045473"
|
||||
}
|
||||
],
|
||||
"order": 7,
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
"applicationUrl": "http://localhost:61596/"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
|
||||
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче