Help and Support
 

powered byLive Search

Decreased performance when you add or move shapes that are contained in a Visio 2007 or a Visio 2003 drawing that is hosted in the Visio 2003 ActiveX Control

Article ID:839079
Last Review:April 17, 2007
Revision:6.3
On This Page

SYMPTOMS

In Microsoft Office Visio 2007 and Microsoft Office Visio 2003, if you work with a drawing that is hosted in the Microsoft Office Visio 2003 ActiveX Control, you may experience one or more of the following symptoms:
If the drawing that is hosted in the Visio 2003 ActiveX Control contains shapes that use gradient patterns or other custom properties, it takes a longer time to perform certain operations than if you modify the drawing directly in the Visio 2003 program. For example, if the drawing contains many shapes from stencils that are part of the Network solution, performance may decrease when you add new shapes to the drawing or move existing shapes in the drawing.
When you open a drawing by using the Visio 2003 ActiveX Control, you may experience decreased performance when you perform actions on shapes that require a redraw operation of the shape. For example, you may experience slower performance when you do any one of the following:
Copy or move a shape
Add a shape to the drawing page
Zoom in or zoom out on a shape

Back to the top

CAUSE

This problem occurs if both of the following conditions are true:
The drawing contains many shapes.
The drawing contains one or more shapes that use one or more of the following features:
Gradient patterns or other complex fill patterns
Transparency
The Visio 2003 ActiveX Control renders a new metafile every time a change is made to the drawing. This process takes a longer time when there are lots of shapes and when the shapes use gradient fill patterns, other complex fill patterns, or transparency.

Back to the top

RESOLUTION

This problem was first fixed in a hotfix that is now contained in a service pack. If you installed the latest Visio 2003 service pack, you do not have to install the hotfix.

Back to the top

Service pack information

This problem was first corrected in Visio 2003 Service Pack 2. To resolve this problem, obtain the latest service pack for Visio 2003. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
873460 (http://support.microsoft.com/kb/873460/) How to obtain the latest service pack for Visio 2003

Back to the top

Hotfix information

This problem is fixed in the Visio 2003 post-Service Pack 1 hotfix package that is dated October 21, 2004.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
884592 (http://support.microsoft.com/kb/884592/) Description of the Visio 2003 post-Service Pack 1 hotfix package: October 21, 2004

After you install this hotfix, add a line in your custom code that sets the Application.OnDataChangeDelay property value. The Application.OnDataChangeDelay property value is required to enable the update and must be set to -2. Note that adding this property value to your code without installing the hotfix will have no effect on the performance of your program.

Back to the top

WORKAROUND

To work around this problem, use one of the following methods, depending on your situation:
Remove gradient patterns, complex fill patterns, or transparency from shapes contained in drawings that are hosted by the Visio 2003 ActiveX Control.
Create new shapes that do not use gradient patterns, complex fill patterns, or transparency.

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Back to the top

MORE INFORMATION

For more information about the Visio 2003 ActiveX Control, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/aa168480(office.11).aspx (http://msdn2.microsoft.com/en-us/library/aa168480(office.11).aspx)
For more information about how to automate Visio 2007, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/bb258902.aspx (http://msdn2.microsoft.com/en-us/library/bb258902.aspx)
For more information about Visio, visit the following Microsoft Web site:
http://www.microsoft.com/products/info/product.aspx?view=22&pcid=60259a1e-9faf-43be-9995-a68c31a07339 (http://www.microsoft.com/products/info/product.aspx?view=22&pcid=60259a1e-9faf-43be-9995-a68c31a07339)

Back to the top


APPLIES TO
Microsoft Office Visio Professional 2007
Microsoft Office Visio Standard 2007
Microsoft Office Visio Professional 2003
Microsoft Office Visio Standard 2003

Back to the top

Keywords: 
kbqfe kbhotfixserver kbbug KB839079

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by E-mail, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.