现在提供代码,抛砖引玉:
在启动窗体中加入下列代码,其中Print.RptAgreement为您系统中任意一个报表名:
private static Print.RptAgreement newCrystal = new Print.RptAgreement();
public class AClass
{
public void crystalAdd()
{
newCrystal.Refresh();
}
}
在main_Load中加入下列代码:
AClass obj = new AClass();
Thread th1;
th1 = new Thread(new ThreadStart(obj.crystalAdd));
th1.Start();