Skip to content

Commit ec08ebd

Browse files
Merge pull request #146 from Venkateshmuruganandam/main
LaTeX sample added for DocIO product
2 parents f6e6c92 + 1a622b8 commit ec08ebd

File tree

45 files changed

+807
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+807
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34321.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accent", "Accent\Accent.csproj", "{8FAF4384-BDA0-4413-AEA8-4D083E2067EB}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{8FAF4384-BDA0-4413-AEA8-4D083E2067EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{8FAF4384-BDA0-4413-AEA8-4D083E2067EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{8FAF4384-BDA0-4413-AEA8-4D083E2067EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{8FAF4384-BDA0-4413-AEA8-4D083E2067EB}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {C3720276-D9E5-4ABC-A7E8-146812DED4FC}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="*" />
12+
</ItemGroup>
13+
14+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Syncfusion.DocIO;
2+
using Syncfusion.DocIO.DLS;
3+
4+
5+
// Create a new Word document.
6+
using WordDocument document = new WordDocument();
7+
8+
//Add one section and one paragraph to the document.
9+
document.EnsureMinimal();
10+
11+
//Append an accent equation using LaTeX.
12+
document.LastParagraph.AppendMath(@"\dot{a}");
13+
14+
//Save the Word document.
15+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
16+
document.Save(outputStream, FormatType.Docx);
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34321.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bar", "Bar\Bar.csproj", "{074097B1-1C2C-4FF0-8400-EAE701762E57}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{074097B1-1C2C-4FF0-8400-EAE701762E57}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{074097B1-1C2C-4FF0-8400-EAE701762E57}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{074097B1-1C2C-4FF0-8400-EAE701762E57}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{074097B1-1C2C-4FF0-8400-EAE701762E57}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {7B4B84B1-A7C1-4033-9DB5-5BB5D6D6227D}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="*" />
12+
</ItemGroup>
13+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Syncfusion.DocIO;
2+
using Syncfusion.DocIO.DLS;
3+
4+
5+
// Create a new Word document.
6+
using WordDocument document = new WordDocument();
7+
8+
//Add one section and one paragraph to the document.
9+
document.EnsureMinimal();
10+
11+
//Append an bar equation using LaTeX.
12+
document.LastParagraph.AppendMath(@"\overline{a}");
13+
14+
//Save the Word document.
15+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
16+
document.Save(outputStream, FormatType.Docx);
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34321.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Border-Box", "Border-Box\Border-Box.csproj", "{75A98BCD-737D-4A9E-969A-125A25C549BD}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{75A98BCD-737D-4A9E-969A-125A25C549BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{75A98BCD-737D-4A9E-969A-125A25C549BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{75A98BCD-737D-4A9E-969A-125A25C549BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{75A98BCD-737D-4A9E-969A-125A25C549BD}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {39A25270-F2DA-48F1-A347-DAE5060F42FA}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<RootNamespace>Border_Box</RootNamespace>
7+
<ImplicitUsings>enable</ImplicitUsings>
8+
<Nullable>enable</Nullable>
9+
</PropertyGroup>
10+
<ItemGroup>
11+
<PackageReference Include="Syncfusion.DocIO.Net.Core" Version="*" />
12+
</ItemGroup>
13+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using Syncfusion.DocIO;
2+
using Syncfusion.DocIO.DLS;
3+
4+
5+
// Create a new Word document.
6+
using WordDocument document = new WordDocument();
7+
8+
//Add one section and one paragraph to the document.
9+
document.EnsureMinimal();
10+
11+
//Append an border box equation using LaTeX.
12+
document.LastParagraph.AppendMath(@"\boxed{x^2 + y^2 = z^2}");
13+
14+
//Save the Word document.
15+
using (FileStream outputStream = new FileStream(Path.GetFullPath(@"../../../Result.docx"), FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite))
16+
document.Save(outputStream, FormatType.Docx);
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34321.82
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Box", "Box\Box.csproj", "{D4C16529-B047-4242-A59B-8A9D7F771400}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{D4C16529-B047-4242-A59B-8A9D7F771400}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{D4C16529-B047-4242-A59B-8A9D7F771400}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{D4C16529-B047-4242-A59B-8A9D7F771400}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{D4C16529-B047-4242-A59B-8A9D7F771400}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {A28DDA8B-999A-4D66-98F0-39BD3228CA40}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)