Я создал кнопку и при нажатии кнопки хочу запустить Crystal Report.
private void SBO_Application_ItemEvent (string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent) {BubbleEvent = true; if ((pVal.FormType == 133 && pVal.EventType! = SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) && pVal.Before_Action == true) {oForm = SBO_Application.Forms.GetFormByTypeAalFountTyPyFyTyPyTalpeTalTount (p).
if ((pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_LOAD) && pVal.Before_Action == true)
{
SAPbouiCOM.Button obt = null;
oOldItem = oForm.Items.Item("2");
oItem = oForm.Items.Add("btnNew", SAPbouiCOM.BoFormItemTypes.it_BUTTON);
oItem.Top = oOldItem.Top;
oItem.Height = oOldItem.Height;
oItem.Left = oOldItem.Left + oOldItem.Width + 5;
oItem.Width = oOldItem.Width + 20;
obt = (SAPbouiCOM.Button)oItem.Specific;
obt.Caption = "New Button";
}
}
}
Спасибо