[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

08/30/2007 at 02:46PM PDT, ID: 22798743
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

Problem using Microsoft Word automation in VB6 app

Asked by xersoft in Visual Basic Programming, Microsoft Programming, Microsoft Visual Basic.Net

Tags: word, vb6, automation, using

Hey everyone,

Running into an odd problem in an older vb6 app Im currently trying to debug. I have the app running on my computer either as compiled or in the development environment and it works fine.

When I either xcopy the exe file and/or create a deployment package and install it to another machine I cant get it to run.

The app is really small, heres the code (one form, one command button on form)

Private Sub Command1_Click()
    Dim wrdApp As Word.Application
    Set wrdApp = CreateObject("Word.Application")
    wrdApp.Visible = True
    Dim wrdDoc As Word.Document
   
    MsgBox "About to open document. " + App.Path & "\test.doc"
    Set wrdDoc = wrdApp.Documents.Open(App.Path & "\test.doc")
    MsgBox "Document open. " + App.Path & "\test.doc"
 End Sub

There is a word document in the exe directory named test.doc.

When I run this app on my computer the word doc opens in Microsoft word just fine. When I try this on another computer word does open just fine BUT as soon as the Open method is called (right before the second messagebox) the app just disappears. No error no nothing.

The event log has this to say about the problem:
Faulting application Project1.exe, version 1.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x7218bf59.

I do know this, which may help solve the problem: My computer (which works) has had Office 2000 and then upgraded to Office 2003

The computer Im trying to run this on ONLY has Office 2000

When I add the reference in Visual Basic I use Microsoft Word 11.0 Object Library

Does anyone have any thoughts as to why this wont work?

Thanks much.
[+][-]08/30/07 03:01 PM, ID: 19804548

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Basic Programming, Microsoft Programming, Microsoft Visual Basic.Net
Tags: word, vb6, automation, using
Sign Up Now!
Solution Provided By: matthewspatrick
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20090824-EE-VQP-74 / EE_QW_2_20070628