Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirecting to multiple webpages that autoprint

Status
Not open for further replies.

tassflint

Programmer
Dec 29, 2005
21
US
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

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top