This is a migrated thread and some comments may be shown as answers.

PrintingCompleted doesn't work

3 Answers 46 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Manfred
Top achievements
Rank 2
Manfred asked on 17 Feb 2011, 08:17 AM
Hi there ;-)

just another problem:
tried out your example to print a RadRichTextBox with this Code:
((DocumentPresenterBase)textBox.ActiveEditorPresenter).PrintingCompleted += delegate
{
     this.LayoutRoot.Children.Remove(textBox);
     window.Close();
};
And VS 2010 tells me that DocumentPresenterBase has no Definition for PrintingCompleted.
I tried to compile your Example without any changes to verify and it has the same problem.

Best Regards
Manfred

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 22 Feb 2011, 08:28 AM
Hi Manfred,
Could you please specify what is your scenario? In the most common case you should just call Print method of the instance of RadRichTextBox:
radRichTextBox.Print("Test Document", PrintMode.Silverlight);
The code you found is outdated and was used in a specific case when there was no RadRichTextBox added to the visual tree.

Best wishes,
Boby
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Levi
Top achievements
Rank 1
answered on 02 Sep 2011, 01:23 PM
Hi,

   I have tried a simple program, dropped a radrichtextbox and with other controls, but when I tried to call print method, it produces an exception.


Thanks
0
Boby
Telerik team
answered on 07 Sep 2011, 09:04 AM
Hello Levi,
Unfortunately there was a bug with native printing in Q2 2011 release. The fix was included in the Latest Internal Build and should be released in Q2 SP1.
We are sorry for the inconvenience.

Regards,
Boby
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
RichTextBox
Asked by
Manfred
Top achievements
Rank 2
Answers by
Boby
Telerik team
Levi
Top achievements
Rank 1
Share this question
or