How does one add hyperlinks to table entries, like the sheet index
generated by the sheet set manager?
When constructing a table, I use "setstring" to put text into cells,
but this function returns void, so unfortunately I cant directly use
this. So, after doing that I tried to get an object id of the new MText
line, and cast it to an MText object, like the following, but no luck.
//this gives me the object id just fine
ObjectId objid = myTable.FieldId(1, 1);
//this gives exception invalid object id
DBObject dBaseObj = trans.GetObject(objid, OpenMode.ForRead);
//so obviously this line will bomb
MText mt = dBaseObj as MText;
//this gives exception invalid object id too
MText mt = (MText)trans.GetObject(objid, OpenMode.ForRead);
//this gives exception invalid object id too
Entity ent = (Entity)trans.GetObject(objid, OpenMode.ForRead, false);
//so again this obviously bombs as well
if (ent is MText)
{
hyperlinks = ent.Hyperlinks;
}
What am I overlooking here?
Perry