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

Printing and Printing in OOB

3 Answers 67 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 09 Aug 2011, 12:52 AM
I have updated Telerik Silverlight Controls recently to 2011.2.712.1040.Now when I call 

RadRichTexBox.Print("Me Document", Telerik.Windows.Documents.UI.PrintMode.Native) I have an exception (I attached a picture).I looked at the examples and I do exactly the same...



And the second problem is that when I use the out of browser mode it doesn't work at all...just nothing happens.


3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 11 Aug 2011, 02:02 PM
Hi Anthony,

Unfortunately there is a bug with Silverlight printing in the Q2 official release (2011.2 712), which was introduced at a very late stage of development and passed in the final build. The good news is that we fixed it immediately in a subsequent build just a bit after that. You can download a hotfix from the Latest Internal Build from your account (Internal Builds Download section).

Best wishes,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Anthony
Top achievements
Rank 1
answered on 12 Aug 2011, 01:40 AM
Thank you for the answer.I have downloaded the latest version and it definitively works.However, I have already posted about a problem to handle the  PrintingCompleted event and as I see it's still not fixed???? Just to get to a point post my code again...

RichRadTextBox.ApplyTemplate()
RichRadTextBox.UpdateEditorLayout()
  
AddHandler CType(RichRadTextBox.ActiveEditorPresenter, Telerik.Windows.Documents.UI.DocumentPrintPresenter).PrintingCompleted, AddressOf RichRadTextBox_PrintingCompleted
 
RichRadTextBox.Print("Merged Letters", Telerik.Windows.Documents.UI.PrintMode.Native)
   
Sub RichRadTextBox_PrintingCompleted(ByVal sender As Object, ByVal e As EventArgs)
            RaiseEvent PrintingCompleted()
End Sub

It never goes into RichRadTextBox_PrintingCompleted... Did you fix that problem?????
And one more question.... Do you have any API to print RadRciTextBox in OUT-OF-BROWSER MODE?????Or are you going to implement in??any plan??
0
Iva Toteva
Telerik team
answered on 17 Aug 2011, 05:31 PM
Hi Anthony,

HTML printing does not work in out of browser mode, as it exports the document to HTML and uses the browser to print the outputted HTML. We have no plans to extend the printing support currently.
As for the events notifying when printing has been started and completed, they will be available in the service pack in a month.

Greetings,
Iva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
RichTextBox
Asked by
Anthony
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Anthony
Top achievements
Rank 1
Share this question
or