Grid is successfully exported to pdf and excel file.but it ignore all css class.
Hi rtapankm,
This problem with landscape was reported. I think it should be fixed in a later Service Release. Could you try to download the last one and see if it is resolved?
regards,David Young
Hi,
I am using Infragistic 10.3 version with "NetAdvantage_ASPNETWithSamplesAndHelp_20103"
and “NetAdvantage_ASPNET_20103.2120_SR”.
When I was trying to export data from WebDataGrid to PDF in landscape style, it always shows in Portrait style.
I am binding data to WebDataGrid from a Webservice call.
I saw some blogs related to it but nowhere I found any solution.
http://forums.infragistics.com/forums/t/57087.aspx
http://community.infragistics.com/aspnet/articles/webdatagrid-import-data-from-excel-amp-export-to-excel-pdf-or-xps.aspx
Here is my code for Export Button Click event
this.dExporter.DownloadName = "ExportHoganAccountsPDF";
this.dExporter.Format = Infragistics.Web.UI.GridControls.FileFormat.PDF;
this.dExporter.TargetPaperOrientation = PageOrientation.Landscape;
this.dExporter.TargetPaperSize = PageSizes.Legal;
this.dExporter.Export(this.wHoganAcctDataGrid);
Thanks
Tapan
Email : rtapankm@gmail.com
Hi all,
My apologies for the previous misconception.
Generally speaking the built in stylesets should be exported in PDF and Excel. Modifying the styleset existing properties to set for instance text-alignment should be reflected in the exported file. The same would apply for setting the grid's font to bold from the designer. However adding new properties or using custom CSS may not be exported.
Please contact me if you have any questions or need assistance with exporting in a particular scenario.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
Petar, I believe he was referring to the WebDataGrid.
I am curious about the response, because I am having a very difficult time with styles and the WebExcelExporter and WebDocumentExporter. I use the built-in StyleSets using the StyleSetName to apply the style to the grid. In most cases, the Excel spreadsheet comes out with no styling at all.
Is it possible that using the CDN could be interfering with the exporters being able to read the styles?
Hi miglage,
Thank you for posting in the community.
Please note that the UltraWebGridExporters carry only the styling set explicitly in the markup or code-behind into the exported file. Therefore in order to get the desired look and feel in the epoxrted file I would suggest that you style the grid either from the markup or serverside before exporting.
The UltraWebGrid control (along with the exporting controls) is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Please let me know if you have any questions.