Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Oleboundcontrol and General field
Message
De
29/09/2006 11:58:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Oleboundcontrol and General field
Divers
Thread ID:
01158167
Message ID:
01158167
Vues:
115
Hello,

I have a table with a general field which contains a PDF file.
I'm able to 'Open' that PDF file by using this code:
objectdoc=SUBSTR(SYS(2015), 3, 8)                   && Getting a name for the object
thisform.AddObject("&objectdoc","oleboundcontrol")  && Adding the object to the form
SELECT pdfc                                         && table which has the general field that contains the PDF file
objectdoc="&objectdoc"+"."
thisform.&objectdoc.ControlSource="pdfc.pdfgeneral"
thisform.&objectdoc.AutoSize=.t.
thisform.&objectdoc.Visible=.f.
thisform.&objectdoc.AutoActivate= 0
thisform.&objectdoc.DoVerb('Open')
My problem is, I do not know how to SAVE that PDF file that is in the general field to "c:\" drive so that I can either
"Print" it or "attach" it to outlook email.


I realy appreciate it if any one can help me out. I have tried everything but no luck.

Thanks

Bob
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform