var image =
this
.radRichTextBox.Document.EnumerateChildrenOfType<ImageInline>().First();
if
(image.Height == 10 && image.ImageSource.DecodePixelHeight == 0)
{
image.Height = image.ImageSource.Height;
}
In MS Word, there is an option to show gridlines over the pages of the document. Implement such an option in RadRichTextBox as well.
Workaround: The attached project offers a simple custom implementation.
private
void
RadRichTextBox_CommandExecuting(
object
sender, Telerik.Windows.Documents.RichTextBoxCommands.CommandExecutingEventArgs e)
{
if
(e.Command
is
PasteCommand &&
this
.radRichTextBox.Document.IsEmpty)
{
this
.radRichTextBox.Insert(
" "
);
}
}
When the user copy-pastes an image from Outlook, it is pasted as an IncludePictureField and visualized as expected. The field code looks like
{INCLUDEPICTURE :image001.png@01D15D16.4FAF0970 \* MERGEFORMATINET}
However, when the fields in the document are updated, the image is no longer shown because of its invalid Uri. In MS Word, when you paste the image, it is directly inserted as image and the field is skipped.
Workaround - remove the field start/ends (in the attachments)