J
James
i am using adostream to push my pdf files to my customers but it pops up a
save/open dialog box.how can i make it so that it just opens the pdf as if
they where browsing to the direct path of an pdf file. p.s. i use this code
to hide the direct path so that the users can't try gessing other pdf file
names since they are in numerical order.
Response.contenttype = "application/pdf"
FPath = "d:\pdfs\" & pFileName
Response.AddHeader "content-disposition","attachment; filename=" &
pFileName
Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End
save/open dialog box.how can i make it so that it just opens the pdf as if
they where browsing to the direct path of an pdf file. p.s. i use this code
to hide the direct path so that the users can't try gessing other pdf file
names since they are in numerical order.
Response.contenttype = "application/pdf"
FPath = "d:\pdfs\" & pFileName
Response.AddHeader "content-disposition","attachment; filename=" &
pFileName
Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing
Response.End