Hello all,
I am creating a web page that has a number of print buttons on it. what each of these buttons do is run a Response.Redirect to a new page. These pages then automatically print out a form.
I need to add another button that will print all of these forms with 1 click. I have the following code in its Click event
When this runs though, it will only print out the first form, not the rest. How can I get it to print out all the forms in this manner?
Thanks in advance,
Brian
I am creating a web page that has a number of print buttons on it. what each of these buttons do is run a Response.Redirect to a new page. These pages then automatically print out a form.
I need to add another button that will print all of these forms with 1 click. I have the following code in its Click event
Code:
Public Sub btnPrintAll_Click(ByVal sender As Object, ByVal e As System.EventArgs)
If cmp <> "0" Then
Response.Redirect("FormAgencyAgreement.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=" _
& Request.Item("agent"), False)
'add code in here to print out the Talon Addendum
Response.Redirect("FormRolloverAgreement.aspx?ref=" & Request.Item("ref"), False)
Response.Redirect("FormACH.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=" _
& Request.Item("agent"), False)
Response.Redirect("FormDD.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=" _
& Request.Item("agent"), False)
Response.Redirect("FormSetupChecklist.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=" _
& Request.Item("agent"), False)
Else
Response.Redirect("FormAgencyAgreement.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp _
& "&agent=0", False)
'add code in here to print out the Talon Addendum
Response.Redirect("FormRolloverAgreement.aspx?ref=" & Request.Item("ref"), False)
Response.Redirect("FormACH.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=0", False)
Response.Redirect("FormDD.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp & "&agent=0", False)
Response.Redirect("FormSetupChecklist.aspx?ref=" & Request.Item("ref") & "&cmp=" & cmp _
& "&agent=0", False)
End If
End Sub
When this runs though, it will only print out the first form, not the rest. How can I get it to print out all the forms in this manner?
Thanks in advance,
Brian