Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Sumedha,
Probably, the workbook object is recreated or refreshed in your application. Try to get a new reference to it before the problematic line:
function Test1() /create and delete block
{
var burster;
var workbookView;
burster = Sys.Process("Burster");
workbookView = burster.frmSpreadsheetGear.WinFormsObject("Panel1").TableLayoutPanel1.WorkbookView;
workbookView.Click(391, 113);
workbookView.ClickR(391, 113);
workbookView.PopupMenu.Click("Convert Cell to Block");
burster.frmDefineBlock.VBObject("cmdOK").ClickButton();
workbookView.Click(684, 193);
workbookView = burster.frmSpreadsheetGear.WinFormsObject("Panel1").TableLayoutPanel1.WorkbookView;
workbookView.ClickR(469, 123);
workbookView.PopupMenu.Click("Delete Block"); //Delete the block.
}
Related Content
Recent Discussions
- 5 hours agoSvetaG