我正在使用刺激报告创建报告页面。报告页面显示正确。但是当我第二次关闭报告页面时,报告不显示,只显示空白页面。 当我关闭窗体,然后打开它报告正常工作,但只有一次。 我用下面的代码在C#刺激报告不显示报告页面
report1.compile();
report1.show();
我还使用Stimul 2012和.NET4
我正在使用刺激报告创建报告页面。报告页面显示正确。但是当我第二次关闭报告页面时,报告不显示,只显示空白页面。 当我关闭窗体,然后打开它报告正常工作,但只有一次。 我用下面的代码在C#刺激报告不显示报告页面
report1.compile();
report1.show();
我还使用Stimul 2012和.NET4
试试这个:
report1.compile();
report1.Render();
report1.show();
我用两次
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
应保存您的报告文件,然后:
stiReport1.Load("Report.mrt");
stiReport1.Compile();
如果你想传递一个参数:
stiReport1["faktorID"] = faktor_ID;
,然后你应该创建一个变量:name=faktorID
在你的报告中
3天等待回答 –