Click here to Skip to main content
15,911,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a pdf from a web page, from an array. After I get the data, then open a new aspx page to do all the custom formatting. This works no issues. The problem is that in the array, after i get the data I cant loop thru the array and open a new page each time.

I use a response.redirect to load data to the new page, save as a pdf, and then redirects back to beginning page without creating additional pdf's from array data...

a bit of code:

For Each dataRow As DataRow In tableReferalData.Rows
Dim ReferralID As String = dataRow.Item(ReferralID).ToString

blah blah additional code is here

Dim _ReferralSleeve As New ReferralSleeve.ReferralSleeve(ReferralID, leftvert, rightvert, lv_01, rv_01, center_l1, center_l2, center_l3, ls_id1, rv_complete_name, rv_complete_Addr, rv_complete_C_S_Z, rv_complete_phone, bt_line1, bt_line2, bt_line3)

Session(referralsleeve) = _ReferralSleeve

response.redirect(takes data from above and builds a web page, I then convert to a pdf and save to dir)

next

The first pdf builds correctly, but then stops as I cant figure out how to get back to this point from the next page...
Posted
Updated 2-Apr-10 4:23am
v2

1 solution

Just a reminder to put your code in the code block tags. It makes it MUCH easier for us to read.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900