ASPX Pages to PDF

C# + VB.Net: ASPX Pages to PDF ASPX Pages to PDF
private void Form1_Load(object sender, EventArgs e)
{
IronPdf.AspxToPdf.RenderThisPageAsPDF();
//Changes the ASPX output into a pdf instead of html
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
IronPdf.AspxToPdf.RenderThisPageAsPDF()
'Changes the ASPX output into a pdf instead of html
End Sub

Using the IronPDF library, ASP.NET web pages can be rendered to PDF instead of HTML by adding a single line of code to the Form_Load event. This allows complex PDFS to be data driven, and designed and tested as HTML first for simplicity.