Dashed or dotted line patterns are converted to a solid line pattern when you embed a Visio 2003 object in another document (837294)
The information in this article applies to:
- Microsoft Office Visio Professional 2003
- Microsoft Office Visio Standard 2003
For a Microsoft Visio 2002 version of this article, see 816630.
Important This article contains information about modifying the registry.
Before you modify the registry, make sure to back it up and make sure that you
understand how to restore the registry if a problem occurs. For information
about how to back up, restore, and edit the registry, click the following
article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows Registry SYMPTOMSIn Microsoft Office Visio 2003, when your drawing contains
objects that use a dashed or a dotted line pattern, and you copy and paste the
objects to a Microsoft Office document or to a document in another program that
supports linked and embedded objects, you may find that some of the embedded
Visio objects appear with a solid line pattern. Objects that use a line pattern
with thick, short lines retain their formatting, whereas objects that use a
line pattern with thinner, longer lines do not retain their formatting. The
line pattern of these embedded objects are converted to solid
lines.
You may also experience these symptoms when you export your
drawings to Windows Metafile (.wmf) format.
CAUSEMicrosoft Visio renders very long lines and very thin lines
as solid lines to reduce the size of the Enhanced Metafile (EMF) of the
embedded object. By doing so, Visio reduces the increase in file size that
occurs when you embed objects in documents in other programs.
Note
that the Visio drawing is not changed. Only the EMF image of the drawing that
appears in the document is changed when the drawing is not activated. When you
double-click the embedded Visio drawing, the line pattern of objects is
displayed as expected by using either a dotted or dashed line pattern. When you
print the document that contains the embedded Visio object, the EMF image is
printed by using solid lines.RESOLUTION To resolve this problem, create the
MetafileDashLineAsSolid
registry entry in the following registry key and set the
MetafileDashLineAsSolid
registry entry to the value that you want: HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Visio\Application To do so, follow these steps. Warning If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using Registry
Editor incorrectly. Use Registry Editor at your own risk. - Add the MetafileDashLineAsSolid registry entry
to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Visio\Application To do so, follow these steps:
- Click Start, and then click
Run.
- In the Open box, type
regedit, and then click OK.
- Locate, and then click the following registry
key:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Visio\Application - On the Edit menu, point to
New, and then click DWORD Value.
- Type MetafileDashLineAsSolid,
and then press ENTER.
- Set the MetafileDashLineAsSolid registry entry
that you created in step 1 to the value that you want.
You can set
the MetafileDashLineAsSolid registry entry
to any one of the following values, depending on your situation:
- 0: Do not substitute solid lines for
dashed or dotted lines.
- 1: Only substitute solid lines for
dashed or dotted lines in extreme situations. For example, substitute solid
lines for dashed or dotted lines when the increase in file size that may result
is 100 times the size of the original file.
- 2: Substitute solid lines for dashed
or dotted lines when reasonable. This is the default value.
- 3: Always substitute solid lines for
dashed or dotted lines.
To do so, follow these steps:
- In the right pane, double-click
MetafileDashLineAsSolid.
- In the Value data box, type the value
that you want, and then click OK.
- Quit Registry Editor.
WORKAROUNDTo work around this problem, increase the thickness of the
line pattern of the embedded Visio object after you copy and paste the Visio
drawing to the other program. To do so, follow these steps:
- Open the document that contains the embedded Visio
drawing.
- Double-click the embedded Visio drawing in the
document.
- Right-click the Visio object whose line pattern you want to
modify, point to Format, and then click
Line.
- In the Weight box, click the line
thickness setting that you want, and then click OK.
- Click an empty area of the document outside the embedded
Visio drawing.
- Save the document.
Modification Type: | Major | Last Reviewed: | 11/17/2005 |
---|
Keywords: | kbprb KB837294 kbAudITPRO |
---|
|