Thats the tricky part. The file might be anything, mostly there should be a the use of ole possible. But it could be a textfile, a picture, wathever you want. Normaly I call the associated programm using ShelklExecute, but now they want a preview.
Agnes
>What do you need?
>
>>Thanks, I will think about it. It's not realy whar I think i need.
>>
>>Agnes
>>>A Web Browser control can display many types of files but not all of them. See
http://www.berezniker.com/content/pages/visual-foxpro/view-pdf-vfp-form
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]