| private static void BarChart() | private static void BarChart() | ||||
| { | { | ||||
| Console.WriteLine("\tBarChart()"); | |||||
| // Create new document. | // Create new document. | ||||
| using (DocX document = DocX.Create(@"docs\BarChart.docx")) | using (DocX document = DocX.Create(@"docs\BarChart.docx")) | ||||
| { | { | ||||
| document.InsertChart(c); | document.InsertChart(c); | ||||
| document.Save(); | document.Save(); | ||||
| } | } | ||||
| Console.WriteLine("\tCreated: docs\\BarChart.docx\n"); | |||||
| } | } | ||||
| private static void PieChart() | private static void PieChart() | ||||
| { | { | ||||
| Console.WriteLine("\tPieChart()"); | |||||
| // Create new document. | // Create new document. | ||||
| using (DocX document = DocX.Create(@"docs\PieChart.docx")) | using (DocX document = DocX.Create(@"docs\PieChart.docx")) | ||||
| { | { | ||||
| document.InsertChart(c); | document.InsertChart(c); | ||||
| document.Save(); | document.Save(); | ||||
| } | } | ||||
| Console.WriteLine("\tCreated: docs\\PieChart.docx\n"); | |||||
| } | } | ||||
| private static void LineChart() | private static void LineChart() | ||||
| { | { | ||||
| Console.WriteLine("\tLineChart()"); | |||||
| // Create new document. | // Create new document. | ||||
| using (DocX document = DocX.Create(@"docs\LineChart.docx")) | using (DocX document = DocX.Create(@"docs\LineChart.docx")) | ||||
| { | { | ||||
| document.InsertChart(c); | document.InsertChart(c); | ||||
| document.Save(); | document.Save(); | ||||
| } | } | ||||
| Console.WriteLine("\tCreated: docs\\LineChart.docx\n"); | |||||
| } | } | ||||
| private static void Chart3D() | private static void Chart3D() | ||||
| { | { | ||||
| Console.WriteLine("\tChart3D()"); | |||||
| // Create new document. | // Create new document. | ||||
| using (DocX document = DocX.Create(@"docs\3DChart.docx")) | using (DocX document = DocX.Create(@"docs\3DChart.docx")) | ||||
| { | { | ||||
| document.InsertChart(c); | document.InsertChart(c); | ||||
| document.Save(); | document.Save(); | ||||
| } | } | ||||
| Console.WriteLine("\tCreated: docs\\3DChart.docx\n"); | |||||
| } | } | ||||
| #endregion | #endregion | ||||
| /// </summary> | /// </summary> | ||||
| private static void Equations() | private static void Equations() | ||||
| { | { | ||||
| Console.WriteLine("\nEquations()"); | |||||
| Console.WriteLine("\tEquations()"); | |||||
| // Create a new document. | // Create a new document. | ||||
| using (DocX document = DocX.Create(@"docs\Equations.docx")) | using (DocX document = DocX.Create(@"docs\Equations.docx")) | ||||
| } | } | ||||
| public static void DocumentHeading() | public static void DocumentHeading() | ||||
| { | { | ||||
| Console.WriteLine("\nDocumentHeading()"); | |||||
| Console.WriteLine("\tDocumentHeading()"); | |||||
| using (DocX document = DocX.Create(@"docs\DocumentHeading.docx")) | using (DocX document = DocX.Create(@"docs\DocumentHeading.docx")) | ||||
| { | { | ||||
| } | } | ||||
| private static void Bookmarks() | private static void Bookmarks() | ||||
| { | { | ||||
| Console.WriteLine("\nBookmarks()"); | |||||
| Console.WriteLine("\tBookmarks()"); | |||||
| using (var document = DocX.Create(@"docs\Bookmarks.docx")) | using (var document = DocX.Create(@"docs\Bookmarks.docx")) | ||||
| { | { |