hi
i want to display report in vertical order .
right now I am geting horizontal report like
Patent Number FiledDate Inventors Assignee
pt1 dt1 int1 aas1
i want to create vertical report like
Patent number pt1
filed Date dt1
Inventors int1
Assignee aas1
I am using below code to generate horizontal out put
Pdf pdf1 = new Pdf();
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(sFullDir+"Aspose.Pdf.lic");
Section sec2 = pdf1.Sections.Add();
sec2.TextInfo.Color = new Aspose.Pdf.Color("Blue");
sec2.TextInfo.FontName = "Helvetica-Bold";
sec2.TextInfo.FontSize = 14 ;
sec2.PageInfo.Margin.Left = 10F;
sec2.TextInfo.LineSpacing = 1.5F;
HeaderFooter hf1 = new HeaderFooter(sec2);
sec2.OddHeader = sec2.EvenHeader = hf1;
hf1.IsFirstPageOnly = false;
Text text = new Text(hf1,"Patent Details");
text.Margin.Top = 10;
text.TextInfo.Alignment = AlignmentType.Left;
hf1.Paragraphs.Add(text);
Aspose.Pdf.Table table = new Aspose.Pdf.Table();
table.ColumnWidths = "40 50 100 90 80 80 120";
table.DefaultCellTextInfo.FontSize = 10;
table.ImportDataTable(dtSearchResult,true,1,0);
sec2.Paragraphs.Add(table);
foreach(Row curRow in table.Rows)
{
if(table.Rows.IndexOf(curRow) > 1)
{
((Text)(curRow.Cells[4].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Left;
((Text)(curRow.Cells[4].Paragraphs[0])).TextInfo.FontSize = 10;
foreach(Cell curCell in curRow.Cells)
{
curCell.Padding.Bottom = 3F;
curCell.Padding.Top = 3F;
curCell.Border = new BorderInfo((int)(BorderSide.Left | BorderSide.Right | BorderSide.Bottom | BorderSide.Top),0.25F);
curCell.BackgroundColor = new Aspose.Pdf.Color("#e3e3f4");
}
}
if(table.Rows.IndexOf(curRow) == 1)
{
foreach(Cell curCell in curRow.Cells)
{
if(curCell.Paragraphs.Count != 0)
{
((Text)curCell.Paragraphs[0]).Segments[0].TextInfo.FontName = "Times-Bold";
((Text)curCell.Paragraphs[0]).Segments[0].TextInfo.Color = new Aspose.Pdf.Color("White");
curCell.BackgroundColor = new Aspose.Pdf.Color("#5986ed");
}
curCell.Padding.Bottom = 3F;
curCell.Padding.Top = 3F;
curCell.Border = new BorderInfo((int)(BorderSide.Left | BorderSide.Right | BorderSide.Bottom | BorderSide.Top),0.25F);
}
((Text)(curRow.Cells[0].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
((Text)(curRow.Cells[1].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
((Text)(curRow.Cells[2].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
((Text)(curRow.Cells[3].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
((Text)(curRow.Cells[4].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
((Text)(curRow.Cells[5].Paragraphs[0])).TextInfo.Alignment = AlignmentType.Center;
}
}
HeaderFooter hf = new HeaderFooter(sec2);
hf.TextInfo.FontSize = 10;
hf.TextInfo.Color = new Aspose.Pdf.Color("Red");
Text text1 = new Text(hf,"page $p of $P");
text1.TextInfo.Alignment = AlignmentType.Right;
sec2.OddFooter = sec2.EvenFooter = hf;
hf.Paragraphs.Add(text1);
pdf1.Save(sFileName+".pdf",SaveType.OpenInBrowser,Response);
Response.End();
can any body help me
Thanks
Kapil