Design Report button

Stimulsoft Reports.WPF discussion
Post Reply
JobaDiniz
Posts: 8
Joined: Wed May 02, 2012 9:46 am

Design Report button

Post by JobaDiniz »

I've seen in the Wpf samples a button "Design Report" in the toolbar.
How can I enable this button on my reports?

I show the report with ShowWithWpf() method, but I want the user to be able to change the report within the preview.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Design Report button

Post by HighAley »

Hello.
JobaDiniz wrote:I've seen in the Wpf samples a button "Design Report" in the toolbar.
How can I enable this button on my reports?

I show the report with ShowWithWpf() method, but I want the user to be able to change the report within the preview.
There is a MainToolBar property of the Wpf Viewer. You could add there any button.

Thank you.
JobaDiniz
Posts: 8
Joined: Wed May 02, 2012 9:46 am

Design Report button

Post by JobaDiniz »

I only found MainToolbarVisibility.
However, I'm not using the Wpf Viewer. I have a StiReport instance and I call ShowWithWpf() method.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Design Report button

Post by HighAley »

Hello.
JobaDiniz wrote:I only found MainToolbarVisibility.
However, I'm not using the Wpf Viewer. I have a StiReport instance and I call ShowWithWpf() method.
Wpf Viewer is called by ShowWithWpf() method.
You should use Stimulsoft.Report.Viewer.StiWpfViewerControl.MainToolBar for your needs.

Thank you.
JobaDiniz
Posts: 8
Joined: Wed May 02, 2012 9:46 am

Design Report button

Post by JobaDiniz »

Could you provide some code? Because I'm not finding this property.
Anton Lozovskiy
Posts: 135
Joined: Tue Aug 11, 2009 9:38 am

Design Report button

Post by Anton Lozovskiy »

Hello,

Please, find the attached sample application.

Thank you.
Attachments
1827.WpfApplication3.zip
(8 KiB) Downloaded 282 times
JobaDiniz
Posts: 8
Joined: Wed May 02, 2012 9:46 am

Design Report button

Post by JobaDiniz »

Ok, but I don't have the "StiWpfViewerControl" in my window.
I simply have a StiReport and from it I call ShowWithWpf().
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Design Report button

Post by HighAley »

Hello.
JobaDiniz wrote:Ok, but I don't have the "StiWpfViewerControl" in my window.
I simply have a StiReport and from it I call ShowWithWpf().
The only way is to create a form and put there StiWpfViewerControl.

Thank you.
Post Reply