|
-
May 13th, 2013, 02:18 AM
#1
Thread Starter
Registered User
Opening Word Document with KingSoft Office in VB6
Hi,
I have some doubts that need help from exeperts over here
a) Is KingSoft Word compatible with VB6
b) How to open a word document with KingSoft Word using VB6
I also need to know if MSWord installed in that machine.
This is my current code in which it opens with MS Word
If FileExists(string) Then
Set g_oWord = CreateObject("Word.Basic")
g_oWord.AppShow
g_oWord.FileOpen string
Thanks in Advance.
-
May 13th, 2013, 03:27 PM
#2
Re: Opening Word Document with KingSoft Office in VB6
Most 3rd party "office suite" apps do not provide an automation interface. Many of those that do either provide a small subset of those of Microsoft products or have their own proprietary object model.
So no, as far as I can tell KingSoft's Windows products do not provide this at all.
But maybe someone else has better information.
-
May 14th, 2013, 06:38 AM
#3
Re: Opening Word Document with KingSoft Office in VB6
word basic is pretty dated now in favour of VBA, so should be avoided
you should be able to open any compatible document in kingsoft Word, using Shell command, or shellexecute API, passing the filename as a parameter
but this will provide no automation of the opened document
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|