RichEditControl.ExportToPdf(Stream) Method
Exports the content of the RichEditControl to the specified stream in PDF format.
Namespace: DevExpress.Xpf.RichEdit
Assembly: DevExpress.Xpf.RichEdit.v25.1.dll
NuGet Package: DevExpress.Wpf.RichEdit
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object to which the created document is exported. |
Remarks
The following code snippet exports the RichEditControl’s document to the PDF file:
using (FileStream pdfFileStream = new FileStream("Exported_Stream_Document.pdf", FileMode.Create))
{
richeditControl1.ExportToPdf(pdfFileStream);
}
PDF Export features and limitations are detailed in the Export to PDF document.
See Also