1 Reply Latest reply: May 15, 2014 9:58 AM by Tom Bunton RSS

    Monarch & VB.NET

    Tom Bunton

      How compatible is the Monarch object library with VB.NET?

       

      I'm trying to develop an app to gather reports and process them into a common database in different tables.

      I added a reference to MONARCHLib, then declared my monarch object variable, and instantiated it:

      Dim objMonarch As MONARCHLib.Monarch = New MONARCHLib.Monarch()[/b]

       

      My first call to this object returns an "InvalidCastException" error.  Here's the line of code (OpenFile is Boolean, strSource is a string set to a file path):

      OpenFile = objMonarch.SetReportFile(strSource, False)[/b]

       

      Any help would be greatly appreciated!  Thanx!