Delphi SaveDialog not showing

In an application developed with Delphi XE6 and ReportBuilder ( link ) and deployed on computers running Windows 7 after ReportBuilder screen, user can print it to file.

The button allows the user to select the directory in which the file will be saved:

 /* This source code was provided by Digital Metaphors; I cannot change it. */
 SaveDialog1: TSaveDialog;
 ...
 procedure TppPrintDialog.btnPrintToFileClick(Sender: TObject);
 begin
   if SaveDialog1.Execute then
     begin

      

On most Windows 7 computers where the application was deployed, the report works as expected.

However, on some computers, nothing happens when it is executed SaveDialog1.Execute

.

I found a post on StackOverflow question with a link to Embarcadero's post which states the following:

This issue was addressed by removing the executable name from HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Executing File Image Options

Unfortunately in my case the problem was not resolved because the application is not even listed in the specified registry entry.

I've already turned to digital metaphors and Embarcadero to no avail.

+3


source to share


1 answer


This happened to me when I set environment variables for a project in Delphi environment. Neither downloads nor save dialogs were displayed in the debugger at startup due to an OLE error that was silently ignored in the VCL. Removing these environment variables solved the problem again.



Unfortunately I don't remember which version of Delphi was.

-1


source







All Articles