Skip to content

Commit

Permalink
Merge pull request #156 from SyncfusionExamples/924528-Add-Readme-Files
Browse files Browse the repository at this point in the history
Add the @ symbol in the sample
  • Loading branch information
Mohan2401 authored Dec 11, 2024
2 parents 1c4411c + 907ab4a commit e256215
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IWorksheet worksheet = workbook.Worksheets[0];

//Saving the workbook as stream
FileStream outputStream = new FileStream(Path.GetFullPath("Output/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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ using (ExcelEngine excelEngine = new ExcelEngine())

#region save as JSON
//Saves the workbook to a JSON filestream, as schema by default
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Excel-Workbook-To-JSON-as-schema-default.json"), FileMode.Create, FileAccess.ReadWrite);
FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Excel-Workbook-To-JSON-as-schema-default.json"), FileMode.Create, FileAccess.ReadWrite);
workbook.SaveAsJson(outputStream);

//Saves the workbook to a JSON filestream as schema
FileStream stream1 = new FileStream(Path.GetFullPath("Output/Excel-Workbook-To-JSON-as-schema.json"), FileMode.Create, FileAccess.ReadWrite);
FileStream stream1 = new FileStream(Path.GetFullPath(@"Output/Excel-Workbook-To-JSON-as-schema.json"), FileMode.Create, FileAccess.ReadWrite);
workbook.SaveAsJson(stream1, true);
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
IWorkbook workbook = application.Workbooks.Open(inputStream);

//Saving the workbook as streams
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Sample.csv"), FileMode.Create, FileAccess.ReadWrite);
FileStream outputStream = new FileStream(Path.GetFullPath(@"Output/Sample.csv"), FileMode.Create, FileAccess.ReadWrite);
workbook.SaveAs(outputStream, ",");

//Dispose streams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Program

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())

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

Expand Down

0 comments on commit e256215

Please sign in to comment.