K
Konstantin Becker
Hello!
I try to add a new Page to the AppointmentItem. I do it from C# over COM
with:
AppointmentItem x =
(AppointmentItem )Application.CreateItem(OlItemType.olAppointmentItem);
Inspector ins = x.GetInspector;
Pages p = (Pages)ins.ModifiedFormPage;
p.Add("Test");
ins.ShowFormPage("Test");
x.Display();
it's work!
Now I want to add a Control to the page "Test";
I do it so:
Page y = (Page)p["Test"];
y.Controls.Add(.....);
But Page class or interface does not exist in
Microsoft.Office.Interop.Outlook. I can't cast the object.
What can I do. Please help me!!!
thanks in advanced
Konstantin
P.S. Sorry for my english.
I try to add a new Page to the AppointmentItem. I do it from C# over COM
with:
AppointmentItem x =
(AppointmentItem )Application.CreateItem(OlItemType.olAppointmentItem);
Inspector ins = x.GetInspector;
Pages p = (Pages)ins.ModifiedFormPage;
p.Add("Test");
ins.ShowFormPage("Test");
x.Display();
it's work!
Now I want to add a Control to the page "Test";
I do it so:
Page y = (Page)p["Test"];
y.Controls.Add(.....);
But Page class or interface does not exist in
Microsoft.Office.Interop.Outlook. I can't cast the object.
What can I do. Please help me!!!
thanks in advanced
Konstantin
P.S. Sorry for my english.