Solved

Open FreeHand file thro VB6

Posted on 2003-11-27
1
322 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add text to end of existing text in file 16 69
bit defender blocks good applications 2 83
how to know if my Checkbox is True in VB6.0? 9 41
vbModal 12 38
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
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…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now