Different behaviour Forms and Wpf while exporting
Posted: Mon Dec 17, 2012 12:52 pm
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
In Wpf i call StiWpfViewerControl.InvokeClickSaveButton() method and with that save dialog opens immediately.
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
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);
}
}
Code: Select all
public void InvokeClickSaveButton()
{
try
{
if (ClickSaveButton != null) ClickSaveButton(this, EventArgs.Empty);
else OnClickSaveButton(this);
}
catch (Exception e)
{
StiExceptionProvider.Show(e);
}
}
Thanks
Thorsten Pontow