I am trying to create a OneNote file using Aspose.Note for DotNet. In my notebook there are multiple tables.
I am trying to add table one by one. But there are no spaces between the tables. All of therm are appended without spaces. It looks very ugly.
Here’s my code (Dot Net Code) -
Outline outline = new Outline(doc)
{
VerticalOffset = 50,
HorizontalOffset = 100
};
```
// Initialize OutlineElement object
OutlineElement outlineElem1 = new OutlineElement(doc);
OutlineElement outlineElem2 = new OutlineElement(doc);
OutlineElement outlineElem3 = new OutlineElement(doc);
OutlineElement outlineElem4 = new OutlineElement(doc);
OutlineElement outlineElem5 = new OutlineElement(doc);
OutlineElement outlineElem6 = new OutlineElement(doc);
OutlineElement outlineElem7 = new OutlineElement(doc);
OutlineElement outlineElem8 = new OutlineElement(doc);
OutlineElement outlineElem9 = new OutlineElement(doc);
OutlineElement outlineElem10 = new OutlineElement(doc);
// Add table to outline element node
outlineElem1.AppendChild(table1);
outlineElem2.AppendChild(table2);
outlineElem3.AppendChild(table3);
outlineElem4.AppendChild(table4);
outlineElem5.AppendChild(table5);
outlineElem6.AppendChild(table6);
outlineElem7.AppendChild(table7);
outlineElem8.AppendChild(table8);
outlineElem9.AppendChild(table9);
outlineElem10.AppendChild(table10);
// Add outline element to outline
outline.AppendChild(GetTableHeader(doc, "ACCOUNT SUMMARY"));
outline.AppendChild(outlineElem1);
// I need to add space here between two Outline Elements. Pls help with the code.
outline.AppendChild(GetTableHeader(doc, DateTime.Now.Year + " Actuals/Outlook"));
outline.AppendChild(outlineElem2);
// I need to add space here between two Outline Elements. Pls help with the code.
outline.AppendChild(GetTableHeader(doc, DateTime.Now.Year + " Month-On-Month View"));
outline.AppendChild(outlineElem3);
// I need to add space here between two Outline Elements. Pls help with the code.
outline.AppendChild(GetTableHeader(doc, "Project Snapshot"));
outline.AppendChild(outlineElem4);
// I need to add space here between two Outline Elements. Pls help with the code.
outline.AppendChild(GetTableHeader(doc, "Project Insights"));
outline.AppendChild(outlineElem5);
outline.AppendChild(GetTableHeader(doc, "Projects running with Margin < Target"));
outline.AppendChild(outlineElem6);
outline.AppendChild(GetTableHeader(doc, "Projects running with Margin >= Target"));
outline.AppendChild(outlineElem7);
outline.AppendChild(GetTableHeader(doc, "Horizontal Presence"));
outline.AppendChild(outlineElem8);
outline.AppendChild(GetTableHeader(doc, "Proposals / Opportunitiy Details"));
outline.AppendChild(outlineElem9);
outline.AppendChild(GetTableHeader(doc, "Delivery Performance"));
outline.AppendChild(outlineElem10);
// Add outline to page node
page.AppendChild(outline);
// Add page to document node
doc.AppendChild(page);
```