Forum Discussion

farhanahmed's avatar
farhanahmed
Contributor
13 years ago

How to check either file is opened or not?

Hi all

i have a scenario, i want to where a i want to show a message if a file is opened successfully if file is not opened then Log.error should be shown.

im using DTD.ExcelDriver(path,sheet1)

i can traverse the data by using DTD objects but i am un able to put check on if file opened or not, can any one help me how can i make check on either file is opened or not?

Thanks and Regards
  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor
    I'm not certain I understand the request.  DDT.ExcelDriver, by design, once you set it up, the file is open.  Are you running into some sort of problem to determine what the state of the file is?  Are there error messages?  Please clarify your purpose to this request.