Question : setting margins

I want to set the margin of  margin of 0.25" all around the page..how can I do that?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
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;

Answer : setting margins

UrlRewriting is one way to go:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Or design your own webservice say hosted on www.shorturl.com.
1: When you send email....you store the redirecting url inside a table with key= the userid or may be something unique.
2: So when user clicks the link grab the key, get redirecturl and redirect them.

Random Solutions  
 
programming4us programming4us