F
Fritz Switzer
In the code snippet below, I'm getting an exception "Outlines do not have
explicit heights" using the OneNote ImporterAPI. I'd like to assign the
"test.jpg" object a size of 6 inches by 6 inches when importing to OneNote
the Position settings work ok.
Can anyone provide the syntax for using the Size for Height and Width
properties in C# ?
OutlineObject outline2 = new OutlineObject();
//Size mySize = new System.Drawing.Size(6,6);
//outline2.Height.InInches(mySize);
outline2.Height= new Microsoft.Office.OneNote.Size(6);
outline2.Width= new Microsoft.Office.OneNote.Size(6);
// Exception thrown "Outlines do not have explicit heights"
outline2.Position.X=10;
outline2.Position.Y=100;
outline2.AddContent(new ImageContent(new FileInfo("test.jpg")));
p.AddObject(outline2);
Thanks in advance,
Fritz
explicit heights" using the OneNote ImporterAPI. I'd like to assign the
"test.jpg" object a size of 6 inches by 6 inches when importing to OneNote
the Position settings work ok.
Can anyone provide the syntax for using the Size for Height and Width
properties in C# ?
OutlineObject outline2 = new OutlineObject();
//Size mySize = new System.Drawing.Size(6,6);
//outline2.Height.InInches(mySize);
outline2.Height= new Microsoft.Office.OneNote.Size(6);
outline2.Width= new Microsoft.Office.OneNote.Size(6);
// Exception thrown "Outlines do not have explicit heights"
outline2.Position.X=10;
outline2.Position.Y=100;
outline2.AddContent(new ImageContent(new FileInfo("test.jpg")));
p.AddObject(outline2);
Thanks in advance,
Fritz