Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EJ2APIServices", "src\EJ2APIServices.csproj", "{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {00388905-5E88-4BCF-B5FC-E4CAB5FA88EE}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EJ2APIServices", "src\EJ2APIServices_NET6.csproj", "{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {00388905-5E88-4BCF-B5FC-E4CAB5FA88EE}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32210.238
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocumentEditorCore", "DocumentEditorCore.csproj", "{1B5FEECA-801B-456F-8565-BCD85C5A6C0D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1B5FEECA-801B-456F-8565-BCD85C5A6C0D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B5FEECA-801B-456F-8565-BCD85C5A6C0D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B5FEECA-801B-456F-8565-BCD85C5A6C0D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B5FEECA-801B-456F-8565-BCD85C5A6C0D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C2B954E1-9860-48D1-8D7D-D243161FD4FC}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2009
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EJ2APIServices", "src\EJ2APIServices_NET7.csproj", "{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D2F1360E-DF8C-4AD2-A8CC-942A180D6762}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {00388905-5E88-4BCF-B5FC-E4CAB5FA88EE}
EndGlobalSection
EndGlobal
24 changes: 8 additions & 16 deletions ASP.NET Core/src/Controllers/DocumentEditorController.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using System.Net.Http;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Syncfusion.EJ2.DocumentEditor;
using WDocument = Syncfusion.DocIO.DLS.WordDocument;
using WFormatType = Syncfusion.DocIO.FormatType;
using Syncfusion.EJ2.SpellChecker;
using EJ2APIServices;

namespace SyncfusionDocument.Controllers
namespace EJ2APIServices.Controllers
{
[Route("api/[controller]")]
public class DocumentEditorController : Controller
{
private readonly IHostingEnvironment _hostingEnvironment;
string path;
private readonly IWebHostEnvironment _hostingEnvironment;
string? path;

public DocumentEditorController(IHostingEnvironment hostingEnvironment)
public DocumentEditorController(IWebHostEnvironment hostingEnvironment)
{
_hostingEnvironment = hostingEnvironment;
path = Startup.path;
Expand All @@ -35,7 +27,7 @@ public DocumentEditorController(IHostingEnvironment hostingEnvironment)
[Route("Import")]
public string Import(IFormCollection data)
{
if (data.Files.Count == 0)
if (data.Files.Count == 0)
return null;
Stream stream = new MemoryStream();
IFormFile file = data.Files[0];
Expand Down Expand Up @@ -92,7 +84,7 @@ private static Stream GetManifestResourceStream(string fileName)
[Route("SpellCheck")]
public string SpellCheck([FromBody] SpellCheckJsonData spellChecker)
{
try
try
{
SpellChecker spellCheck = new SpellChecker();
spellCheck.GetSuggestions(spellChecker.LanguageID, spellChecker.TexttoCheck, spellChecker.CheckSpelling, spellChecker.CheckSuggestion, spellChecker.AddWord);
Expand Down Expand Up @@ -156,7 +148,7 @@ public string MailMerge([FromBody] ExportData exportData)
document.MailMerge.Execute(CustomerDataModel.GetAllRecords());
document.Save(stream, Syncfusion.DocIO.FormatType.Docx);
}
catch (Exception ex)
catch (Exception)
{ }
string sfdtText = "";
Syncfusion.EJ2.DocumentEditor.WordDocument document1 = Syncfusion.EJ2.DocumentEditor.WordDocument.Load(stream, Syncfusion.EJ2.DocumentEditor.FormatType.Docx);
Expand Down
43 changes: 0 additions & 43 deletions ASP.NET Core/src/EJ2APIServices.csproj

This file was deleted.

26 changes: 26 additions & 0 deletions ASP.NET Core/src/EJ2APIServices_NET6.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OData" Version="7.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.0" />
<PackageReference Include="Npgsql" Version="4.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.1.1.1" />
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="*" />
<PackageReference Include="Syncfusion.EJ2.SpellChecker.AspNet.Core" Version="*" />
<PackageReference Include="System.Drawing.Common" Version="4.*" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.9.2" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.*" />
</ItemGroup>

</Project>
26 changes: 26 additions & 0 deletions ASP.NET Core/src/EJ2APIServices_NET7.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OData" Version="7.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.0" />
<PackageReference Include="Npgsql" Version="4.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.1.1.1" />
<PackageReference Include="Syncfusion.Compression.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.OfficeChart.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.DocIORenderer.Net.Core" Version="*" />
<PackageReference Include="Syncfusion.EJ2.WordEditor.AspNet.Core" Version="*" />
<PackageReference Include="Syncfusion.EJ2.SpellChecker.AspNet.Core" Version="*" />
<PackageReference Include="System.Drawing.Common" Version="4.*" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.9.2" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.*" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
//using System;
//using Microsoft.EntityFrameworkCore;
//using Microsoft.EntityFrameworkCore.Metadata;

namespace EJ2APIServices.Models
{
public partial class EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext : DbContext
{
//namespace EJ2APIServices.Models
//{
// public partial class EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext : DbContext
// {


public EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext(DbContextOptions<EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext> options)
: base(options)
{
}
// public EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext(DbContextOptions<EEJ2SERVICEEJ2WEBSERVICESSRCAPP_DATADIAGRAMMDFContext> options)
// : base(options)
// {
// }


public virtual DbSet<DiagramData> DiagramData { get; set; }
// public virtual DbSet<DiagramData> DiagramData { get; set; }

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<DiagramData>(entity =>
{
entity.Property(e => e.DiagramName).HasMaxLength(50);
});
}
}
}
// protected override void OnModelCreating(ModelBuilder modelBuilder)
// {
// modelBuilder.Entity<DiagramData>(entity =>
// {
// entity.Property(e => e.DiagramName).HasMaxLength(50);
// });
// }
// }
//}
Loading