Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bold Font in tables
Message
From
25/10/2000 11:15:28
Jacci Adams
Lindsay-Adams Consulting
Louisville, Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00433707
Message ID:
00434092
Views:
17
Hi Barbara & Tamar,

Thanks for your suggestions. However, my code worked all along. I was displaying my Word document in "Normal View" instead of "Page Layout View". Normal view wasn't displaying the headings as bold. I had visible set to true so I could view the document as it was generated and wasn't seeing the headings as bold. When your suggestions weren't working I got suspicious. Boy, do I feel like an idiot.

BTW, how do you get your code to stay formatted when posting here? I'm not that familiar with HTML tags.


>>** Add a table with two rows & nine columns
>>oTable = This.oWord.ActiveDocument.Tables.Add( This.oRange,2, 9 )
>>
>>WITH oTable
>> .Rows[1].Shading.Texture = 100 && shading on row1
>>* .Rows[1].Range.Bold = .T. && this doesn't have any affect

It definitely has an affect. So I can do it here all at once. Or I can do it as below for each cell

>>
>> ** Put heading text in and set alignment
>> .Cell[1,1].Range.ParagraphFormat.Alignment = wdAlignParagraphLeft
>> .Cell[1,1].VerticalAlignment = wdAlignVerticalCenter
>> .Cell[1,1].Range.Font.Bold = .T.
>> .Cell[1,1].Range.InsertAfter("Name")

>>ENDWITH

Thanks,
Jacci
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform