Solved

Open FreeHand file thro VB6

Posted on 2003-11-27
1
323 Views
Last Modified: 2010-05-01
Anyone knows how to open a FREEHAND file  
like as follows

Dim wrd As New Word.Application
Dim doc As Word.Document
Set doc = wrd.Documents.Open("D:\test.doc")

is that possible i can define FREEHAND APPLICATION in vb code?
0
Comment
Question by:Viji4u
1 Comment
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 50 total points
ID: 9831642
As long as it would be COM comnpatible, you can't but if you only need to open the file and nothing more you could use Shellexecute api.

Private 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


shellexecute 0, "open","D:\test.doc",vbnullstring,,vbnullstring,vbnormalfocus
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

810 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