C
So gehts:
bool __fastcall TTest::SetPicture(TObject *Sender,
const AnsiString& Path,
const int& Left,
const int& Top,
const int& Height,
const int& Width)
{
bool bRet = true;
try
{
WideString wsFilename = Path;
Excel_2k::ShapePtr Shape = ExcelWorksheet->Shapes->AddPicture(wsFilename.Detach(),msoTrue,msoTrue,Left,Top,Width, Height);
Shape->set_Visible(msoTrue);
}
catch(...)
{
bRet = false;
}
return bRet;
}