Hi David,
Thank you for your
interest in Syncfusion products.
It is possible to write
the data in two columns using the PdfTextElement class and it page layout
events. Here is the code snippet:
PdfTextElement element = new PdfTextElement(inputText);
element.BeginPageLayout += new BeginPageLayoutEventHandler(element_BeginPageLayout);
element.EndPageLayout += new EndPageLayoutEventHandler(element_EndPageLayout);
element.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 8f);
static void element_EndPageLayout(object
sender, EndPageLayoutEventArgs e)
{
samePage = !samePage;
if (samePage)
e.NextPage = tempPage;
}
static void element_BeginPageLayout(object
sender, BeginPageLayoutEventArgs e)
{
tempPage = e.Page;
if (samePage)
{
SizeF
size = e.Page.Graphics.ClientSize;
e.Bounds = new RectangleF(new PointF(size.Width
/ 2 + 10, 0), new SizeF(size.Width
/ 2 - 10, size.Height));
}
}
The simple sample showing
this is placed in the link below.
Please try this and let us
know if you have any questions.
Regards
Geetha
ColumnLayout_39275dc3.zip