By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,536 Members | 2,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,536 IT Pros & Developers. It's quick & easy.

View or Download PDF or Word OLE Object using ASP

P: 1
Hi,
I have a members only area of a site (using ASP and MS Access) where I need users to be able to either view or download reports (PDF or MS Word doc - doesn't matter which). I want to store the reports in an OLE object field in the MS Access database. Using ASP, I can get the report to dump its contents in binary into an html table in the browser using response.binarywrite, but I can find no way of letting the end user either view the nicely formatted report (i.e. not in binary) in the browser, or be able to download it.
Using contenttype="application/msword" I can get Word to open, but all it does is dump the entire web page, with the Word doc in binary, into a new Word document.
I know one workaround is to save the reports in a folder on the web server and just store the link to it in the Access database, but the contents of the reports are somewhat confidential, and we can't have people just guessing the links and being able to view any report, so I need to store the reports in the DB.
I know this can be done with images like jpegs, but is there anyway to do this with Word docs or PDFs? I've Google for hours to no avail. Thanks in advance for any help anybody can provide.
Feb 26 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.