function out=execute(c)
%EXECUTE generates report contents

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.7 $  $Date: 2000/03/23 19:37:29 $

if strcmp(c.att.ObjectType,'Automatic')
   oType=getparentloop(c);
   if isempty(oType)
      oType='Model';
   end
else
   oType=c.att.ObjectType;
end

object=subsref(c.zslmethods,substruct('.',oType));

linkObj=c.rptcomponent.comps.cfrlink;

linkObj.att.LinkType='Anchor';
linkObj.att.LinkID=linkid(c,object,oType);
linkObj.att.LinkText=c.att.LinkText;

out=runcomponent(linkObj,0);