uses DPSCAD_TLB;
begin
{check if we're connected to Automation}
if CheckConnection() then // (See function here)
begin
{adding to logo1}
(PCsApplication.ActiveDocument.Drawing as IPCsDrawing2).LoadLogo(0,'c:\MyPic\logo.bmp');
PCsApplication.Redraw;
end;
end;
begin
{check if we're connected to Automation}
if CheckConnection() then // (See function here)
begin
{adding to logo1}
(PCsApplication.ActiveDocument.Drawing as IPCsDrawing2).LoadLogo(0,'c:\MyPic\logo.bmp');
PCsApplication.Redraw;
end;
end;