Help Report Viewer displaying twice

Stimulsoft Reports.NET discussion
Post Reply
sjoseph
Posts: 1
Joined: Thu Apr 16, 2009 1:29 pm
Location: USA

Help Report Viewer displaying twice

Post by sjoseph »

I am developing my first report using stimulsoft.net in WinForms.
All I have is a form with stiViewercontrol and stiReport.
on the Report itself I have a page Header with a textbox ...

I have this in my Form1_Load event
private void Form1_Load(object sender, EventArgs e)
{
stiReport1.Load("d:\\simultest\\stiReport1.mrt");
this.stiViewerControl1.Report = stiReport1;
this.stiViewerControl1.Report.Show();

}

The report displays twice once in the form and also in the Report- Viewer. I only want it to display in the Form .Am I doing something wrong.Any input is greatly appreciated.

Thanks
Smitha
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Help Report Viewer displaying twice

Post by Jan »

Hello Smitha,

Please replace line:

Code: Select all

this.stiViewerControl1.Report.Show();
by:

Code: Select all

this.stiViewerControl1.Report.Render();
Thank you.
Post Reply