麻烦大家想想办法,什么办法都试过了

解决方案 »

  1.   

    程序里:
    oRpt.PrintingStatus.NumberOfPagesrpt文件里
    TotalPageCount
      

  2.   

    我怎么找不到PrintingStatus这个属性???????????????
    帮帮忙
      

  3.   

    是report对象,不是application对象
      

  4.   

    http://community.csdn.net/Expert/topic/3204/3204925.xml?temp=.9187433.NET下报表打印完美解决方案 宽带访问    http://nhkh.kmip.net/index1.htm
    Modem拨号   http://nhkh.kmip.net/index2.htm
      

  5.   

    ReportDocument crpt = new ReportDocument();
    CrystalDecisions.Windows.Forms.CrystalReportViewer CRPViewer;
    int I = 0;CRPViewer.Visible = false;
    CRPViewer.ReportSource = crpt;
    CRPViewer.ShowLastPage();
    I = CRPViewer.GetCurrentPageNumber();方法够笨,不过可以得到结果
      

  6.   

    using CrystalDecisions.CrystalReports.Engine;
    CrystalDecisions.ReportSource.NonHTTPCachedReportSource aaa=(CrystalDecisions.ReportSource.NonHTTPCachedReportSource)this.CrystalReportViewer1.ReportSource;
    this.Response.Write((aaa.GetLastPageNumber((CrystalDecisions.Shared.PageRequestContext)this.CrystalReportViewer1.RequestContext)).ToString());
      

  7.   

    TO: player2(阿图) 
        MessageBox.show(I.tostring);
        怎么出现-1 ,高手帮忙解答一下呀!