Hi,
I have problems to use print-method in RadRichTextBox control. E.g when I dynamically load RadRichTextBox to the visual tree and then set the document. This throws an null exception when I call the Print-method.
CreateDocument returns a valid document, I have tested it by loading it to radRichtextbox without printing.
Hopefully you can see directly what is wrong in my code... if you can provide sample project, that would also help.
I'm using WPF version of Telerik controls (ver. 2011.2.712.40)
Regards,
Auvo
I have problems to use print-method in RadRichTextBox control. E.g when I dynamically load RadRichTextBox to the visual tree and then set the document. This throws an null exception when I call the Print-method.
RadRichTextBox textBox =
new
RadRichTextBox();
grid.Children.Add(textBox);
textBox.ApplyTemplate();
textBox.UpdateEditorLayout();
textBox.Document =
this
.CreateDocument();
textBox.Print(
"MyDoc"
, PrintMode.Native);
// It crash in here!
CreateDocument returns a valid document, I have tested it by loading it to radRichtextbox without printing.
Hopefully you can see directly what is wrong in my code... if you can provide sample project, that would also help.
I'm using WPF version of Telerik controls (ver. 2011.2.712.40)
Regards,
Auvo