Opening pdf file: The system cannot find the file specified

i am getting following error while opening pdf file to get specefic text out and save in excel

can show us details on the assignment of file. the Directory… Statement.
Kindly note: GetFiles is returning a string Array of the retrieved files. So ensure that you pass only one file to opening pdf file

as mentioned above Directory.GetFiles… will return an array of strings

  • use a for each and iterate over each item from the result of Directory.GetFiles
  • pass these files to Opening PDF File, which you want to open

Setting Breakpoing and debugging allows you to inspect what Directory.GetFiles… returned


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.