xShape = oDataDoc.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 1, 1, 75, 50, ref rng); object ss2=(object)xShape; xShape.Select(ref ss2);
book1 = oDataDoc.Bookmarks.Add("B1", ref ss2);//<--- did not worked i get type mismatch
xShape = YourDocument.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal, 1, 1, 75, 50, ref rng);//.Name; xShape.TextFrame.TextRange.Text = "Code Project";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)