if you want to create PDf please use itextSahrp.
Font font_heading1 = FontFactory.GetFont(FontFactory.TIMES_ROMAN, 10f, Font.BOLD, BaseColor.WHITE);
PdfPTable table40 = new PdfPTable(8);
table40.TotalWidth = 480f;
table40.LockedWidth = true;
float[] widths = new float[] { 1.8f, 2.2f, 2.5f, 1.2f, 1f, 1f, 1.2f, 1f };
table40.SetWidths(widths);
table40.HorizontalAlignment = 1;
PdfPCell cel = new PdfPCell(new Phrase("Sample Id", font_heading1));
cel.BackgroundColor = new iTextSharp.text.BaseColor(51, 79, 100);
cel.HorizontalAlignment = 1;
table40.AddCell(cel);
have a look
www.mikesdotnetting.com/Article/205/Exporting-The-Razor-WebGrid-To-PDF-Using-iTextSharp[
^]
http://stackoverflow.com/questions/4553220/how-can-i-add-a-header-to-a-pdf-file-using-itext-in-c?rq=1.[
^]