Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
580
Export to PDF - WHDG - After Resize Column Width to Zero - Gives Error
posted

Hi,

We are using Infragistics WHDG, 13.1.20131.1012.

We are getting an error while exporting the grid data in PDF format using the 'DocumentExporter' control, if user re-size the column width to zero. following error we are getting,

[0.0, ...] Parameter name: value

   at Infragistics.Documents.Reports.Report.FixedWidth..ctor(Single value)    at Infragistics.Documents.Reports.CssStyle.ApplyWidth(ReportElement element)    at Infragistics.Web.UI.GridControls.ReportCaption.ApplyStyle(CssStyle style)    at Infragistics.Web.UI.GridControls.ReportElement.ApplyStyleSheet(String classes, String styles)    at Infragistics.Web.UI.GridControls.ReportCaption..ctor(String text, String url, IText element, ReportElement parent, Font customFont)    at Infragistics.Web.UI.GridControls.ReportCell.AddText(String text, String url, Font customFont)    at Infragistics.Documents.Reports.ReportWrapper.AddText(String text, String url)    at Infragistics.Documents.Reports.ReportWrapper.AddText(String text)    at Infragistics.Documents.Reports.ReportWrapper.AddText(Object value)    at Infragistics.Documents.Reports.ReportRenderer.ExportHeaderCell(GridField column, String controlClass, String headerCellClass, Boolean isMultiCol, IGrid containingGrid)    at Infragistics.Documents.Reports.ReportRenderer.ExportHierarchicalHeader(ContainerGrid container, Boolean showExpanders, Boolean showSelector, Boolean showGroups)    at Infragistics.Documents.Reports.ReportRenderer.ExportRowIslands(ContainerGrid container)    at Infragistics.Documents.Reports.ReportRenderer.ExportHierarchicalGrid(WebHierarchicalDataGrid hGrid)    at Infragistics.Documents.Reports.ReportRenderer.Render()    at Infragistics.Web.UI.GridControls.WebDocumentExporter.ConfigureHierarchicalSection(WebHierarchicalDataGrid grid, Report report, ISection hSection)    at Infragistics.Web.UI.GridControls.WebDocumentExporter.Export(WebHierarchicalDataGrid grid, Report report, ISection section)    at Infragistics.Web.UI.GridControls.WebDocumentExporter.Export(WebHierarchicalDataGrid grid)    at ASPNETAJAX.WebForm5.Export2PDF_Click(Object sender, EventArgs e) in D:\Yogesh\Personal\RND\Infragistic_Demo\ASPNETAJAX\WebForm5.aspx.cs:line 400    at System.Web.UI.WebControls.Button.OnClick(EventArgs e)    at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)    at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)    at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 

I have also attached here a sample code, and following are steps to reproduce,

1. Re-size the column 'A1' width to zero. Select 'A1' column and move this column to left site as much as you can and after that you release the column.

2. Now the 'A1' column width become the 'zero' pixel.

3. Now try to export grid data with 'PDF' format, click on 'PDF' button bottom of the grid control.

4. it gives us error.

 

Can you pls. help us, is anything is missing from my side?

 

Thanks & Regards,

Yogesh Shah

Infragistic_Demo.zip
Parents
No Data
Reply
  • 29417
    Offline posted

    Hello Yogesh,

     

    Thank you for posting in our forum.

     

    Thank you for the sample. I managed to reproduce this and logged a new development issue with number 168634 so that the development team can further look into this and provide a fix or other solution.

    In order to more easily track the issue I’ve created a private case for you with number: CAS-134230-B1S6L2.

    You can view the status of the development issue connected to that case by selecting the "Development Issues" tab when viewing this case on the web site. 

     

    Please let me know if you need more information.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://www.infragistics.com/support

     

Children
No Data