C
csgraham74
i have the following code
Response.AddHeader("content-disposition", "attachment; filename=" &
str_AccountNo & ".pdf")
Response.ContentType = "application/pdf"
Response.BinaryWrite(oDR.GetValue(0))
Response.End()
this code successfully prints a pdf document for me.
what i want to do is to redirect to another page after this happens.
if i put in a response.redirect after the response.end then the code
stops executing immediately at the response.end and no redirect occurs.
if i put it in before the response.end then the the document does not
print.
are there any other alternatives e.g. javascript to get my redirect to
occurr.
thanks in advance
Cg
Response.AddHeader("content-disposition", "attachment; filename=" &
str_AccountNo & ".pdf")
Response.ContentType = "application/pdf"
Response.BinaryWrite(oDR.GetValue(0))
Response.End()
this code successfully prints a pdf document for me.
what i want to do is to redirect to another page after this happens.
if i put in a response.redirect after the response.end then the code
stops executing immediately at the response.end and no redirect occurs.
if i put it in before the response.end then the the document does not
print.
are there any other alternatives e.g. javascript to get my redirect to
occurr.
thanks in advance
Cg