Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8431753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:56:26+00:00 2026-06-10T05:56:26+00:00

Frontend In the frontend I have a macro linked to a button in my

  • 0

Frontend

In the “frontend” I have a macro linked to a button in my command bar within Word. Purpose of this button is to allow users to compare the current document with its previous version.

Backend

In the backend I have a Java EE server and Alfresco running with a few servlets. One of these servlets currently returns .doc document when given the document’s name. So I just need to call it with the good name containing the version I want and it returns me the document I asked for.

Ideal workflow

So the ideal workflow for a user would be the following :

  • User opens a MS Word document
  • User clicks on a button in the command bar
  • User gets a new document containing a merged version of both its current doc and the
    one returned by the server

What I want to know

The challenging part for me is the one regarding VB6. I know that I can merge docs with ActiveDocument.Merge FileName:="path_to_file", MergeTarget:=wdMergeTargetSelected but

  1. How to call a servlet that returns a Word Document that I can use in my VB script?
  2. How to interpret the result of this call so I can pas it to the Merge function and create my merged document?

Thank you for you help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:56:27+00:00Added an answer on June 10, 2026 at 5:56 am

    You open a document using Documents.Open. See F1-help for help on the different options and paramteters.

    Option Explicit
    
    Sub OpenDoc()
    
        Dim oDoc As Document
    
        Set oDoc = Documents.Open(FileName:="FILENAME.docx")
    
        Call oDoc.Merge("PATH-TO-OTHER-DOCUMENT.docx")
    
        Set oDoc = Nothing
    
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VB6 dll that is loaded by a VB6 frontend. This VB6
I have a URL from frontend access to the database. https://db.blabla.com Is this enough
Okay I have a project in CMake structured like this: CMakeLists.txt /libfoo/CMakeLists.txt /frontend/qt/CMakeLists.txt libfoo
I have the following vba-code in an MS-Access97-frontend which opens a word-document stored on
Let's say that I have this website file root structure: frontend /home/username/public_html/ backend /home/username/public_html/admin/
I have a symfony 1.4 project with the single application frontend . This application
I have an app, that will have a frontend where everyone can see and
I'd like to have a web frontend to my powershell scripts for helpdesk. These
I have written a server daemon (Linux, Ubuntu) which communicates with PHP as frontend
I'm trying to burn DVD/CD through frontend C# code... i have used IMAPI2 for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.