Different behaviour Forms and Wpf while exporting

Stimulsoft Ultimate discussion
Post Reply
User avatar
tpontow
Posts: 206
Joined: Thu Sep 06, 2012 8:46 am
Location: Bonn, Germany

Different behaviour Forms and Wpf while exporting

Post 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
Thorsten Pontow

It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Different behaviour Forms and Wpf while exporting

Post by Alex K. »

Hello,

On current moment it works as is.

Thank you.
Post Reply