i am using itextsharp pdf format
MasterMainTable.AddCell(MasterMainTable_Cell01); MasterMainTable.AddCell(MasterMainTable_SpaceCell); MasterMainTable.AddCell(MasterMainTable_Cell02); pdfDoc.Add(MasterMainTable); pdfDoc.Close(); HttpContext.Current.Response.ContentType = "application/pdf"; HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache); HttpContext.Current.Response.Write(pdfDoc); HttpContext.Current.Response.End();
You can use formtarget="_blank" for your button
OR
Just replace the button code
<asp:Button ID="btnPrintSailsBill" runat="server" Text="Print Bill WithOut Border" formtarget="_blank" CssClass="btn-info" OnClick="btnPrintSailsBill_Click" />
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.