set the property "DiscardSaveData"

解决方案 »

  1.   

    请问是谁的property ="DiscardSaveData"?
      

  2.   

    Sorry,the proerty is crystal report's not datareport
      

  3.   

    Sorry, is crystal report's property not datareport
      

  4.   

    用以下代码:
    If DataEnvironment1.rsCommand2.State = adStateOpen Then
     DataEnvironment1.rsCommand2.Close
    End IfDataReport2.Show
      

  5.   

    用以下代码:
    If DataEnvironment1.rsCommand2.State = adStateOpen Then
     DataEnvironment1.rsCommand2.Close
    End IfDataReport2.Show
      

  6.   

    同意楼上,你datareport1.reflash只是刷新表报,并未刷新报表的数据源,只有刷新数据源才能使报表的内容发生改变
      

  7.   

    If DataEnvironment1.rsCommand1.State = adStateOpen Then
     DataEnvironment1.rsCommand1.Close
    End If
    DataReport1.Show
    Private Sub DataReport_QueryClose(Cancel As Integer, CloseMode As Integer)
    On Error Resume Next
    DataReport1.Refresh
    Unload Me
    End Sub