Question : alignment question

I want to align the date and the logo same level, ( date on the right, logo left ) how can I do that? I use iTextSharp..
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
protected void btnPrint_Click(object sender, EventArgs e)
    {

        Document doc = new Document();
        doc.SetPageSize(PageSize.A4.Rotate()); 
        doc.NewPage();       

        PdfWriter writer = PdfWriter.GetInstance(doc, Response.OutputStream);

        Response.ContentType = "application/pdf";
        Response.AddHeader("Content-Disposition","attachment; filename=Myfile " + lblDate.Text + ".pdf");

       
        doc.Open();

       iTextSharp.text.Rectangle page = doc.PageSize;

//date
         Paragraph p = new Paragraph(lblDate.Text, new iTextSharp.text.Font(iTextSharp.text.Font.DEFAULTSIZE, 12f));
        p.Alignment = 1;  //this is aligns to center
        doc.Add(p);

//logo
        iTextSharp.text.Image logo = iTextSharp.text.Image.GetInstance(Request.MapPath("~/images/logoPDF.jpg"));
        logo.Alignment = iTextSharp.text.Image.ALIGN_LEFT;
        logo.ScalePercent(20f);
        doc.Add(logo);

Answer : alignment question

If using the GUI query builder, then the expressions is

IIF(DateDiff("d", Order_Date, Date()) IN (0,1), 'Y', 'N')
Random Solutions  
 
programming4us programming4us