Using MS Word 9.0 Object Library
I`m designing an application in order to fill MS word docs. I have found the "MS Word 9.0 Object Library" but I don`t know how to begin to use it. Do you know some tutorials or the basic functions? Thanks in advance
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Packaging Of The Word Automation Program Using Microsoft Word 9.0 Object Library
I made a MS Word Automation program.
In my code, I selected "Microsoft Word 9.0 Object Library" at Project=>References.
Now I want to package that program, so I listed dll, ocx files which is call from my frogram.
But, What file do I have to find for the reference of "Microsoft Word 9.0 Object Library"?
Could anyone let me know?
MS Word 98 Object Library With Word 2000
I wrote a program that uses the Microsoft Word 8.0 Object Library to write to Word documents, etc. Will that program run unmodified on a PC that has Word 2000 rather than Word 97?
Word 8.0 Object Library
how can i get the Word 8.0 object library without installing Word?
i have a spellchecker written in VB that requires this library.
Word Object Library
I just made a small application that writes text and variables into a small word document.
I created this application using MS Word 10 object library, and everything works fine here at home. I am using Office XP.
Now I have compiled the application and brought to work where they have Office 97. When the events starts to transfer the text to the word doc, I get an error and my application quits.
But the word doc opens fine, and text is all there, the problem lies that the save as function did not work. the document should have opened and saved under another name.
Long story, but does anyone know if this is caused by the object library!
I am fairly new at this stuff so any help is appreciated.
MS-WORD Object Library
i have worked on a database project and i found that
generating reports in ms-word is much easier and useful
what i am doubtful is that 'should the user have the
ms word installed on his computer to be able to
generate and view the reports? '
(user means - the person using my application that
i distribute as a setup file)
or is it sufficient if i can bundle the ms word object
library with the application?
please answer my query..
Word 9.0 Object Library
i have a question:
we are making reports using the word 9.0 object library.
my question is: do the users need to have word 2000 installed in their computers????
Word 10.0 Object Library
I have an application that automates MS Word. The app functions properly with Word 2000 but when run on a system with Word XP it faults.
Here is a snippet of the problem code.
Set SoapNote = New Word.Application
Set SoapDoc = SoapNote.Documents.Add(TemplateName) 'Code Faults here
With SoapNote.Selection.Find 'Code Faults Here
.Text = SearchField(x)
In design Mode running the Project generates a run time
Method 'Find' of object 'Selection' failed.
I have tried creating a new object of type
(Word.Application.Selection) If I change the code
accordingly to access methods of the selection object I
get an error on the line I am trying to set the Object
What is different in 10.0 and what should I do in my code
to accomodate these changes.
P.S. BUG: Automation Client Receives Error Calling Word Find
Object [Q292744] This KB Article addresses a similar problem, but does not fix the issue.
Word Object Library
I have a code segment that can create a table in Word. But it has no table title and column name. I wonder who can tell me how to add it.
set db = OpenDatabase("C:ETProjectEFTT.mdb")
set rs = db.OpenRecordset("Select HUC,HUC_NAME,SCORE,RANK from tblwatershed " & _
"where RANK = 5 ")
set WordApp = new Word.Application
set doc = WordApp.ActiveDocument
set sel = WordApp.Selection
doc.Tables.Add Range:=sel.Range, NumRows:=239, NumColumns:=4
Do Until rs.EOF
WordApp.Visible = true
set WordApp = nothing
Word 8.0 Object Library Compatibility
Hi, quick question.
I have a reference in my app to
Microsoft Word 8.0 Object library
Word 97 because it's all I have.
Will my coding that uses the Word instance still work if someone has 2000 or xp? Do I need to have a reference to them all.
thanks in advance
Looking For A Word 9.0 Object Library Reference
Hey there again,
I'm also looking for a book/e-book or a paper of some sort with a
function reference on the Word 9.0 object library. Where can
one find this information?
Microsoft Word 8.0 Object Library
I am having a problem here ...
When i develop my application in VB, i used the MSWord 10.0 Objecj Library.
The Run function allow me to run a MSWord macro and submitted the parameter to that macro. However, when i run on Win97, the MSWord 8.0 Object Library, the Run function do not support the passing of parameter.
Can anyone advise me on how can i pass the parameter over to the macro !
Microsoft Word 9.0 Object Library
Can some someone please upload the Microsoft Word 9.0 Object Library? I am in great need of it and cannot install the latest service pack.
Thanks so much!
That Infernal Word Object Library !
I was getting problems with MSWORD9.OLB when installed on PC's with Office 97 (illegal operations, but Ok in Office 2000), so I got MSWORD8.OLB and used this as a reference in my project instead. Now when I call up a word document through my app on a PC with office 97, Word runs ok, but it's a pure document window without any of word's menus and toolbars, and I cannot seem to get them back within that session. If I fire up Word 97 manually, I get it all ok. The reason I need the toolbars etc is that I am passing a mail-merge column header file to open and I need to access the "Insert Merge Field" button.
Is there a way to turn on Word's menus etc. when using the object library within VB ???
If not, how can I auto-insert the required field names for my merge template using VB code ????
Thanks for any ideas....
Microsoft Word Object Library
I would like to incorporate a spell checker? If I reference Microsoft Word 8.0 Object Library and distribute the compliled program to others do they need Microsoft Word?
Are there any in-process spell checkers? I do not want the user to rely on a particular spell checker.
Dim MSWord As Word.Application
Private Sub Form_Load()
Set MSWord = New Word.Application
Private Sub cmdCheck_Click()
Dim text As String
Dim suggestion As Word.SpellingSuggestion
Dim colSuggestions As Word.SpellingSuggestions
If MSWord.Documents.Count = 0 Then MSWord.Documents.Add
text = Trim(txtWord.text)
If MSWord.CheckSpelling(text) Then
Set colSuggestions = MSWord.GetSpellingSuggestions(text)
If colSuggestions.Count = 0 Then
lstSuggestions.AddItem "(no suggestions)"
For Each suggestion In colSuggestions
Printing Using Word Object Library
I'm not sure if I am in the right forum but I don't know where to start!
I'm having a problem with some of our in-house developed software and getting it to work on our systems.
We have managed to get the application to work on various systems (developer systems and 2 of our citrix servers) but have not been able to get it on any others.
In the app, users are able to select a client and then select from a list of documentation for that client. Once they click the print button, the app launches an instance of Word in the background which uses a pre-defined document template. The document is then populated with the clients info and is then sent to a printer. This is where the fun begins!!!
The printer (and its printer tray to be used) is defined in a SQL database table depending on which document template is selected.
The problem is that when the document goes to print, it is not sent to the printer. Instead, it is sent to a print file (.prn) in the users "My Documents" folder. The file is named with the last word of the printer name. For example, if the printer was defined as "\server1printer1 (server)" the file would be named (server).
I have no idea why it is being spooled there. All other apps print fine to the printer including Word except when using this in-house app.
The office version on my system that doesn't work is Office XP SP2, matching that of a developer system which does.
Both systems are Windows XP SP 2 and both have VB6 SP5 installed.
Hope someone can help as this is doing my head in!
Thanks in advance.
Word Object Library Query
I have an application that uses the Microsoft Word 9.0 object library. Problem is that the pc's the app will eventually run on have the 8.0 object library, thus when testing it, it always comes up with the error "can't find project or library".
Shouldn't the object library I have on the development PC be backward compatible or do I have to install the older version of word if I want the app to run ok on it's target pc's.
Microsoft Word 8.0 Object Library
From a VB App, how can I access Tables and Text Boxes within a Word 97 Document. I can open the document, but I can't seem to pinpoint the data.
Add/Delete Pages In Word Through The 10.0 Object Library
Does anyone know if you are able to add and remove pages from your Word document using VB code? I know how to create and manipulate the document, but I am unsure whether you can add to and from a document. I am working on a automation project where the user can enter various criteria through a html form and based on that criteria certain pages are assembled into one Word document.
Microsoft Word 9.0 Object Library Problem
when I have a refreacne to Microsoft Word 9.0 Object Library selected and hit F2 vb6 freazes. a pup up error window saying VB6.exe has generated errors and will be closed by Windows. You will need to restart the program.An error log is being created.
when I remove the referance to Microsoft Word 9.0 Object Library then F2 opens up the Object Browser fine.
thanks for help
Microsoft Word 9.0 Object Library Error !
i add references Microsoft Word 9.0 Object Library but when i write such as : dim a as _
the message VB6.EXE Application
the instruction at .............. the memory could not be 'read'
what happened ? how to fix it ?
give your answer
Back-compatability Of MS Word 9.0 Object Library
I have an app that references the Microsoft Word 9.0 Object Library (Word 2000) which works fine on my development PC which has Office 2000 on. When I install the app on other PC's that have Office 97, any code that taps into the Word library causes an illegal operation. Is there any way that I can make my application work with older versions of MS Word on the target PCs ?
Select MS Word Object Library In Project
Word.Basic will always reference the latest version of MS Word. It also appears that the two interfaces are binary compatible because they both have the same Class IDs.
(I only have Word 2000 on my system, but Word.Basic, Word.Basic.8 and Word.Basic.9 have the same CLSIDs, plus microsoft knows that it is important to have binary compatibility)
Anything you implement using Word 97 should work fine with Word 2000.
MS Word 10 Object Library Licensing Question
If i have used the MS Word 10 Object Library in my VB application am i free to redistibute this with my application.
For example you can redistibute the access engine for free with your applications.
If the answer is no - is possible to get a vb to pick up on the installed version of the object libary on a clients machine
thanks in advance for any help
Question About Microsoft Word 8.0 Object Library
How do I using MS Word 8.0 Object Lib in VB acheive the same result as if I where to Insert -> Picture -> From File in MS Word application. Something like:
dim app as Word.Application
set app = new Word.Application
Late Binding/Early Word Object Library
I am really confused about this Late/Early binding concept. Basically my problem is I have a program that generates a word document. It worked fine, I upgraded my computer to XP to do some testing on other stuff. Made some updates to this program, released it to a few people (not running XP yet)for testing and now they can do everything but run the cover letter.
Here is the code I am using. I am sure it has to do with the object library, I am referencing 10.0 and they have 8.0.
Dim objword As Word.Application
Dim bWasntRunning As Boolean
bWasntRunning = False
On Error Resume Next
Set objword = GetObject(, "Word.Application")
If Err Then
bWasntRunning = True
Set objword = CreateObject("Word.Application")
On Error GoTo 0
objword.Visible = True
Word Object Library Serious Compatability Problem With VB -Useful Info
Micorsoft knows this problem exists but has done nothing to fix the Word library itself. It took a week to find the answer to this problem....
The VB interface crashes when a reference is set to the word object library as soon as you DIM something...
here is the Answer.................
Fix the Word Object library
BUG: Automation Client Receives Error or Crashes Calling Word's Find Object
This article applies to…
This article was previously published under Q292744
When you use an out-of-process client application that uses early binding to Automate Word 97 or later, the application may crash with an access violation or you may receive one of the following error messages:
From Microsoft Visual Basic:
The Interface will simply carash as soon as you insert a space after the Variable Name.. (The article at the link doesn't mention this this is why i had so much trouble finding the solution.
Run-time error '-2147023113 (800706f7)':
The method '~' of object '~' failed
Run-time error '-2147023113 (800706f7)':
Method 'Execute' of object 'Find' failed
Run-time error 430:
Class does not support automation or does not support expected interface.
From Microsoft Visual C++:
HRESULT = 0x800706F7
RPC_X_BAD_STUB_DATA - The stub received bad data.
NOTE: In debug builds you receive a corrupt stack warning from an Assert dialog box, and the value of EAX is that listed above. In release builds, the stack corruption will likely crash the application soon after this point, but the HRESULT value is likely to be similar to the above.
The problem occurs consistently on some computers, but may never occur on others. Installing a new application or a Microsoft Excel service pack can cause a computer that was working previously to experience the problem.
The information in this article applies to:
Microsoft Office Word 2003
Microsoft Word 2002
Microsoft Word 2000
Microsoft Word 97 for Windows
Microsoft Visual Basic Professional Edition for Windows 6.0
Microsoft Visual Basic Enterprise Edition for Windows 6.0
Microsoft Visual C++, 32-bit Professional Edition 6.0
Wierd Happenings Opening Word Through Object Library
I use the MS Word object library to open up a Word document through my VB app. With no pattern at all, sometimes the Word application is ok, other times it appears without any drop-down menus or toolbars. The call to open Word is through the same point in my app, and any parameters are always the same (apart from the document to open). I'm a but stumped !!!!
*RESOLVED* Identify Object Library To Which Object Belongs
I have inherited a VB6 application which was written by someone who is no longer with the company.
I need to distribute his application but I have noticed that he used some objects from the Forms2 object library.
As you are not allowed to distribute applications that use this library, I have to work through his application and replace forms2 objects with others.
I have replaced the obvious ones (spin button) but when I try to remove the Forms2 component from the project, it tells me that some controls are still in use.
How can I tell which objects belong to the Forms2 library?
As always, any help greatly appreciated.
IE Object Library Using VB
I just need to open a URL using VB.
Basically I'm manipulating the IE object library in VB. And using this reference I restricted(invisible) all the menus, url address bar and toolbar.
But my problem is when the user press "F11" key... it is visible.
My question is How do I desable the "F11" key
thanx in advance
I am using vb6 to do my project, all working fine till today.
I went to open vb6 up and I getting error "object library not registered"
if I press continue it asks to load project with errors and then wont allow me to see forms
any ideas what happened and mor importantly how to fix problem
thnx in advance
Object Library .olb
I want to quickly switch between excel8.olb and excel9.olb (one of my components uses excel objects). How can I manually register these files so that in effect I can swicth from on to the other (we have code basically supprting clients on different versions of office) ?
How I set reference to Word Object Library?
Dim objWord As word.application
Set objWord = New word.application
.Visible = False
Hello.. I have a conflict when I try to add a control to my projekt... The conflict is that the name allready exists in the object library... So I checked it out and sure it was there... But the control wasn't ... hmmm.. So my question is.. Can you delete different object from the library from some other place then from the components dialog??
Object Library Help
I have some code that uses an object library that doesn't show up in my installation of MSDN. For example, there's stuff like this:
Dim dynLog As Object
Set dynLog = Oradatabase.dbcreatedynaset(strSql, 0&)
MSDN will not tell me what the methods are for the Oradatabase class or how to use them. Where do I get that level of information?
Object Library Help
So, I'm curious. Is there documentation out there explaining what each of the Object Libraries in VB does? I guess I could hunt down each one individually, but I'm curious as to whether or not there is a comprehensive website or document listing and describing what each one does and what its extensions are/do.
Where Is Office 10 Ole Object Library?
i built and compiled an app with MS.OLE Document Properties 1.4 object lib
i have tried to compile on another machine using office 10 but cant find the
Office 10 Ole doc prop object library?
who hid it????
Object Library Not Registered
I have in my computer at home in Microsoft Excel registered some DLL-files in the Registry Editor. Files I use at work also. It all works fine except for one thing.
When I am in the Visual Basic Editor and clicks "Tools" and then "References" it won't open the References - VBAProject Box. It is here you choose the references you need.
I get the message: "Object Library not registered. The Visual Basic for Application OBJECT LIBRARY is no longer a standalone file; it is integrated into the DYNAMIC-LINK LIBRARY (DLL)."
Who would be helpful and tell me, what file has been removed when I registered the DLL's from work. I really need to know.
Many thanks in advance, if anyone can help me.
Update To Object Library
I have a program that was using Access 97, we have finaly made it to this century and are updating everyone to XP. So my problem is I know I have the old Object library for 97 installed on everyones machine, and they need to update to the 10.0 one. What is the best way to do this? I do not want to re-install the program on everyone's machine, I am sure there is an easy way to update, I am just at a loss.
Excel Object Library
does someone knows where can I download the excel object library for excel 2000?
I Get An Object Library Not Registered
I am having problems with my excel. For some reason, I cannot see my references in the tool menu in Excel (it is greyed out). However, I can see my references in the tool menu everywhere else (Access, Word, Powerpoint, and others).
I have tried registering msstdfmt.dll but hasn't worked so far. (I get sucessfully registered, but doesn't do it).
Any help will be greatly appreciated.
Excel Object Library
I am using VB6 and make a reference to the excel object library 8.0 in my program. If someone uses the program with Excel X, will the program still work?
Is there a way to reference all the excel librarys(sp?), Excel Object Library 8.0, 9.0 and 10.0?
Thanks for the help.
Object Library Not Registered
ok - once again ive broke my computer doing the stupidist of things - i ran the vb update package for vb6 when i have vb 5 - somehow i imagined that the files id install would be the updated ocx and dll files that i need - i was wrong .
basically the problem i have is that when i run my project and error is displayed 'Object library not registered' whe i check the log that it creates it says:
Line 196: Class ComctlLib.StatusBar of control StatusBar1 was not a loaded control class.
Line 203: The property name _ExtentX in StatusBar1 is invalid.
Line 204: The property name _ExtentY in StatusBar1 is invalid.
Line 205: The property name SimpleText in StatusBar1 is invalid.
Line 206: The property name _Version in StatusBar1 is invalid.
Line 251: The property name Panels in StatusBar1 is invalid.
Line 196: Property MouseIcon in StatusBar1 could not be set.
which obviously refers to a statusbar that i have i my project.
what i was woundering was - what would be the best method of undoing my stupidity?
ive tried reinstalling vb5 ontop of itself and removing it and reinstalling it and neither has corrected the error - i presume this is cause it find newer versions of the files and wont overrite them.
the only way i could think of definatly fiuxing it would be to buy VB6 - though im a bit skint at the minute so can any of u guys help?
thanks alot - sorry for being such an idiot
Excel Object Library
I'm developing an application which will run using Excel 97 but the PC I'm developing on has Excel 2000 installed. Will that give me trouble or how do I make sure that my app will be ok with 97?
Object Library Not Registered
I saved my project and whent to bed last night, then this morning tried to load it again to work on it. But after many errors, all saying how VB produced an error while loading the forms, VB crashed. I tried this many times, then looked at the logs it produced. Every error was on every ocurance of a status bar, progress bar, and tool bar in the entire project. So I made a new project and tried to add "Microsoft Windows Common Controls" To the project. The fallowing error ocured "Object Library not registered". What is this? This error renders my project useless and is nothing but abrupt. Thanks
Object Library Reference
I am developing an application that uses the Excel Object Library...My system has Office XP installed, under my references I see the Excel 10.0 object library reference, but my client (who is going to be using the app) has Office 2000, which uses the EXCEL9.OLB, Excel 9.0 object library. I do not have a reference to the 9.0 object library in my VB IDE...So I was wondering, if I go ahead and reference the 10.0 object library will this create a problem once the app is installed on the clients machine? since the object libraries will be different?