代码如下:
Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
Type type 
= assembly.GetType("CoalTraffic.Report." + strReportArea + "LoadWeightPrint");
object obj = Activator.CreateInstance(type, strWeightCode,true); Form formToShow = (Form)obj; formToShow.ShowDialog();

相关文章: