2016-06-13 102 views
0

我正在使用刺激報告創建報告頁面。報告頁面顯示正確。但是當我第二次關閉報告頁面時,報告不顯示,只顯示空白頁面。 當我關閉窗體,然後打開它報告正常工作,但只有一次。 我用下面的代碼在C#刺激報告不顯示報告頁面

report1.compile(); 
report1.show(); 

我還使用Stimul 2012和.NET4

+0

3天等待回答 –

回答

0

試試這個:

report1.compile(); 
report1.Render(); 
report1.show(); 
0

我用兩次

StimulsoftReport.compile() 

預嘗試和裏面嘗試

例如:

Try 
    Dim stiHeder As StiVariable = New StiVariable("Setings", "VarHeder", strHeder) 
    StiIsSuing.Dictionary.Variables.Add(stiHeder) 
    'StiIsSuing.Dictionary.Synchronize() 
    StiIsSuing.Compile() 
    StiIsSuing.Render() 
    StiIsSuing.Show() 
    'System.Threading.Thread.Sleep(1000) 

Catch ex As Exception 
    MsgBox("Error show report" & vbNewLine & ex.Message) 
End Try 
0

應保存您的報告文件,然後:

stiReport1.Load("Report.mrt"); 
stiReport1.Compile(); 

如果你想傳遞一個參數:

stiReport1["faktorID"] = faktor_ID; 

,然後你應該創建一個變量:name=faktorID在你的報告中