Page 1 of 1

GetReportFromAssembly does not work

Posted: Wed Dec 05, 2007 7:31 am
by EDV Gradl
In both, V 2007.3.30 and V2007.3.32 the GetReportFromAssembly function cause an exception (Index out of range). Please look into this.

RemObjects.SDK.Types.ServerException was unhandled by user code
Message="An exception occured on the server: Der Index war au?erhalb des Arraybereichs."
Source=" bei Stimulsoft.Report.StiReport.GetReportFromAssembly(Assembly assembly)\r\n bei Stimulsoft.Report.StiReport.GetReportFromAssembly(String assemblyFile, Boolean lockFile)\r\n ....


Ok, I found the solution. My reports were compiled with a version less than V2007.3.30 and therefore they caused the error. When re-created the .dlls it worked.

Is there a way to detect if the .dlls were compiled with a different version that the currently in use?

Thanks a lot

Marco

GetReportFromAssembly does not work

Posted: Wed Dec 05, 2007 3:39 pm
by Vital
Hello Marco,

You can use method GetReportAssemblyCacheName of StiReport for creating dll name.

Thank you.