locked
Save Dialog window shows up multiple times after completing export RRS feed

  • Question

  • User-1188570427 posted

    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());
                                    Process.Start(startInfo);
                                }

    Thursday, February 21, 2019 9:54 PM

Answers

  • User475983607 posted

    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.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 21, 2019 10:25 PM