Hi everybody!
I'm developing a web application with Delphi 7. I have a DBgrid and some ComboBoxes to perform search operations; the resulting records are the names of some dwg (Autocad drawings) files, and everything works well.
Now I'd like to open those files by clicking on the corresponding cell of the DBgrid. In order to do that, I use the FileOpen function in response to a DBgridCellClick event, giving the full name of the file (I check it with FileExists before, and it's ok) and the opening mode (cardinal).
The procedure runs without giving errors, but the drawing doesn't open on my pc (I guess that, as it is, is too simple!). I want my application to open Autocad and the drawing (or only the drawing if Autocad is already open) in response to clicking on a cell, as if I were double-clicking on the file icon.
Any idea? What can I do to make it work?
thank u very much,
Emanuele
I'm developing a web application with Delphi 7. I have a DBgrid and some ComboBoxes to perform search operations; the resulting records are the names of some dwg (Autocad drawings) files, and everything works well.
Now I'd like to open those files by clicking on the corresponding cell of the DBgrid. In order to do that, I use the FileOpen function in response to a DBgridCellClick event, giving the full name of the file (I check it with FileExists before, and it's ok) and the opening mode (cardinal).
The procedure runs without giving errors, but the drawing doesn't open on my pc (I guess that, as it is, is too simple!). I want my application to open Autocad and the drawing (or only the drawing if Autocad is already open) in response to clicking on a cell, as if I were double-clicking on the file icon.
Any idea? What can I do to make it work?
thank u very much,
Emanuele