谢谢各位的支持!、
小弟也搞定!
TReport r = new TReport();
System.IO.Stream f = System.IO.File.OpenRead("c:\\ttty.repx");
r.LoadState(f);
r.ShowPreviewReport();
f.Close();

解决方案 »

  1.   

    为什么,我的xtrareport总是在LoadState(filename)时报错?
      

  2.   

    TReport是什么类?是xtrareport么?
      

  3.   

    我用LoadState()方法时
    报下面的错误亚,请高手指点
    //------------------------------------------------
    未处理的“System.Runtime.Serialization.SerializationException”类型的异常出现在 mscorlib.dll 中。其他信息: 程序集 SimpleReport, Version=1.0.1551.31807, Culture=neutral, PublicKeyToken=null 中的类型 SimpleReport.Report 未标记为可序列化。
      

  4.   

    请问从什么地方能得到xtrareport,我想学习学习。