- }
- if (!excelObject.PutProperty("ActiveCell.Value", "wxWindows automation test!"))
- {
- wxMessageBox("Could not set active cell value.");
- return;
- }
- if (!excelObject.PutProperty("ActiveCell.Font.Bold", (bool) TRUE))
- {
- wxMessageBox("Could not put Bold property to active cell.");
- return;
- }
+ }
+ if (!excelObject.PutProperty("ActiveCell.Value", "wxWindows automation test!"))
+ {
+ wxMessageBox("Could not set active cell value.");
+ return;
+ }
+#ifdef HAVE_BOOL
+ if (!excelObject.PutProperty("ActiveCell.Font.Bold", wxVariant((bool) TRUE)) )
+ {
+ wxMessageBox("Could not put Bold property to active cell.");
+ return;
+ }
+#endif