WD2000: Paragraph.Border.LineStyle Is Incorrect After You Apply Shadow (212609)
The information in this article applies to:
This article was previously published under Q212609 SYMPTOMS
When you use the LineStyle property to return the value of a border that is applied to a paragraph, an incorrect value may be returned for the bottom and right sides of the border if you also applied the Shadow property.
For example, when you apply both a border of wdLineStyleEmboss3D and shadowing to a paragraph and then use the LineStyle property to return the type of borders applied for top, bottom, left, and right sides of the border for that paragraph, the returned values for bottom and right borders are wdLineStyleEngrave3D (or 22). NOTE: The expected returned values for all sides of the bordered paragraph would be wdLineStyleEmboss3D (or 21).
This problem is known to occur with the following LineStyle properties:
LineStyle Property Expected Return Value
------------------------------------------------------
wdLineStyleEmboss3D 21
wdLineStyleEngrave3D 22
wdLineStyleInset 24
wdLineStyleOutset 23
wdLineStyleThickThinLargeGap 16
wdLineStyleThickThinMedGap 13
wdLineStyleThickThinSmallGap 10
wdLineStyleThinThickLargeGap 15
wdLineStyleThinThickMedGap 12
wdLineStyleThinThickSmallGap 9
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To work around this problem, do not use the Shadow property to format the border object. Or, use one of the following LineStyle properties instead:
LineStyle Property
--------------------------------
wdLineStyleDashDot
wdLineStyleDashDotDot
wdLineStyleDashDotStroked
wdLineStyleDashLargeGap
wdLineStyleDashSmallGap
wdLineStyleDot
wdLineStyleDouble
wdLineStyleDoubleWavy
wdLineStyleNone
wdLineStyleSingle
wdLineStyleSingleWavy
wdLineStyleThinThickThinLargeGap
wdLineStyleThinThickThinMedGap
wdLineStyleThinThickThinSmallGap
wdLineStyleTriple
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor additional information about getting help with Visual Basic for Applications, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
212623 WD2000: Macro Programming Resources
226118 OFF2000: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbbug kbdtacode kbmacroexample kbnofix KB212609 |
---|
|