Information générale
Catégorie:
Gestionnaire d'écran & Écrans
THanks
I will use a treeview to pick the file and the modal form sounds like the way to go...
>>Ok I found the PDF.ocx and got it installed. What do I put into the Src property? I tried the file name but nothing happened...
>>
>>THanks for the reply
>>
>>>PDF.ocx
>>>
>>>Add it into VFP's ActiveX controls list in Tools options
>>>
>>>Then drag n drop it into the form
>>>
>>>Then just populate the Src Property the pdf will show automatically
>>>
>>>
>>>>Do you have any ideas on how I can display a PDF file on a form or launch the pdf viewer??
>>>>
>>>>Thanks for the reply
>>>>
>>>>>>Has anyone put a PDF file in a general field? I need to display a PDF page on a form.
>>>>>>
>>>>>>TIA
>>>>>
>>>>>No but I have put a Word doc into a MEMO field using FileToStr(). Then use StrToFile() to recreate it with a temporary file name for VFP Ole automation. The final step of automation is to prompt the user for a filename to save the file as [along with the path]. That way the user never gets to tamper with the original doc.
>>>>>
>>>>>You could use the same technique for any kind of file including PDFs.
>
>John;
>
>You are on the right track. I did this about 2 years ago and my memory banks need to be refreshed. I believe the approach I took was to:
>1. Create a grid pick list on your main form.
>2. The path of the pdf file is part of a character field - do not store the pdf file in a general field.
>3. Create a modal form with PDF.ocx
>4. When you double click on the grid description of interest it launches the modal form.
>
>Hope you get the concept.
>
>Tom
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement