VB SaveFileDialog file list blank

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seraieis
    New Member
    • Apr 2008
    • 60

    #1

    VB SaveFileDialog file list blank

    Good afternoon experts!

    I'm having some strange problems with a SaveFileDialog within a VB.NET app. This is a reporting application that is in testing with 7 users, plus myself. Two of the users are having problems when they try and save the results. The SaveFileDialog comes up, however the contents of the window are blank (see attached image), and it will not allow them to save the file.

    I've tried changing the security settings, thinking this could be the cause, but it doesn't seem to be. I'm just baffled as to why the SaveFileDialog doesn't work on these two users. They have other applications coded with the same type of dialog and it works correctly. Has anyone else experienced this type of error, or know what I can do to correct it?

    Code:
                SaveFileDialog1.InitialDirectory = "\\wldapp051\chcdata\SLS\Audit\"
                SaveFileDialog1.CheckFileExists = False
                SaveFileDialog1.CheckPathExists = True
                SaveFileDialog1.AddExtension = True
                SaveFileDialog1.OverwritePrompt = True
                SaveFileDialog1.ValidateNames = True
                SaveFileDialog1.ValidateNames = True
                SaveFileDialog1.Title = "Export workbook..."
                SaveFileDialog1.FileName = "WKBK"
                SaveFileDialog1.Filter = _
                    "All Files (*.*)|*.*" & _
                    "|Microsoft Excel (.xls)|*.xls"
                result = Me.SaveFileDialog1.ShowDialog(Me)
    Attached Files
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Your image is so small its impossible to make out any detail or text, but it looks like the save button is enabled.

    When you say
    and it will not allow them to save the file.
    what does the computer actually do or respond with? What is the actual dialog message that pops up?

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I am guessing that the box appears to "freeze up"?
      You set your initila directory to a network share, if for whatever reason the computer its running on can't map a location to that network share (its messy in windows) it will sit there trying for like 5mins before failing.

      I would ask those users to try to run:
      \\wldapp051\chc data\SLS\Audit\

      And see what happens.

      Comment

      • seraieis
        New Member
        • Apr 2008
        • 60

        #4
        Originally posted by tlhintoq
        Your image is so small its impossible to make out any detail or text, but it looks like the save button is enabled.

        When you say what does the computer actually do or respond with? What is the actual dialog message that pops up?
        I apologize for the tiny image. For some reason it shrank when I uploaded it. There is no actual error message generated. However, even if they type in a valid name and hit the save button, it doesn't save. The form responds to the input, but nothing happens.

        Comment

        • seraieis
          New Member
          • Apr 2008
          • 60

          #5
          Originally posted by Plater
          I am guessing that the box appears to "freeze up"?
          You set your initila directory to a network share, if for whatever reason the computer its running on can't map a location to that network share (its messy in windows) it will sit there trying for like 5mins before failing.

          I would ask those users to try to run:
          \\wldapp051\chc data\SLS\Audit\

          And see what happens.
          I had them do Start->Run and view the UNC path, and they were able to view the folder contents. What I'm doing now is having them test a version of the application that doesn't display the dialog box, but instead makes Excel visible so they can save the output that way. I will keep everyone posted.

          Comment

          • seraieis
            New Member
            • Apr 2008
            • 60

            #6
            I'm at a loss as to why the SaveFileDialog doesn't work within this particular function. The same dialog is used in other parts of the application and it show the folder contents ok. I have removed this dialog out of sheer frustration (the dialog was to pre-save an Excel output, so the users will now save it through Excel, rather than through the application). I do want to thank everyone for their helpful ideas!

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              Is there actually any XLS files IN that directory?
              If there were no folders, no shortcuts and not files matching the filter pattern, nothing would show up in there?

              Comment

              Working...