Skip to content

Commit 340852c

Browse files
authored
Merge pull request #136 from SyncfusionExamples/902922-PlaygroundInput
902922-PlaygroundInput
2 parents 6f43802 + 7f8f6f9 commit 340852c

File tree

60 files changed

+185
-24
lines changed

Some content is hidden

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

60 files changed

+185
-24
lines changed

Format rows and columns/Autofit Rows and Columns/.NET/Autofit Rows and Columns/Autofit Rows and Columns/Autofit Rows and Columns.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,12 @@
1616
</None>
1717
</ItemGroup>
1818

19+
<ItemGroup>
20+
<None Update="Data\*">
21+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
24+
1925
</Project>
2026

27+

Format rows and columns/Autofit Rows and Columns/.NET/Autofit Rows and Columns/Autofit Rows and Columns/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static void Main(string[] args)
1111
{
1212
IApplication application = excelEngine.Excel;
1313
application.DefaultVersion = ExcelVersion.Xlsx;
14-
FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
14+
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
1515
IWorkbook workbook = application.Workbooks.Open(inputStream);
1616
IWorksheet worksheet = workbook.Worksheets[0];
1717

@@ -48,3 +48,4 @@ static void Main(string[] args)
4848

4949

5050

51+

Format rows and columns/Delete Rows and Columns/.NET/Delete Rows and Columns/Delete Rows and Columns/Delete Rows and Columns.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,12 @@
1616
</None>
1717
</ItemGroup>
1818

19+
<ItemGroup>
20+
<None Update="Data\*">
21+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
24+
1925
</Project>
2026

27+

Format rows and columns/Delete Rows and Columns/.NET/Delete Rows and Columns/Delete Rows and Columns/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static void Main(string[] args)
1111
{
1212
IApplication application = excelEngine.Excel;
1313
application.DefaultVersion = ExcelVersion.Xlsx;
14-
FileStream inputStream = new FileStream("../../../InputTemplate.xlsx", FileMode.Open, FileAccess.Read);
14+
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
1515
IWorkbook workbook = application.Workbooks.Open(inputStream);
1616
IWorksheet worksheet = workbook.Worksheets[0];
1717

@@ -48,3 +48,4 @@ static void Main(string[] args)
4848

4949

5050

51+

Format rows and columns/Expand or Collapse Groups/.NET/Expand or Collapse Groups/Expand or Collapse Groups/Expand or Collapse Groups.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,13 @@
1616
</None>
1717
</ItemGroup>
1818

19+
<ItemGroup>
20+
<None Update="Data\*">
21+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
22+
</None>
23+
</ItemGroup>
24+
1925
</Project>
2026

27+
28+

Format rows and columns/Expand or Collapse Groups/.NET/Expand or Collapse Groups/Expand or Collapse Groups/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void ExpandGroups()
2121
{
2222
IApplication application = excelEngine.Excel;
2323
application.DefaultVersion = ExcelVersion.Xlsx;
24-
FileStream inputStream = new FileStream("../../../InputTemplate - To Expand.xlsx", FileMode.Open, FileAccess.Read);
24+
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate - To Expand.xlsx"), FileMode.Open, FileAccess.Read);
2525
IWorkbook workbook = application.Workbooks.Open(inputStream);
2626
IWorksheet worksheet = workbook.Worksheets[0];
2727

@@ -52,7 +52,7 @@ public void CollapseGroups()
5252
{
5353
IApplication application = excelEngine.Excel;
5454
application.DefaultVersion = ExcelVersion.Xlsx;
55-
FileStream inputStream = new FileStream("../../../InputTemplate - To Collapse.xlsx", FileMode.Open, FileAccess.Read);
55+
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate - To Collapse.xlsx"), FileMode.Open, FileAccess.Read);
5656
IWorkbook workbook = application.Workbooks.Open(inputStream);
5757
IWorksheet worksheet = workbook.Worksheets[0];
5858

@@ -83,3 +83,4 @@ public void CollapseGroups()
8383

8484

8585

86+

0 commit comments

Comments
 (0)