SaveDialog.Execute not doing anything in Windows 7

后端 未结 2 1596
小蘑菇
小蘑菇 2020-12-20 04:10

Delphi 2007 on windows 7 just does nothing on the saveDialog.Execute call. I have seen another person mention this a few weeks back but it was with Borland c++.

相关标签:
2条回答
  • 2020-12-20 05:07

    I got the same problem (savedialog not working) in windows XP.

    After lots of unsuccessful attempts according to the voluminous exchanges in the embarcadero group you mention (https://forums.embarcadero.com/thread.jspa?messageID=196950&tstart=0#196950).

    I found what the reason was : the initial file dir and filename of the Savedialog12 were bad, contradicting each other, the filename containing the fullpath of the last file I had opened (I had thought it was smart to prepare the saving of the file I had opened last; unfortunately what I had put in the initialdir was equal to what I had put in the filename !)

    The problem was already solved by clearing both fields of the save dialog.

    Further, my initial goal to prepare the saving was reached by putting valid values in the involved fields :

    SaveDialog1.FileName:=ExtractFileName(Opendialog1.Filename);
    SaveDialog1.InitialFileDir:=ExtractFilePath(Opendialog1.Filename);
    
    0 讨论(0)
  • 2020-12-20 05:09

    See the thread "TOpenDialog.Execute not working " on embarcadero newsgroups.

    Problem there was resolved by deleting the executable name from "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options"

    0 讨论(0)
提交回复
热议问题