Infragistics issue compiling OE10 code under OE11 in Eclipse

Posted by MBeynon on 06-Sep-2018 05:45

Hi,

We need to be able to compile existing OE10 code in OE11 for our customers. Our codebase does not currently use OE11 version Infragistics files so I would expect no problems if we included our v9.2 Infragistics components in our OE11 assemblies file.

I have an OE .NET form that defines;

USING Infragistics3.Excel.v9.2.* FROM ASSEMBLY.
USING Infragistics3.Win.UltraWinGrid.ExcelExport.v9.2.* FROM ASSEMBLY.

The code;

DEFINE VARIABLE wsExporter        AS Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter NO-UNDO.

wsExporter = NEW Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter().

/* add a worksheet to the work book */
wb:Worksheets:Add(lvcWorksheetName).    
    
/* create a worksheet object from the workbook's new worksheet */
ws = wb:Worksheets[lvcWorksheetName].
       
/* export the grid contents to the worksheet */
wsExporter:Export(GetReferenceToUltragrid(), ws).

When trying to compile I get the error;

Could not locate method 'Export' with matching signature in class 'Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter'. (14457).

If I remove the ws object the file compiles!

I'm a bit confused as the Infagistics UltraGridExcelExporter is definately in the Assemblies (Windows GAC) and the Class browser clearly shows the method with the signature exists;

Export (Infragistics.Win.UltraWinGrid.UltraGrid, Infragistics.Documents.Excel.Worksheet)

Adding the v9.2 infragistics components to the v15 ones in the OE11 assemblies file makes no difference either.

Have I missed something here?

Thanks,

Mark.

All Replies

Posted by Laura Stern on 06-Sep-2018 07:02

I don't see the definition of the variable ws.  Is it possible it is not defined as a Infragistics.Documents.Excel.Worksheet but as a parent class?

Posted by MBeynon on 06-Sep-2018 07:07

Hi,

Here's the ws code...

 DEFINE VARIABLE ws                AS Infragistics.Excel.Worksheet NO-UNDO.

 DEFINE VARIABLE wb                AS Infragistics.Excel.Workbook NO-UNDO.

   /* create a new workbook object with a format */
   wb = NEW Infragistics.Excel.Workbook(lvfExcelFormat).

   /* add a worksheet to the work book */

   wb:Worksheets:Add(lvcWorksheetName).    

   /* create a worksheet object from the workbook's new worksheet */

   ws = wb:Worksheets[lvcWorksheetName].

 

Thanks,

Mark.

Posted by Laura Stern on 06-Sep-2018 07:24

What do you mean by this:  If I remove the ws object the file compiles!

Obviously you can't remove it, if you're using it.  What exactly are you removing?  Do you mean you don't use it as a parameter to Export?

Posted by Laura Stern on 06-Sep-2018 07:26

I would try not adding the 2 different versions of Infragistics to the assemblies.xml but use one and then the other to see if it makes a difference.

Posted by MBeynon on 06-Sep-2018 07:26

I got this to compile by removing the v9.2 references from my assemblies XML and adding them back in via right clicking the Referenced Assemblies tree view header and adding them back in!

Many Thanks, Mark.

Posted by MBeynon on 06-Sep-2018 08:18

I meant if I remove the ws as the second parameter the file compiled! I'm guessing the compiler recognised this as a valid signature of the export method

wsExporter:Export(GetReferenceToUltragrid(), ws).

However, I have it working now.

Posted by Laura Stern on 06-Sep-2018 09:12

:-)

This thread is closed