My webdatagrid is styled with the Office2010Blue style and display very nicely on the webpage. I want to export the contents of the grid to pdf but without all the styling. No colours, plain Arial font with black grid lines, nothing else.
How do I do this?
Hello Casper,
Thank you for your clarification.
In this case I recommend you using CellExported event in order to set Borders of all the cells.
<ig:WebDocumentExporter ID="WebDocumentExporter1" runat="server"
CustomFont="Arial, 9pt"
oncellexported="WebDocumentExporter1_CellExported">
</ig:WebDocumentExporter>
protected void WebDocumentExporter1_CellExported(object sender, Infragistics.Web.UI.GridControls.DocumentCellExportedEventArgs e)
{
e.ReportCell.Borders.All = new Infragistics.Documents.Report.Border(new Infragistics.Documents.Graphics.Pen(new Infragistics.Documents.Graphics.Color(System.Drawing.Color.Black)));
}
Let me know if you need further assistance regarding this
Hi Tsvetelina,
I'm aware of the EnableStylesExport property. However, there are no grid lines shown and that's what I require.
Regards
Casper
Hello cjherasmus,
If you don't want styles to be exported, you can just disable it by setting EnableStylesExport = false
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=Infragistics4.Web.v10.3~Infragistics.Web.UI.GridControls.BaseExporter~EnableStylesExport.html
Let me know if you need further assistance regarding this.