I am using the WebDocumentExporter and want to hook into the CellExported event to modify the exported contents. Note that I've done this successfully with the WebExcelExporter control.
The WebDocumentExporter->CellExported event takes a parm of type DocumentCellExportedEventArgs. According to the IG documentation, it has a property called ReportCell which I think is what I need.
BUT using Visual Studio 2010, the DocumentCellExportedEventArgs class doesn't have a ReportCell property. It has a property called ReportCellElement which doesn't seem to help me.
Can somebody provide a code sample of the WebDocumentExporter->CellExported event or another way to modify the data exported via the WebDocumentExporter?
Thanks.
I had reviewed your code. I want to set background color for the particular cell in Exported PDF document. for that I need to access the
e.ReportCellElement inside the webdatagrid1_RowExported() Event. That means I want set color for the particular cell in webdatagrid1_RowExported() Event. kindly provide the code sample regarding this. thanks for your help in advance.
Hello Cliff,Thank you for posting in our forum.
I have prepared a code sample including CellExported event.In order to maintain a low zip file size, I have deleted the ig_res folder.
You could take advantage of our official documentation regarding DocumentEngine here: DocumentEngineSamples> How to get answers>
Can you provide a code sample?
Hello Cliff,
Thank you for your patience. ReportCell property is replaced by the ReportCellElement. You could use the new property it the same way, as used to with the other one. Here is a link for a reference in our documentation for v.13.1:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2013.1/CLR4.0/html/Infragistics4.Web.v13.1~Infragistics.Web.UI.GridControls.WebDocumentExporter~CellExported_EV.html
Please, keep me updated so I know if you were able to solve your issue based on these suggestions or you still need help.
Once again, let me generalize the scenario I originally posted, and urge (BEG) IG support to reply. There must be code samples out there that accomplish what I'm looking to do.
But rather than focus on specific WebDocumentExporter events, can someone please help with a code sample, using WebDocumentExporter events to massage/modify the grid data as it's being saved to a PDF? Like I mentioned above, the IG documentation on the CellExported event seems to differ with what I see exposed by the event args object.