Failed to Create Multiple Word objects VB6 -
Hi Everyone,
I'm working on a VB6 program which will process a selected word document. Anyway, I want to allow the users to work on some other MS word documents when the process is running. Because when i run my program, the process will take about 20 mins to finish, it's illogical to have the user waited for 20 mins without working on other Word-related works. I want the user to be able to multitasking.The problem i'm having now is when the user opens a another word document from Window Explorer, I get an error, because my program is trying to perform the actions on their selection on new opened word document.
So, is there anyway to ensure a new Word instance will be created when the user open another word Document? As you can see from the Task Manager, under normal circumstance, no matter how many word documents you open, only one "WINWORD.EXE" instance is being created and shared. I believe my problem will be solved if every word document opened is accompanied by a new Word object created.
The following is a small part of my code to create the Word object
Dim wrdApp As Word.Application
Dim wrdDoc As New Word.Document
Dim tempApp As Word.Application
If TypeName(wrdApp) <> "Application" Then
Set tempApp = CreateObject("Word.Application")
Set wrdApp = CreateObject("Word.Application")
tempApp.Quit
Set tempApp = Nothing
End If
Set wrdDoc = wrdApp.Documents.Open(filePath)
Any help would be deeply appreciated. thanks..
Multiple Objects -
Could someone post some example code for the following problem? I have a single class that I would like to create multiple objects of. Since I would like to do this on the go, I can't name each object. How would you do this. How could there be an array of objects and so on. The class r
Failed to Create Multiple Word objects VB6 -
Hi Everyone,
I'm working on a VB6 program which will process a selected word document. Anyway, I want to allow the users to work on some other MS word documents when the process is running. Because when i run my program, the process will take about 20 mins to finish, it's illogica
Strange Word Problem using compiled DLL -
Hey all,
I'm having an unusual problem I was hoping someone here had come across before. I'm using an ActiveX DLL to create and save a Word document from an ASP page. When I leave my DLL running within the VB environment and initiate the routine, everything works fine and the file i
How to connect events of multiple objects to one event handling function -
Hi, Gurus
Please help me with this. I've been doing research for a few days but haven't got a solution. In my case, I need to create several objects of the same type. The object generates a few events need to be handled. I need to create the objects dynamically at runtime.
Now
Create objects at runtime - Object names from file -
I am trying to create multiple user defined objects at runtime. I would like to use a configuration file to define the objects, thus allowing me to use the same application with different configuration files and have a different result for each. Can VB 6.0 create objects at runtime
Using Word to Mailmerge in VB 6 -
Hi All,
I want to use VB6 to mailmerge, but can't find much help on the matter. There seems to be different ways to declare word and document objects. I have noticed that you can declare a word object as follows:-
Dim wrdApp As Word.Application, wrdDoc As Word.Document, wrdMerge
Using shell32 API to print multiple copies in MS Word -
Hello,
I'm stuck on something that I hope someone can answer. I would like to print multiple copies of a MS Word document using the shell32 API (ShellExecute). The only way I can see right now is to loop as many times as needed, based on # of copies, to execute the ShellExecute func
application objects -
Are application objects, such as Access or Word objects installed with VB6 even if those apps don't exist on the installed computer? Also, if I create an app that uses an Access or Word object, and I distribute it, does that object get distributed with my application? Will it work ev
OLE Word Objects -
I am just stating with OLE, and I’m weak on objects. First a bit of background, then questions.
My first two OLE attempts have had some success.
My first attempt was to control MS Word 95 with my VB6 on WMe. It turns out that I can’t use MS Word 95 this way as it does no
How do VB for Word, Excel and/or VBScript work together -
I need help understanding how object models interact with each other. If I open Excel using VBScript or VB in Word, how do I know what objects and methods are available to me?
Should I be able to use any and all of the Excel methods in VBScript/Word once I create an Excel object (un
hiding groups of objects -
How can I hide all objects on a form that meet a certain criteria? Let's say that I have these objects: lblTest1 lblLive1 btnTest2 btnLive2. How can I hide all of the objects that has a name with the word test in it?
I think that I want the VB code for this:
For all objects wit
How to copy a chart from Excell to Word -
Ok this may be a simple question but I’m struggling like crazy to figure it out.
I want to use two ole objects in vb (one excel chart and one word document). The goal is to make a chart (from data calculated in vb) and then copy the chart as a windows metafile into word. Then mak
[2008] Resizing multiple objects in a form -
Hello,
I'm trying to set up a system to resize multiple objects on a form (40+) when the form resizes.
I've got it working but it's rather slow, when I resize the form it stutters a lot from looping through the objects to resize them.
Is there a better way to do this that would
a couple of questions(word 2003 VB editor) -
i was wondering what version of VB word 2003 has... if this is in the wrong forum i apologize,
also, i'm trying to make a VB window change from a single button to a full form using code, so i'd like to ask how to make some basic objects using code(i don't need to know every type of
[02/03] QueryInterface for interface Word._Application failed -
Hi
Im trying to open word document in C# using the following code :
oWord = new Word.Application();
Word.Document gDoc1 = oWord.Application.Documents.Open(ref tfn,ref oMissing,ref oFalse,ref oMissing,ref oMissing,ref oMissing,ref oMissing,
ref oMissing,ref oMissing,ref oMissi
Creating word documents in asp.net *RESOLVED* -
I'm trying to create and write a word document within asp.net using:
Code:
Word.ApplicationClass WordApp = new Word.ApplicationClass();
Does anyone know of a reference for all the objects I can use in word?
DJ
MS Word In Visual Basic Inquiry -
Do you need to have MS Office installed on your computer to create MS Word objects in your VB code??
If not, what references, and/or components are needed to do this?
Any sample code will help.
Thanks
Using word to create a report!!!! -
Hello people:
im using vb 6.0 to create a word document...
here we have the word library 9.0 and i know that the computers that we are going to install the sw have diff'nt versions of word (95, 97 etc).
my question is: if the pdw installs the word 9.0 object library, is it go
getting objects collection ( remoting ) -
i use COA to activate an object using remoting. multiple clients create multiple istnances on the server. what i want to do is know how many clients are activated at a time, how can i figure that out?
Email an MS Word doc from vb app -
Hi all,
Here goes: my application must create several ms word documents and then mail them to different people. The creation and the mail part is easy. I use a mail dll for the mailing and the normal
set oWord = CreateObject("word.application")
etc for the word st
Word Automation Help -
Can someone guide me on how to add text to a word document using "Bookmarks" from a word template "file.dot". I started with the visual C++ code below but I get lost trying to follow the Microsoft Word Objects schema, I just don't know how to tie it in like the VB e
One or many business object dlls -
I have read some posts that having one dll as opposed to many is better for performance, but the difference is negligible. However, I have a project that will have around 100 objects.
My question is - should I put all the objects in one dll (seperate logically with namespaces) or h
Office Objects in C# -
Was looking to find out exactly where I could find the right reference for Word or Excel objects in C#...NET objects, not COM objects.
Thanks (:
delete instance of object -
Hi
I have written a small code to write data from clipboard to word document file. I have created an object of type word.basic.
when it finshed the task the object is set to nothing to free the memory used by the objects.
The code is working fine But the instance of the object i.e w
DataEnvironment use -
This question is for that who has some experience in VB6.
I have to develop a VB6 database application. My question is:
Is it better to use DataEnvironment objects - connection and command- that I can build by UI (user interface), or to create connections and commands by code?
I thi
How to create say textboxes in a word processor app -
Hi,
I need to be able to create ellipses and lines that are selectable and movable (and reselectable/movable) by the user, much like those available in most word processors' drawing objects and textboxes.
I've been trying to work out how this would be done but with only minor suc
Controlling Word doc -
Guys,
I have some screens in my app that will be used to create a Contract document, using a word template.
In the template, I need to insert the company name and address into multiple places, these are held in variables in my app. I also need to insert "blocks" of text
VB to Word-Labels -
Hi,
I am attempting to take certain information from an access database to Microsoft Words labels.
I know about creating word objects etc. I don't know how to create pages of labels via VB.
I will extract the information from the database and manipulate it. I then want to put
can you create objects/forms in code -
1. would it be possible to create objects and or forms in code?
2. if 1 = yes then is it possible to create a form with objects like another one, with a few changed things?
i think thats all
Forms in Word VB environment -
Hi guys! I am glad to join you and this is my first question in this forum. I want ToolTips feature for the ActiveX objects, such as lables, on the MS Word document, but MS take them off from the properties. So I have to build my own Tooltips using a UserForm. But MS also take the hWnd
microsoft word automation through vb 6 -
I want to create a document in microsoft word 2003 using vb 6.
The document will consist mainly of information from an access database.
The general form of the report will be a table that shows Trip names, trip dates, passenger names for each trip and so on.
Does anyone have
Create a Word Document -
Is there a tutorial online somewhere that can walk you through building a Word document with VB6.0? I want to know all the methods and objects and what-not to make a professional document. I've searched everywhere over the past few days and I have been unable to piece everything togeth
VB to create a word doc with mail merge -
Is it possible? And if you know of any tutorials or examples, pls tell me. Cos I need to use VB to generate a table of mail merge objects in a word document dynamically.
I'd appreciate any help
Help with data views -
I have a data table that I am trying to create a view for. I want to allow the user to input either a word or multiple words and perform a wildcard search with those words in multiple columns. I have created a function that creates the where string. For example, user seaches for "
[2008] Printing multiple Word documents -
There is a way for printing multiple Word document at once via VB.NET code ?
I did not find any solution for this kind of job!
Thanks in advice!
split page in richtextbox control -
A.
How can I display multiple page documents in 'page-wise' manner as in MS Word, showing separate pages? By inserting some extra-characters, making impression of line? But that needs to be removed while print preview/print everytime. Is there any easy way?
B.
Is a MS Word doc with
Creating a Word document -
I need to create a word document without just populating a bookmarked existing template file - I need to create one from scratch. 2 ways I was thinking. One is to open Word, and somehow send strings and formating into to a word object. If you can give me a link on how to do this, great
Open objects displayed as icons -
Hi,
I have a Word document with Word/Excel objects in it that are displayed as icons.
I would like to display those objects in the document and not as icons.
Is there anyway I can do it with code?
thanks
Using Winsock or MAPI in COM -
I know how to create an email client using VB, but I need to create a COM object using Winsock or the MAPISession in order to create these features in ASP on the Web.
I can't seem to create the Winsock object or MAPI objects while in a class module. I haven't seen the proper reference
Late Binding of .NET objects -
I wrote an application in VB6 that used CreateObject quite a lot to create instances of COM objects at run time.
Is their an equivalent in VB.NET so that I can do the same with .NET objects. I notice that CreateObject is still supported in VB.NET but that only works with COM objects