Using Interop to open file

  • Thread starter Thread starter Someguy
  • Start date Start date
S

Someguy

I have a managed plugin to an unmanaged application. From the plugin
I'd like to be able to open a file in the application without showing
the file->Open dialog. Is this possible? I can get the applications
Handle and have 'tested' opening a file using SendKeys but I'd like to
not show the dialog at all.

Any suggestions appeciated.

Guy
 
I have a managed plugin to an unmanaged application. From the plugin
I'd like to be able to open a file in the application without showing
the file->Open dialog. Is this possible? I can get the applications
Handle and have 'tested' opening a file using SendKeys but I'd like to
not show the dialog at all.

I would expect this to depend entirely on the unmanaged application and
what interface, if any, it provides to plug-ins for the operation of it
state (including what files are opened).

Absent such an interface, I'm not convinced that even a SendKeys
approach is reasonable. It seems fragile to me, and as a user I'm not
sure I want some plug-in controlling the user-interface of an
application. One bug or changed assumption in a version update of the
unmanaged application could cause all sorts of harm.

Pete
 
You are at the whim of the unmanaged app developer. If they provide an api,
yes, you can do other stuff. If they don't provide any api, then you can
only code simulating a user's actions.
 
You are at the whim of the unmanaged app developer. If they provide an api,
yes, you can do other stuff. If they don't provide any api, then you can
only code simulating a user's actions.

Cheers Guys, thought as much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top