If you need to have the PDFs on the LAN but not on the web server for some security reason, I bet you could use an absolute link to the file such as <a href="\\MachineName\sharename\directoryname\documentname.pdf">Click Here for the Document</a> (hope I have the slashes pointed in the right direction).
Bob,
Thank you for your reply. I'm sorry it took me so long to get back to this, but I've been getting the basic application set up with to do some beta testing.
The PDF files that I need to be able to send back on the same LAN but not directly accessible from the Web server. Rick pointed out the strtofile() function to render the PDFs in a form that I could deliver, but I have still not come to grips with how to put a column in the grid they would let me call the code necessary to send them back.
This part of my application is a mini document management system. The user will have selected an individual and then I wanted to display a list of the documents currently attached to that individual in the grid and let them click on one to see it. If you have code samples I'd be delighted to see them.
Thank you, Potter
Hi Potter;
I do this all the time, so I do have code snippets that should work.
Question 1 though, to begin with:
Are the pdf files in a web accessible directory or somewhere else?
Just to go a little further, generally keep all pdf files that I might upload in a non-web accessible directory; that is, you can't
create an html link directly to the file. Rather I have a process method that loads the file.
For instance:
GetDocument.cmt?g=E9F49C90-7AB2-461B-A011-6E7A092FAA57
Where i pass a guid identifier (that links back to a record in a table) and the file is downloaded from there.
If you are linking to something like this, then the issue isn't the link just in the way you are sending the file
Bob
I have a simple test that I need to do and I can't seem to figure it out. One of my FoxPro tables contains a type, a description and the file name of a PDF file. When the application selects a user, I run a query and get a cursor with the list of the files that apply to this user. I want to display that cursor in a Web data grid and allow the user to click on an individual file and then send that PDF back to their browser.
I know there are some examples in the help file, but I have not been able to make any of them work. I tried putting an HREF in for one of the columns, but Firefox comes back and says he doesn't know how to open this kind of file. Can this be done with HTML code or does it require JavaScript?
Potter