I think you need to be a little more specific in what you mean by "open a file".
Do you mean you simply want to access the file as ascii text (which would look like rubbish to most people) ?,
or
Do you mean you want to display the "Formatted" file (ie. with font's, lines, boxes, graphics, etc) ?
If you want the first option above then simply do:
Code: Select all
put url("binfile:yourfilenamehere.ext") into tData
put tData into field "your field"
obviously it will look awful in the case of the various binary file formats, but it will show stuff!
To do the latter option - show formatted files, you will need to tell us the file types you are interested in looking at. Remember that a PDF is not the same as a DOC file and so forth. There is no single function that will show any file type that you want - because they are all different in their binary formatting and suchlike.
If you are after something that is going to allow you to preview any type of file then you will be writing a very large tool that you will need to spend a lot of time and effort creating. As you can probably guess there are not too many people who will give away all that code for free - be prepared to pay.
To get answers in any forum, including this one, you really need to be very specific in what you ask and give as much information as possible regarding what you want people to give you. You will get answers quicker, and usually more focussed on what you ask for. Remember that other people might not understand what you want by what you write - there are non-english speakers who don't read/write the same as you, and also the reverse is true.
Hope that helps,
Dave
Coding in the Sun - So much Fun.
Visit http://electronic-apps.info for released App information.