FIX: Upper Format Truncates Right/Center-Alligned Report FieldID: Q134308 3.00 3.00b WINDOWS kbtool kbprint kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSWhen using a report designed with a field, variable, or expression formatted as uppercase and justified (alligned) either to the right or center of the area on the page for that field, you may encounter a probem. Upon clicking the OK button to open and close the report expression dialog box repeatedly (usually done after previewing or printing the report), you may see that the field, variable, or expression has been reduced to a single character; all the characters to the right of the first character have been truncated. The field, variable, or expression now appears as a single uppercase character alligned to the right or to the center. The format picture code character string of "@!J" (without the quotes) is transposed and enlarged to the string "@J<space>!" Each time the Report Expression dialog box is reentered the number of spaces between the justification code (J for right, I for center) and the uppercase code (!) is increased by one if the OK button is used to close the dialog box.
WORKAROUNDOne way to restore the field to the desired format is to delete the format picture codes from the Format text box in the Report Expression dialog box. Then click the three-dot button at the right to move to the Format dialog. Restore the formats by selecting the To Upper Case check box, and the appropriate justification check box. Another way to work around the problem is to delete the space(s) that appear in the format picture codes string between the justification character (a J or an I) and the exclamation point that indicates uppercase. This is the string that appears in the Format text box in the Report Expression dialog box.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem1. Set the default directory to Samples\Data. 2. Open the Testdata database by using the MODIFY DATABASE TESTDATA 3. Open the Customer table by using the USE CUSTOMER command.
4. Create a new report consisting of the Company, Contact, and Title 5. Double-click the Contact field to open the Report Expression dialog box.
6. Click the three-dot button located to the right of the Format text box. 7. Select the To Upper Case check box under Editing Options. 8. Clear the Left justify check box, and select the Right justify check 9. Click OK to return to the Report Expression dialog box. Note the format
10. On the View menu, click Preview. Note that the Contact field appears is
11. On the Preview toolbar, click the open door icon to return to the
12. Double-click the Contact field to open the Report Expression dialog
13. Click OK to return to the Report Designer, and on the View menu, click
14. Return to the Report Designer. Double-click the Contact field. Note the
15. Click OK. Then double-click the Contact field again, and note that the
KBCategory: kbtool kbprint kbbuglist kbfixlist
KBSubcategory: FxprintGeneral fixlist5.00 VFoxWin buglist3.00 buglist3.00b
Additional reference words: 3.00 3.00b picture function
|
Last Reviewed: October 23, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |