Solved

Open FreeHand file thro VB6

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

743 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

16 Experts available now in Live!

Get 1:1 Help Now