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
Solved

Open FreeHand file thro VB6

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

809 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