Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Opening Photoshop and 3dStudio Max files

Posted on 2000-04-28
2
Medium Priority
?
142 Views
Last Modified: 2010-05-02
I want to write an application where I have a list of path names to particular files stored in Photoshop or 3dstudio.  This list of these are displayed on the screen and I want to click on one of them and have it open the document in an already open copy of the target application.  i.e. I have a JPG in My documents and already have open Photoshop, so when I click on the document I want it to open it in that instance of Photoshop.  How?
0
Comment
Question by:MrTimewalk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
paulstamp earned 200 total points
ID: 2760331
What you need to do use the ShellExecute API. The Declaration is

Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

And you would call it like this :

Call ShellExecute(Me.hwnd, "open", "c:\mypic.psd", vbNullString, "c:\", sw_shownormal)

This will open the file specified (mypic.psd), using the root of C as working directory, in whatever program is registered for files of type "PSD"

Likewise if you passed in a "c:\mypic.bmp" it would open whatever is associated with BMP files.

It will open it in the current instance of the program if there is one there, otherwise will create an instance
0
 

Author Comment

by:MrTimewalk
ID: 2760398
I'll try this and see how it goes thanks
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question