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

Open in pdf without saving

1 Answer 63 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
BRUNO
Top achievements
Rank 1
BRUNO asked on 22 Jun 2012, 01:18 PM
Hello,

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.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 25 Jun 2012, 10:40 AM
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.

Greetings,
Iva Toteva
the Telerik team

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

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