usin ultimate 2012.2
I have a problem in my implementation [viewer shows blank with no pages at all] :
#In report designer did the following tasks:
1)created connection named [connection] to local mssql database
2)added one table called [testtb]
3)customized the layout and draged fields
4)tested in preview inside designer .. working 100%
5) saved to mrt file in application bin\release folder
#In visual studion I called my report using the following code:
Code: Select all
StiReport report = new StiReport();
report.load("Path to mrt file");
DataTable dt=new DataTable();
dataadabter.fill(dt);
dt.TableName="testtb";
report.Dictionary.Databases.Clear();
report.Dictionary.DataSources.Clear();
report.RegData("testtb", dt);
report.Dictionary.Synchronize();
report.Show();
after that the viewer comes with no pages inside
another question is how to limit the default .Show() viewer capabilities like disable exporting and remove toolbars in this report instance only [Not application-wide]
I tried
Code: Select all
report.PreviewSettings = (report.PreviewSettings & (int)(~Stimulsoft.Report.Viewer.StiPreviewSettings.Save));
report.PreviewSettings = (report.PreviewSettings & (int)(~Stimulsoft.Report.Viewer.StiPreviewSettings.Toolbar));
=======================
Thanks in advance