Hi Amber, thanks for your response on this. Sorry that my question was little ambiguous.
My database table has couple of columns where few rows are in English and few rows are in Arabic for that columns.
I need to produce an English pdf with English rows. Likewise seperate pdf for Arabic rows.
I wrote code to filter my records based on language and constructing the pdf. English pdf works fine. Arabic is displaying correct values, how ever columns are in left to right fashion instead of right to left.
Some of the code from my cs file.
- Code: Select all
var row = table.AddRow(false, 4);
row.Cells[0].CellWidthType = CellWidthType.Point;
row.Cells[0].Width = 60f;
var paragraph = row.Cells[0].AddParagraph();
var progName = "my text"; //English or Arabic depends on input language
TextRange range = paragraph.AppendText(progName);
var paragraph2 = row.Cells[1].AddParagraph();
paragraph2.AppendHTML("other text"); //English or Arabic depends on input language
if (mylanguage == "Arabic")
{
paragraph.Format.IsBidi = true;
paragraph2.Format.IsBidi = true;
}
table.ApplyHorizontalMerge(row.GetRowIndex(), 1, 3);
Can I apply Bidi at table level or any other setting so it generates layout dynamically? I send either English or Arabic for my method not both at same time.
Hope this clarifies my situation.