What happens if you create a cursor with the object as a General field 
and then display that in the control?

I'm not sure how it would work with PDFs - but it does work with images, 
office documents ,etc.


CREATE TABLE gen (genfile G)
APPEND BLANK


lcFile = GETFILE()

APPEND GENERAL genfile FROM (lcFile)

THISFORM.oleboundcontrol.controlsource = "gen.genfile"


MB Software Solutions, LLC wrote:
> VFP9SP2 app
>
> I'd like to create a simple control on my form to preview the filename 
> that's referenced in a textbox above it.  Is there a way to do that 
> natively in VFP9?  Previously, I've used an image control to show 
> pictures from a filename field, but wanted to expand that if possible to 
> things like PDFs.
>
>   



_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4a9e683a.2050...@aksel.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to