PDF and ASP Troubles

P

prom31

First excuse me for my english

Ok, I've a problems when reading content of an PDF file. I cannot
return the content to browser because IE ask me if i want to download
it. But I DON'T WANT this msgbox appears, i just want the content be
printed to browser window,
i'm using adodb.stream
here is my code !!!


dim oStream
Const adTypeBinary = 1
Const adReadAll = -1
dim contenu
set oStream = createobject("adodb.stream")
oStream.type = adTypeBinary
oStream.Open
oStream.LoadFromFile Server.Mappath("template.pdf")
'set Contenu =oStream.Read(adReadAll)

Response.binaryWrite oStream.Read(adReadAll)



Thanks you fo your response
Prom31
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top