Can't trace into the source code for the Office Components in Delphi

Abstract: Can't trace into the source code for the Office Components in Delphi

Information in this Brief applies to:

  • Delphi 5, 6, 7
  • Windows

Overview

Explains what you must add in project options to debug and trace into the Office Components functions and procedures

Details

Trying to Ctrl-Click into an Office component method brings up the following:

Error Unable to locate file "Word2000.pas" or "WordXP.pas"

To fix this do the following:

Select Project | Options and then select the Directories/Conditionals tab. In the Debug Source Path, you will need to add the Ocx&#092Servers directory, which are subdirectories found in the directory where you installed Delphi.