Page 1 of 1

Help Report Viewer displaying twice

Posted: Thu Apr 16, 2009 1:34 pm
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

Help Report Viewer displaying twice

Posted: Fri Apr 17, 2009 12:34 am
by Jan
Hello Smitha,

Please replace line:

Code: Select all

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

Code: Select all

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