+ const wxVariant workbook = excelObject.CallMethod(wxT("Workbooks.Add"));
+ if (workbook.IsNull())
+ {
+ wxMessageBox(wxT("Could not create new Workbook"));
+ return;
+ }
+ }
+
+ if (!excelObject.PutProperty(wxT("ActiveCell.Value"), wxT("wxWidgets automation test!")))
+ {
+ wxMessageBox(wxT("Could not set active cell value."));
+ return;
+ }
+ if (!excelObject.PutProperty(wxT("ActiveCell.Font.Bold"), wxVariant(true)) )
+ {
+ wxMessageBox(wxT("Could not put Bold property to active cell."));