Hello.
I'm using something like this
The problem is that objRpt is an Object object so i cannot use the functions of the original class. I have tried the same thing in vb.net and it works(i suppose vb do the casting itself).Code:String classname = ""; Assembly rptAssembly = null; Type rptObjType = null; classname = Request["AssemblyName"] + "." + Request["className"]; rptAssembly = Assembly.LoadFrom(installDIR.ToString() + "\\" + this.Request["AssemblyName"] + ".dll"); rptObjType = rptAssembly.GetType(classname); objRpt = rptObjType.InvokeMember(Request["className"], BindingFlags.CreateInstance, null, null, null);
So how can i make objRpt a classname object so i can use its methods etc.
Thank you in advance!


Reply With Quote

Bookmarks