Customize Report Viewer

Stimulsoft Reports.NET discussion
Post Reply
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Customize Report Viewer

Post by vorauler »

Hi

Is it possible to add a new button to the report viewer? Or can I change the caption and the icon from an existing button and handle the button event by myself?
We are connecting our application with a DMS and it would be great if the user could archive the report directly from the viewer.

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

Re: Customize Report Viewer

Post by HighAley »

Hello.

Please read next forum topic. It should be useful for you.
http://forum.stimulsoft.com/viewtopic.php?f=8&t=33938

Thank you.
vorauler
Posts: 71
Joined: Wed Jul 15, 2009 1:20 am

Re: Customize Report Viewer

Post by vorauler »

Hi

Thank you for your response but I need some more hints. I use this code template for my reports

Code: Select all

var data = this.GetData();
StiReport report = new StiReport();
report.Load(@"Datalist.mrt");
report.Compile();
report.RegData("Data", data);
report.Render();
report.ShowWithRibbonGUI();
Can I access the ViewerControl here or do I need to create an own WindowsForm with the Stimulsoft.Report.Viewer.StiViewerControl on it as in your sample CustomPreview?

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

Re: Customize Report Viewer

Post by HighAley »

Hello.

You should use the Form with StiViewerControl.

Thank you.
Post Reply