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
520
Service Release (2009.2.2035) causes ERRROR: ArgumentException - Parameter is not valid when exporting to excel
posted

Hi,

after installing the hotfix 2009.2.2035 for WinForms I get the error below. I updated from 2009.2.1003. In version 1003 exporting an ultrawingrid to excel works fine.

   bei System.Drawing.Graphics.GetHdc()
   bei System.Windows.Forms.Internal.WindowsGraphics.FromGraphics(Graphics g, ApplyGraphicsProperties properties)
   bei System.Windows.Forms.WindowsGraphicsWrapper..ctor(IDeviceContext idc, TextFormatFlags flags)
   bei System.Windows.Forms.TextRenderer.MeasureText(IDeviceContext dc, String text, Font font, Size proposedSize, TextFormatFlags flags)
   bei Infragistics.Win.DrawUtility.MeasureStringHelper(Graphics gr, String text, Font font, Size layoutArea, StringFormat stringFormat, Int32& charactersFitted, Int32& linesFilled, Boolean returnElementsFitted, GdiDrawStringFlags drawStringFlags)
   bei Infragistics.Win.DrawUtility.MeasureString(Graphics gr, String text, Font font, GdiDrawStringFlags drawStringFlags)
   bei Infragistics.Win.DrawUtility.MeasureString(Graphics gr, String text, Font font, EmbeddableEditorOwnerBase owner, Object ownerContext)
   bei Infragistics.Win.EmbeddableEditorBase.GetTextSizeOfValue(EmbeddableEditorOwnerBase owner, Object ownerContext, Boolean allowMultiline, Int32 maxWidth, Boolean isTooltip)
   bei Infragistics.Win.EditorWithText.InternalGetSize(EmbeddableEditorOwnerBase owner, Object ownerContext, Boolean valueOnly, Boolean full, Boolean includeBorders, Int32 maxTextWidth, Boolean allowMultiline, Boolean includeOwnerPadding, Boolean isTooltip)
   bei Infragistics.Win.EditorWithText.GetSize(EditorSizeInfo& sizeInfo)
   bei Infragistics.Win.EmbeddableEditorBase.GetSize(EmbeddableEditorOwnerBase owner, Object ownerContext, Boolean valueOnly, Boolean full, Boolean borders, Int32 maxTextWidth)
   bei Infragistics.Win.UltraWinGrid.RowAutoSizeLayoutManagerHolder.RowAutoSizeCalculator.GetIdealCellSize(UltraGridColumn column)
   bei Infragistics.Win.UltraWinGrid.UltraGridRow.CalculateAutoHeight()
   bei Infragistics.Win.UltraWinGrid.UltraGridRow.get_HeightIncludingPadding()
   bei Infragistics.Win.UltraWinGrid.UltraGridRow.get_BaseHeight()
   bei Infragistics.Win.UltraWinGrid.UltraGridRow.get_TotalHeight()
   bei Infragistics.Win.UltraWinGrid.VisibleRow.GetTotalHeight(Boolean adjustForOverlappedBorders)
   bei Infragistics.Win.UltraWinGrid.VisibleRow.GetTotalHeight()
   bei Infragistics.Win.UltraWinGrid.ViewStyleOutlookGroupBy.OrientVisibleRowForward(VisibleRowFetchRowContext& context, VisibleRow visibleRow)
   bei Infragistics.Win.UltraWinGrid.ViewStyleBase.InsertRow(VisibleRowFetchRowContext& context, VisibleRow visibleRow, Boolean insertDescendantRows)
   bei Infragistics.Win.UltraWinGrid.ViewStyleBase.AddSiblingRows(VisibleRowFetchRowContext& context, VisibleRow parentVisibleRow, UltraGridRow firstSibling)
   bei Infragistics.Win.UltraWinGrid.ViewStyleBase.RecreateRowList(RowScrollRegion rsr)
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows(Boolean resetScrollInfo)
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.RegenerateVisibleRows()
   bei Infragistics.Win.UltraWinGrid.RowScrollRegion.WillScrollbarBeShown(ScrollbarVisibility assumeColScrollbarsVisible)
   bei Infragistics.Win.UltraWinGrid.ScrollRegionBase.WillScrollbarBeShown()
   bei Infragistics.Win.UltraWinGrid.ViewStyleBase.AddBandHeaders(ColScrollRegion csr, UltraGridBand band)
   bei Infragistics.Win.UltraWinGrid.ViewStyleVertical.RecreateHeaderList(ColScrollRegion csr)
   bei Infragistics.Win.UltraWinGrid.ColScrollRegion.RegenerateVisibleHeaders()
   bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()
   bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()
   bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands()
   bei Infragistics.Win.UltraWinGrid.UltraGrid.Export(IUltraGridExporter exporter)
   bei Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter.Export(UltraGrid grid, Worksheet worksheet, Int32 startRow, Int32 startColumn)
   bei IBIS.WiPakRBEPlusClasses.cGenerateExcelSheet.GenerateExcelSheet(Workbook& oExcel, Boolean& bHasCheckLogic, Boolean& bHasContent) in D:\VS2005\WiPak\WiPak-Framework\WiPakRBEPlusClasses\cGenerateExcelSheet.vb:Zeile 513.

I reinstalled 2009.2.1003 and the export is working. So the hotfix is destroying my application. I also tried to install the hotfix 2017 with the same result as in .2035.

Note: The generation of the exel sheets is running not running in the main thread!

Thank you for any help!

Cheers

Michael

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    That sounds a lot like a bug that has since been fixed. I believe the current service release contains the fix, but you can contact Developer Support if you want make sure before dowloading it.

Children