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