PDF cache problem
am 05.11.2007 11:13:40 von e_marquessI have been successful in getting Persits ASPPDF to create pdf files
for me but I have run into a problem.
I have a page to create my pdf from a dynamic asp page. Each time the
script runs it overwrites the previous pdf file. I then use
response.redirect to load the pdf file in the browser.
The problem is that the browser always displays the previous pdf file
until you click the refresh button. I've check to make sure that the
new pdf file is always created on the server - it is ! So I assume
this must be a problem with browser cache retaining the previous
file.
I tried all sorts of ways to solve this but to no avail. Any ideas
would be much appreciated :)
This is the relevant code :
------------------------------------------------------------ ---------
string1 = "http://www.thecareersroom.com/wx/admin/employ_letter.asp?
Rec_ID=" & Recordset1.Fields.Item("Rec_ID").Value
Set Pdf = Server.CreateObject("Persits.Pdf")
Set Doc = Pdf.CreateDocument
Doc.ImportFromUrl string1, "LeftMargin=50", "RightMargin=10",
"PageWidth=650"
Filename = Doc.Save( Server.MapPath("employ_letter.pdf"), True )