Hi there,
I am currently using Infragistics4.Web.v12.2, Version=12.2.20122.2054.
I want to export a webdatagrid to a word document, with my custom css style classes applied.
I can export the grid successfully and I have set the wordExporter.EnableStylesExport = True in the code behind.
I also handle the webWordExporter.RowExported event. Should the styles be applied during the Exporting event?
However, the grid only exports with the default IG stylesheet.
Am I missing something, or is this currently supported?
Regards.
Hello,
I want to let you know that I have received your questions here and will be looking into this for you. I will have an update for you on this post on or before Tuesday.
Thanks!
Hi JJB,
When setting EnableStylesExport to 'true' the styles that are applied to the grid when exporting to MS Word should export as well. I have tested this and find that this is not working as expected. I have logged this with our engineers with a development issue id #137968.
JJB, I have created a private support case for you for further follow-up details.
Thanks for reporting this.
Where would I find the status of the development issue #137968? I'm experiencing the same issue with the grid style not exporting. We have css applied to the grid and also at the InitializeRow event. The row will highlight in yellow when the data meets a certain criteria. When I have EnableStylesExport set to true, it only exports the grid's css without the rows highlighted in yellow. Any thoughts?
Thanks,
Karen
Hi Karen,
As it turns out, this was not a development issue after all. All that is needed for the styles to be exported to MS Word, is to apply the runat="server" setting within the style tag.
I attached my sample for your reference.
Please note that I omitted the style sheets due to file size constraints. For proper styling of the grid you will need to bring the ig_res folder back into the project. You can do this by opening the project in the designer and select 'OK' when prompted to accept the sytle sheets.
Hi Troy,
Have you recently followed up on this issue (Development Issue #137968)?
In our case it still is an unresolved issue as the sample you provided does not fix the problem.
I did reply to your sugesstion in our case log.
Please follow-up ASAP.
Tom
Hi Tom,
Your case is actively being looked into and will responded to on the support case. Thank you for your patience as we research your matter further.