Last post Feb 21, 2019 10:25 PM by mgebhard
Feb 21, 2019 09:54 PM|tvb2727|LINK
I am seeing an issue where the Save Dialog box is being displayed again to the user after the export to excel is complete and we ask the user if they want to view the file or not.
If they select YES OR NO, the Save Dialog window pops up again. If you hit save, the code is not even ran again.
Has anyone seen anything similar to this?
if (WinUIMessageBox.Show("Would you like to view the exported file?", "Open File", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
// open the exported document
ProcessStartInfo startInfo = new ProcessStartInfo(SaveFileDialogService.GetFullFileName());
Feb 21, 2019 10:25 PM|mgebhard|LINK
This code will not work properly on a real web server as there is no one to interact with the message box. If this is a Windows application then you are in the wrong support forum.