Results 1 to 3 of 3

Thread: Opening Word Document with KingSoft Office in VB6

  1. #1

    Thread Starter
    Registered User
    Join Date
    May 2013
    Posts
    3

    Post 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.

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    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.

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    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
  •  



Click Here to Expand Forum to Full Width