Open in pdf without saving

2 posts, 1 answers
  1. BRUNO
    BRUNO avatar
    14 posts
    Member since:
    Jul 2010

    Posted 22 Jun 2012 Link to this post


    I would like to export my richtextbox in a pdf file, but without saving it on my computer.
    How can I do that ?

    I'm using Q3 2011 with Silverlight 4.
  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 25 Jun 2012 Link to this post

    Hi Bruno,

    You can use all format providers (including PdfFormatProvider) programmatically as shown in this article. In the examples, the streams of the OpenFileDialog and SaveFileDialog are used, but you can pass a MemoryStream in the same manner. It is also possible to export the document to a byte array.

    Having exported the document to a stream or a byte array, you can proceed to save the file on the server or process it in any other way.

    Iva Toteva
    the Telerik team

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

Back to Top