Solved

vb with word 2000

Posted on 2002-07-03
3
125 Views
Last Modified: 2010-05-02
Hey.

I'm exporting data from vb to word 2000 and the transfering time is very slow ,
I need to raise the transfering time.
(for example i try to export data from a matrix 50/15 that i defined in vb to a table in word ).
I'm using A word 9 object reference.

I have 256 Ram and cpu p3 500mhz so it cant be a performence problem.

Thank you for your help.
0
Comment
Question by:uzico
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 25 total points
ID: 7126511
I guess that you are using Word Automation, so you should try this:

dim objWord as Word.Application 'i assume this...
<... your initialiation code here ...>
'stop word updating the screen all the time
objWord.Screenupdating= false
<... perform your data transfer ...>
objWord.Screenupdateing = true
<... your cleanup code...>

note that you should ensure that the Screenupdating=true is executed even if errors occur in the code, otherwise the user that wants to use word will run into small troubles :-)

Obviously, you won't be able to follow the process, thus you might implement a switch in the application that starts the process saying "Fast Processing" set by default, which runs the above. unset you only skip that property (probably for debugging purposes)

Cheers
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7971394
Hi uzico,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept angelIII's comment(s) as an answer.

uzico, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8019035
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question