Page 1 of 1

Different behaviour Forms and Wpf while exporting

Posted: Mon Dec 17, 2012 12:52 pm
by tpontow
Hello,

i found that there is a different behaviour in Forms and Wpf when exporting a report.

In Forms i'm using StiViewerControl.InvokeClickExportButton(). If i did not show the Stimulsoft Toolbar a popup menu opens and i can choose from that menu. The Stimulsoft code for that is

Code: Select all

public void InvokeClickExportButton()
		{
            try
            {
                if (ClickExportButton != null) ClickExportButton(this, EventArgs.Empty);
                else
                {
                    tbSave.PopupMenu(tbSave.ScreenRectangle.X, tbSave.ScreenRectangle.Bottom);
                }
            }
            catch (Exception e)
            {
                StiExceptionProvider.Show(e);
            }
		}
In Wpf i call StiWpfViewerControl.InvokeClickSaveButton() method and with that save dialog opens immediately.

Code: Select all

public void InvokeClickSaveButton()
        {
            try
            {
                if (ClickSaveButton != null) ClickSaveButton(this, EventArgs.Empty);
                else OnClickSaveButton(this);
            }
            catch (Exception e)
            {
                StiExceptionProvider.Show(e);
            }
        }
Why is it such a different behaviour? Is it planned to unify Forms and Wpf behaviour? How can i get that export popup menu in Wpf?

Thanks
Thorsten Pontow

Re: Different behaviour Forms and Wpf while exporting

Posted: Wed Dec 19, 2012 7:37 am
by Alex K.
Hello,

On current moment it works as is.

Thank you.