no pages in windows forms viewer

Stimulsoft Reports.NET discussion
Post Reply
jifriz
Posts: 4
Joined: Wed Mar 24, 2010 10:08 pm

no pages in windows forms viewer

Post by jifriz »

Hi
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();
when executing the progress bar appears saying compiling..
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));
but it removed all preview options from viewer from
=======================

Thanks in advance
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: no pages in windows forms viewer

Post by HighAley »

Hello.

Please, send us a working project which reproduces the issue.
Do remove some controls in Viewer with static Options in the Stimulsoft.Report.StiOptions.Viewer.Windows class.

Thank you.
Post Reply