Print HTML output on server side

4 posts, 0 answers
  1. medialog
    medialog avatar
    25 posts
    Member since:
    Sep 2010

    Posted 02 Jul 2013 Link to this post

    Hello,

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

    Thank by advance.

  2. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 05 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. medialog
    medialog avatar
    25 posts
    Member since:
    Sep 2010

    Posted 05 Jul 2013 Link to this post

    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.

  5. Kammen
    Admin
    Kammen avatar
    312 posts

    Posted 10 Jul 2013 Link to this post

    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 >>
Back to Top