hcl-bot
1
Hi,
I am exporting to a table in MS Word from a Notes View in client.
I want to change the text color in MS Word table while exporting the view column vales.
My sample code for the formatting part is written below,
WordObj.selection.font.size = 10
WordObj.selection.font.bold = True
WordObj.selection.font.Name = “Georgia”.
How can I set the font color?
Any idea is highly appreciated. Thanks in anticipation.
Regards,
Abhishek SenGupta.
hcl-bot
2
Subject: How to change text color while exporting to word?
wdTableFormatApplyColor ?
hcl-bot
3
Subject: RE: How to change text color while exporting to word?
Thanks for your response.
But, it’s showing a error message “Instance member wdTableFormatApplyColor does not exist”.
Any more?
hcl-bot
4
Subject: RE: How to change text color while exporting to word?
Selection.Font.Color = wdColorRed
where wdColorRed - is a number of color
I suppose u should use integer value instead of wdColorRed
hcl-bot
5
Subject: RE: How to change text color while exporting to word?
Hi Dmytro,
Thanks for your response.
wdColorRed has not worked, but incidentally I used 500 as the number value and I got red color.
Can you tell me how to get the list of number values of other colors?
And in addition can you tell me the code to change background color of a table cell in MS Word while exporting Notes View column values?
Thank you very much.
Regards,
Abhishek SenGupta.