I'm using Aspose.pdf and having trouble how to put two tables. Can some one help me with this or lead me into the right direction?
For example I would like this setup
Table 1 Table 2
Table 3 - centered under these two tables.
Any ideas on how to do this?
Also view this code below.
Pdf pdf = new Pdf();
// specify the left margin info for the PDF file
pdf.PageSetup.Margin.Left = new MarginInfo().Left = 40;
// specify the Right margin info for the PDF file
pdf.PageSetup.Margin.Right = new MarginInfo().Right = 40;
Section sec0 = pdf.Sections.Add();
sec0.IsNewPage = false;
Text dashboardTitle1 = new Text("Dashboard For: " + "Test 1");
Section sec1 = pdf.Sections.Add();
sec1.IsNewPage = false;
sec1.ColumnInfo.ColumnCount = 2;
//Set the spacing between the columns
sec1.ColumnInfo.ColumnSpacing = "5";
//sec1.ColumnInfo.ColumnWidths = "200 200";
Text dashboardTitle2 = new Text("Dashboard For: " + "Test 2");
Text dashboardTitle3 = new Text("Dashboard For: " + "Test 3");
dashboardTitle3.TextInfo.Alignment = Aspose.Pdf.AlignmentType.Left;
sec1.IsNewColumn = true;
//Display the PDF in Web Page
pdf.Save("title", SaveType.OpenInBrowser, Response);
How come dashboardTitle2 and dashboardTitle3 aren't columns?
The output is
I would like
Dashboard 1 centered
Dashboard 2 Dashboard 3