I need to append a word document to a general field and display it as an
icon and edit it in word when you double-click it.
The default option when you use the command "Append General <generalfield>
From <file>" is to display the file content and edit it inside the
oleboundcontrol. The only way I found to do this, is to check the "Show as
an icon" option of the "Insert Obeject..." menu in the Create from file tab.
Is there a way to do the same but programatically with the "Append General"
command ???
Thanks in Advance !!!

Best Regards,

Geo L.

Re: How to append a Word doc to a general field and display it as an icon by Dan

Dan
Mon Feb 06 11:15:21 CST 2006

The lack of flexibility is just one reason many of us refuse to use general
fields. (There are about 20 others. <g>)

Why not just use a Word icon on your form, store your document name (instead
of the whole OLE goop), and launch word when the user clicks your icon?

Dan

Nicolas L. wrote:
> I need to append a word document to a general field and display it as
> an icon and edit it in word when you double-click it.
> The default option when you use the command "Append General
> <generalfield> From <file>" is to display the file content and edit
> it inside the oleboundcontrol. The only way I found to do this, is to
> check the "Show as an icon" option of the "Insert Obeject..." menu in
> the Create from file tab. Is there a way to do the same but
> programatically with the "Append General" command ???
> Thanks in Advance !!!
>
> Best Regards,
>
> Geo L.



RE: How to append a Word doc to a general field and display it as an i by BrianHiatt

BrianHiatt
Mon Feb 06 15:27:08 CST 2006

Check out this link, it may help.
http://www.codecomments.com/Visual_FoxPro_Programming/message682228.html

Best Regards,
Brian Hiatt

"Nicolas L." wrote:

> I need to append a word document to a general field and display it as an
> icon and edit it in word when you double-click it.
> The default option when you use the command "Append General <generalfield>
> From <file>" is to display the file content and edit it inside the
> oleboundcontrol. The only way I found to do this, is to check the "Show as
> an icon" option of the "Insert Obeject..." menu in the Create from file tab.
> Is there a way to do the same but programatically with the "Append General"
> command ???
> Thanks in Advance !!!
>
> Best Regards,
>
> Geo L.
>
>
>

Re: How to append a Word doc to a general field and display it as an icon by Nicolas

Nicolas
Mon Feb 06 20:58:44 CST 2006

The fact is that I need the whole word document to be stored in the table,
not in the disk. The way the "Insert Object... Show as Icon" works it's
perfect, the problem is that for final users is not very clear the way they
should insert the document in the table. That's why I want to do it
programatically, but it seems Foxpro doesn't support this. Is there any way
you can edit a binary memo field inside word, excel, and so on, and update
it directly to the table (just as the general field works!) ???
Thanks in advance again!

"Dan Freeman" <spam@microsoft.com> escribió en el mensaje
news:ee%231qD0KGHA.3836@TK2MSFTNGP10.phx.gbl...
> The lack of flexibility is just one reason many of us refuse to use
> general
> fields. (There are about 20 others. <g>)
>
> Why not just use a Word icon on your form, store your document name
> (instead
> of the whole OLE goop), and launch word when the user clicks your icon?
>
> Dan
>
> Nicolas L. wrote:
>> I need to append a word document to a general field and display it as
>> an icon and edit it in word when you double-click it.
>> The default option when you use the command "Append General
>> <generalfield> From <file>" is to display the file content and edit
>> it inside the oleboundcontrol. The only way I found to do this, is to
>> check the "Show as an icon" option of the "Insert Obeject..." menu in
>> the Create from file tab. Is there a way to do the same but
>> programatically with the "Append General" command ???
>> Thanks in Advance !!!
>>
>> Best Regards,
>>
>> Geo L.
>
>



Re: How to append a Word doc to a general field and display it as an icon by Dan

Dan
Thu Feb 09 11:52:19 CST 2006

General fields were based around the OLE 1.0 spec, and were in fact released
before the spec was finalized. That's why the support is less than robust.

Use FileToStr() and StrToFile() to get your document in/out of a binary memo
and a temporary file on disk, and automation to start the editing.

Dan

Nicolas L. wrote:
> The fact is that I need the whole word document to be stored in the
> table, not in the disk. The way the "Insert Object... Show as Icon"
> works it's perfect, the problem is that for final users is not very
> clear the way they should insert the document in the table. That's
> why I want to do it programatically, but it seems Foxpro doesn't
> support this. Is there any way you can edit a binary memo field
> inside word, excel, and so on, and update it directly to the table
> (just as the general field works!) ???
> Thanks in advance again!
>
> "Dan Freeman" <spam@microsoft.com> escribió en el mensaje
> news:ee%231qD0KGHA.3836@TK2MSFTNGP10.phx.gbl...
>> The lack of flexibility is just one reason many of us refuse to use
>> general
>> fields. (There are about 20 others. <g>)
>>
>> Why not just use a Word icon on your form, store your document name
>> (instead
>> of the whole OLE goop), and launch word when the user clicks your
>> icon?
>>
>> Dan
>>
>> Nicolas L. wrote:
>>> I need to append a word document to a general field and display it
>>> as an icon and edit it in word when you double-click it.
>>> The default option when you use the command "Append General
>>> <generalfield> From <file>" is to display the file content and edit
>>> it inside the oleboundcontrol. The only way I found to do this, is
>>> to check the "Show as an icon" option of the "Insert Obeject..."
>>> menu in the Create from file tab. Is there a way to do the same but
>>> programatically with the "Append General" command ???
>>> Thanks in Advance !!!
>>>
>>> Best Regards,
>>>
>>> Geo L.