Solution - Designer Express - Error When Exporting Design Estimate

Version 2

    Behavior

     

    In the Process Framework Administration Tool the configuration key ExpressEstimateOpenWith is set to Browser. When editing an Express Design, if Design Estimate is selected on the Designer Express toolbar, then Export is clicked in the Design Estimate window, the following error message occurs in a Design Estimate error dialog:

     

     

    System.ComponentModel.Win32Exception: The system cannot find the file specified

      at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)

      at System.Diagnostics.Process.Start()

      at Miner.Desktop.DesignerExpress.ExportReport.ShowInBrowser(String filePath)

      at Miner.Desktop.DesignerExpress.ExportReport.ExportXmlToExcel(String xmlFilePath)

      at Miner.Desktop.DesignerExpress.Forms.DesignEstimateForm.ExportButton_Click(Object sender, EventArgs e)

      at System.Windows.Forms.Control.OnClick(EventArgs e)

      at System.Windows.Forms.Button.OnClick(EventArgs e)

      at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

      at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

      at System.Windows.Forms.Control.WndProc(Message& m)

      at System.Windows.Forms.ButtonBase.WndProc(Message& m)

      at System.Windows.Forms.Button.WndProc(Message& m)

      at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

    Cause

     

    This error is caused by an incorrect browser command setting in the Windows registry.


    Solution

     

    Follow these steps to correct the browser command in the Windows registry.

    Note: This involves making changes to the Windows registry. Always back up the Windows registry before making changes.

     

    1. Start the Windows registry editor by selecting Start, then typing regedit in the Search field. Click on regedit.exe under Programs in the list.
    2. Browse to HKEY_CLASSES_ROOT\http\shell\open\command.
    3. Check the Data field in the row with the Name (Default). This is the path to the browser. Use Windows Explorer to browse to this path and make sure the executable exists.
    4. If it does not exist, double click on the row to edit it. Change the Value data field to a valid path to the browser executable.