Skip to content

Commit

Permalink
Merge pull request #134 from SyncfusionExamples/HelpbotChanges
Browse files Browse the repository at this point in the history
Playground sample changes
  • Loading branch information
Mohan2401 authored Aug 26, 2024
2 parents 24fab58 + 6d4f74e commit 0959a95
Show file tree
Hide file tree
Showing 906 changed files with 4,151 additions and 1,380 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Main(string[] args)
IWorksheet worksheet = workbook.Worksheets[0];

//Saving the workbook as stream
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);

//Dispose streams
Expand All @@ -27,3 +27,7 @@ public static void Main(string[] args)
}
}
}




Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("Image.png", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write);
chart.SaveAsImage(outputStream);
#endregion

Expand All @@ -39,3 +39,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("AboveAndBelowAverage.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/AboveAndBelowAverage.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -44,3 +44,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("AboveAndBelowStandardDeviation.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/AboveAndBelowStandardDeviation.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -47,3 +47,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("AdvancedCF.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/AdvancedCF.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -84,3 +84,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -53,3 +53,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,11 @@
<PackageReference Include="Syncfusion.XlsIO.NET" Version="*" />
</ItemGroup>

<ItemGroup>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>

Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("ConditionalFormat.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/ConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

//Dispose streams
outputStream.Dispose();

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = new System.Diagnostics.ProcessStartInfo("ConditionalFormat.xlsx")
{
UseShellExecute = true
};
process.Start();
}
}
}
}




Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -10,4 +10,11 @@
<PackageReference Include="Syncfusion.XlsIO.NET" Version="*" />
</ItemGroup>

<ItemGroup>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>

Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,17 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("ConditionalFormat.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/ConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

//Dispose streams
outputStream.Dispose();

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo = new System.Diagnostics.ProcessStartInfo("ConditionalFormat.xlsx")
{
UseShellExecute = true
};
process.Start();
}
}
}
}




Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -47,3 +47,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("Output.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Output.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -44,3 +44,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>


Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("RemoveConditionalFormat.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveConditionalFormat.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -33,3 +33,7 @@ static void Main(string[] args)
}
}





Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
<None Update="Data\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Output\*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>



Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void Main(string[] args)

#region Save
//Saving the workbook
FileStream outputStream = new FileStream("RemoveAll.xlsx", FileMode.Create, FileAccess.Write);
FileStream outputStream = new FileStream(Path.GetFullPath("Output/RemoveAll.xlsx"), FileMode.Create, FileAccess.Write);
workbook.SaveAs(outputStream);
#endregion

Expand All @@ -32,3 +32,7 @@ static void Main(string[] args)
}
}





Loading

0 comments on commit 0959a95

Please sign in to comment.