Hello,
I'm having some trouble adding an image to a RadDocument and am obviously doing something wrong.
When I get to this:
I'm having some trouble adding an image to a RadDocument and am obviously doing something wrong.
ImageInline teamLogo = new ImageInline( isoDir.OpenFile("TeamLogo.png", FileMode.Open));
Paragraph teamlogoParagraph = new Paragraph();
teamlogoParagraph.Inlines.Add(teamLogo);
teamLogoCell.Children.Add(teamlogoParagraph);
When I get to this:
popupWindow.radRichTextBox.Document.UpdateLayout() //error on this line
popupWindow.Show();
I get this error: Unable to cast object of type 'Telerik.Windows.Documents.Model.ImageInline' to type 'Telerik.Windows.Documents.Model.Block'.
Any advice on this? Hierarchy is correct and I followed samples in the documentation...
I HAVE TO use the ImageInline as later on I get an ImageInline object derived from the contents of a canvas control which needs to also go into the RadDocument as an image. I assume solving the former case will help later with the latter...
Please advise!
Thanks