EditTool in StiViewer

Stimulsoft Reports.WPF discussion
Post Reply
pi2342
Posts: 2
Joined: Fri Apr 27, 2018 7:58 am

EditTool in StiViewer

Post by pi2342 »

Hi,

I'm using Stimulsoft Trial Version 1.8 with wpf/c#.

Unfortunately there is a problem using the EditTool when embedded in my window.

I embedded a StiViewer in my xaml like:

Code: Select all

<wpfViewer:StiWpfViewerControl Grid.Row="1" Grid.Column="0" Name="StiViewer1" HorizontalAlignment="Stretch"/>
and load a simple report into it by:

Code: Select all

		StiReport stiReport1 = new StiReport();
		stiReport1.Load("..\\..\\Reporting\\edittext.mrt"); // a report with a single textbox (editable set to 'True')
		this.StiViewer1.Report = stiReport1;        
            stiReport1.Render(); 

as far as good, the report is shown in the viewer.

But the EditTool Button is inactive and even if I set it manually to

Code: Select all

this.StiViewer1.IsToolEditorEnabled = true;
and click it, the edit mode cannot be entered.

If I call

Code: Select all

stiReport1.Show();
instead of 'Render()' a new dialog window is shown with active EditTool-button and the text field can be edited as expected.

Do you have any advise or solution for us. It is an essential feature we do not want to miss, if we buy your product.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: EditTool in StiViewer

Post by Edward »

Hi Pi,

Thank you for the explanation of the problem in detail.

Normally the editor tool is activated automatically when there are editable fields in the report's preview window, as in the following sample:
http://demo.stimulsoft.com/#Net/EditableReport

Please check the following topic for a workaround that should work for you:
viewtopic.php?t=36662

If you still have any issues with the editor tool, please feel free to send the sample mrt file or your test project to support[at]stimulsoft.com, we will try to help you to solve the issue or to confirm the bug if there is any.

Thank you,
Edward
pi2342
Posts: 2
Joined: Fri Apr 27, 2018 7:58 am

Re: EditTool in StiViewer

Post by pi2342 »

Hi Edward,

I found

Code: Select all

StiOptions.Viewer.Windows.ShowEditorTool = true;
in the link and that did the trick. Everything else described wasn't necessary.

Thank you so much
Pi
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: EditTool in StiViewer

Post by HighAley »

Hello, Pi.

We are always glad to help you.
Let us know if you need additional help.

Thank you.
Post Reply