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 5845767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:28:54+00:00 2026-05-22T12:28:54+00:00

We are using MS Office 2010 with PowerBuilder 10.5. While using mail merge functionality

  • 0

We are using MS Office 2010 with PowerBuilder 10.5. While using mail merge functionality from PowerBuilder application. It got application terminated. But in the later version works as usual..

I checked the Word document in the older version.. When opening that word document ( mail merge used in that) the data file (recipient file of address_data.xls) also will be opening. But in the Newer version it didn’t open. is there any option to open the excel file, while opening the document?

When opening the mail merged word document. It opens with Excel file in MS Office 97. But this is not working in MS Office 2010. I need to open that document in MS Office 2010 – Word 2010 so this should open that excel file too. How can I do that?

  • 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-05-22T12:28:55+00:00Added an answer on May 22, 2026 at 12:28 pm

    Try opening the Word document like this:

    iole_word = CREATE OLEObject
    li_result  = iole_word.ConnectToNewObject("word.application")
    // error checking code omitted
    
    // args: FileName, [ConfirmConversions], [ReadOnly], [AddToRecentFiles]
    ole_1 = iole_word.Documents.Open(is_infile,FALSE,FALSE,FALSE)
    

    I didn’t show it here, but you should put the whole thing in a try-catch block and catch oleruntimeerror. If Word can’t open the file, it throws oleruntimeerror. I presume that’s also what it’s throwing when the MailMerge fails.

    If that doesn’t work I’d make a new mailmerge document for Office 2010. If you need to support both versions you could check the Word version via the OLE interface to determine which document to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen samples using Word 9.0 object library. But I have Office 2010
I've seen this quite a few times while using Office Interop classes this.CustomXMLParts.Add(MyResources.Data, new
I have inherited an application built using the Microsoft Office Information Bridge Framework 1.6.
Ruby version 1.9.1p430 running on W7 with Office 2010. I am trying to catch
I am using Visual Studio 2010 with Visual Studio Tools for Office installed. I
I'm using Office Automation in .NET. It is leaving behind the excel.exe program. I
I'm using google docs, and some templates we are using were created using MS-Office.
Using VBA in MS Office, how do I add text to the Windows clipboard
I've been using the following code to open Office Documents, PDF, etc. on my
I am using OpenOffice.org for most of my not so very frequent Office Suite

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.