Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Oleboundcontrol and General field
Message
From
29/09/2006 11:58:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Oleboundcontrol and General field
Miscellaneous
Thread ID:
01158167
Message ID:
01158167
Views:
114
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
Next
Reply
Map
View

Click here to load this message in the networking platform