1 2 3 4 5 6 7 8 9 10 11 12 13
|
// Avec Forms.Label.1, le label est inserré, avec mon usercontrol : invalid argument
object classType = "ScriptControlProject.UserControl";
//object classType = "Forms.Label.1";
object left = 100;
object top = 100;
object width = 10;
object height = 10;
object start = 0;
object end = 0;
object range = this.Application.ActiveDocument.Range(ref start, ref end);
Word.Shape s = this.Application.ActiveDocument.Shapes.AddOLEControl(ref classType, ref left, ref top, ref width, ref height, ref range); |