title: How can I Open PDF files (window default program Adobe Reader) through Delphi 2009?
body: <p>So basically when I try to open up PDF files that are windows defaulted to open with Adobe Reader nothing happens.  If I set the default program to Internet Explorer it works..</p>
  
  <p>Here is my code</p>
  
  <pre><code>var
  openDialog : TOpenDialog;    // Open dialog variable
  begin
    openDialog := TOpenDialog.Create(self);
    openDialog.InitialDir := MaskEditLocation.Text;
    if openDialog.Execute then
     ShellExecute(Handle, PChar('Open'), PChar(openDialog.FileName), nil, nil,
     SW_SHOWNORMAL);
    openDialog.Free;
  end;
  </code></pre>
  
  <p>Any Ideas?</p>
  
  <p>Thanks for the help!</p>