public static RadDocument CreateDocument(RadGridView grid) { RadDocument document = null; using (var stream = new MemoryStream()) { grid.ElementExporting += elementExporting; grid.Export(stream, new GridViewExportOptions() { Format = ExportFormat.Html, ShowColumnFooters = grid.ShowColumnFooters, ShowColumnHeaders = grid.ShowColumnHeaders, ShowGroupFooters = grid.ShowGroupFooters, Culture = new CultureInfo("fr-FR"), Items = grid.Items }); grid.ElementExporting -= elementExporting; stream.Position = 0; HtmlFormatProvider provider = new HtmlFormatProvider(); document = new HtmlFormatProvider().Import(stream); document.SectionDefaultPageMargin = new Telerik.Windows.Documents.Layout.Padding(20); document.LayoutMode = DocumentLayoutMode.Paged; document.Measure(RadDocument.MAX_DOCUMENT_SIZE); document.Arrange(new RectangleF(PointF.Empty, document.DesiredSize)); } return document; }