Marina Keshyan
Posts: 4
Joined: 2009-07-30
|
Hi,
I've successfully implemented an add-in customizing menus in Excel.
The add-in uses a task pane to set certain parameters.
To initialize, i use AddinModule_AddinStartupComplete to adxExcelTaskPanesManager1.Items[0].ShowTaskPane() and assign it an event handler. This works fine on my machine and another client .. the second client is generating a null reference error on excel start-up (task pane will not initialize). Have tries reinstalling several times.. All machines are running Office '03 SP3. Is there anything in the user's local settings that would cause this? Any ideas?
private void AddinModule_AddinStartupComplete(object sender, EventArgs e)
{
eventsObject = new ExcelWorksheetEvents(this);
adxExcelTaskPanesManager1.Items[0].ShowTaskPane();
adxExcelTaskPanesManager1.Items[0].TaskPaneInstance.VisibleChanged +=new EventHandler(TaskPaneInstance_UpdateVal);
}
|
|
Fedor Shihantsov
Guest
|
Hi Marina,
I believe you don't need to call adxExcelTaskPanesManager1.Items[0].ShowTaskPane();.
TaskPane will be shown by adxExcelTaskPanesManager1. automatically.
So, remove calling ShowTaskPane and move assigning the VisibleChanged event handler to the ADXOlForm constructor.
Please let me know about the result.
|
|