2

Im using Stimulsoft for reporting in my c# windows project.

Its my code in C# win form project:

StiReport report = new StiReport();

report.Load(@"D:\MyReport.mrt");
report.Show();

the result is like this:

enter image description here

I want to know how can I show this report in Windows form without designer like above pic. The report should be displayed in my form. So, is there any control that i can add in my form and then I show my report in that viewer control? Same as CrystalReportViewer control? I want to show that in my forms, not in anothers.

Thanks for any helping...

Elahe
  • 1,379
  • 2
  • 18
  • 34

1 Answers1

2

You should use StiViewerControl.

HighAley
  • 1,257
  • 1
  • 8
  • 20
  • I add these dll in my project : stimulsoft.Base, stimulsoft.Design, stimulsoft.Report, stimulsoft.Report.Win. but now I have just Report control in my toolbox, I dont have StiViewerContro. – Elahe Jan 27 '15 at 07:02
  • I did not use Stimulsoft. But just in case. Maybe now this is related to a question like "How to add a control to the toolbox?". You can see http://stackoverflow.com/questions/8931328/how-do-i-add-my-new-user-control-to-the-toolbox-or-a-new-winform . – serdar Jan 27 '15 at 07:32
  • This has been flagged as a low quality post. It would help if you could supply an explanation why the OP should use StiViewerControl. – DeanOC Jan 27 '15 at 07:44
  • The StiViewerControl is located in the Stimulsoft.Report.Win assembly. If you don't have this control in the Toolbox you could add it manually. How to add controls you could learn in the Visual Studion documentation. – HighAley Jan 28 '15 at 06:08
  • @DeanOC, Elahe asked the control that he could use on his form. I had answed this question. What additional expanation do you need? He could find all explanation with sample in the Stimulsoft Documantation if he had bought the product legally, but I highly doubt it. – HighAley Jan 28 '15 at 06:11
  • I did not flag your answer. I just added the comment. SO prefers answers with a bit of explanation why your suggestion addresses the problem. – DeanOC Jan 28 '15 at 16:46