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

Print HTML output on server side

3 Answers 76 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
medialog
Top achievements
Rank 2
medialog asked on 02 Jul 2013, 03:44 PM
Hello,

There is a way to print the HTML output from RadRichTextbox on server side without print Dialog?

Thank by advance.

3 Answers, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 05 Jul 2013, 12:58 PM
Hello,

Can you describe better what you are trying to do?

If we understand you correctly, you are trying to print silently on the server using some kind of service? If this is correct, you can use the WPF DLL and set the PrintSettings.UseDefaultPrinter property to true. This will allow you to print the document silently. More information about printing can be found here.

Regards,
Kammen
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
medialog
Top achievements
Rank 2
answered on 05 Jul 2013, 02:17 PM
Hello,

Yes I trying to print on the server.
I want to send a HTML output or other output of the RadDocument to the server.
And I want the server print it.
Maybe can I serialize the RadDocument?

On the server I want to choose what printer print the document.
Can we choose the printer?

On the server is a Windows Service, so for print I must use a WPF UI control (RadRichTextbox)?
Or there another subclass to print without to use UI control.

Thank by advance.

0
Kammen
Telerik team
answered on 10 Jul 2013, 08:33 AM
Hello,

Thank you for getting back to us! Straight to your questions:
1. Yes, you will need to serialize the RadDocument. You can use XamlFormatProvider for that purpose.
2. You cannot choose the printer explicitly. RadRichTextBox supports silent printing with the default printer only.
3. You will need to use RadRichTextBox as only it can print RadDocument.

Let us know if you have further questions.

Regards,
Kammen
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
medialog
Top achievements
Rank 2
Answers by
Kammen
Telerik team
medialog
Top achievements
Rank 2
Share this question
or