2016-06-13 103 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在你的报告中