How, using dxl, do I change an OLE displayed as an icon to one displayed as editable information? |
Re: Change from view OLE as icon I did notice that you could select the object in DXL and call the OLE Properties dialog. My guess is that the DXL would stop there and wait for you to click OK on the window. That would make it a little less painful...have you tried that? |
Re: Change from view OLE as icon |
Re: Change from view OLE as icon driven_mad - Tue Feb 23 21:46:49 EST 2010 |
Re: Change from view OLE as icon |
Re: Change from view OLE as icon jenksbj - Thu Mar 21 10:43:59 EDT 2013 The OLE Object Properties dialog is invoked by a built-in perm showOlePropertiesDialog(Object). This dialog is not implemented in DXL. Tony Goodman, www.smartdxl.com |
Re: Change from view OLE as icon Tony_Goodman - Thu Mar 21 11:00:10 EDT 2013 I see from the DXL help this is for gettting a word doc and displaying as an ole, but I wonder if it could be tweaked to call an attribute instead of a file location? |
Re: Change from view OLE as icon SystemAdmin - Tue Mar 26 08:58:24 EDT 2013
Aha!
Object o = current
string res = ""
if (oleIsObject o)
{
if (oleCut o)
{
res = olePasteSpecial(o."Object Text", false)
}
}
print res
|
Re: Change from view OLE as icon Tony_Goodman - Thu Mar 28 09:08:00 EDT 2013
Aha!
Object o = current
string res = ""
if (oleIsObject o)
{
if (oleCut o)
{
res = olePasteSpecial(o."Object Text", false)
}
}
print res
Tony
Object o
Module m = current
string res = ""
for o in m do {
//check if object text has embedded OLE
if (oleIsObject o) {
//cut the OLE to the clipboard???
if (oleCut o)
{
//olePaste pastes the clipboard to object text of o as an embedded OLE
//putting false to true changes it to an icon
res = olePasteSpecial(o."Object Text", true)
}
}
Thanks
}
|
Re: Change from view OLE as icon SystemAdmin - Thu Mar 28 10:52:52 EDT 2013
Tony
Object o
Module m = current
string res = ""
for o in m do {
//check if object text has embedded OLE
if (oleIsObject o) {
//cut the OLE to the clipboard???
if (oleCut o)
{
//olePaste pastes the clipboard to object text of o as an embedded OLE
//putting false to true changes it to an icon
res = olePasteSpecial(o."Object Text", true)
}
}
Thanks
}
Intuitive guess: olePaste uses the "current" object not the attrRef one.
current = o
if (o != current(m)) then cannot set current
elseif (oleCut o)
{
//olePaste pastes the clipboard to object text of o as an embedded OLE
//putting false to true changes it to an icon
res = olePasteSpecial(o."Object Text", true)
}
|
Re: Change from view OLE as icon llandale - Thu Mar 28 14:41:58 EDT 2013 Intuitive guess: olePaste uses the "current" object not the attrRef one.
current = o
if (o != current(m)) then cannot set current
elseif (oleCut o)
{
//olePaste pastes the clipboard to object text of o as an embedded OLE
//putting false to true changes it to an icon
res = olePasteSpecial(o."Object Text", true)
}
The use of current can fix the problem ...
pragma runLim, 10000
Module m=current
Object o
string res = ""
for o in m do {
current = o
if (oleIsObject o)
{
if (oleCut o)
{ res = olePasteSpecial(o."Object Text", true)
}
}
print res
}
Greg |