Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: How to add page color to word document using SAP OLE

$
0
0

You might have seen some sample codes of OLE. The way they get the object, and then get/set attribute.

The VB macro code for setting background to 25% darker gray would be:

ActiveDocument.Background.Fill.ForeColor.ObjectThemeColor = wdThemeColorBackground1

ActiveDocument.Background.Fill.ForeColor.TintAndShade = -0.25

ActiveDocument.Background.Fill.Visible = msoTrue

ActiveDocument.Background.Fill.Solid

You have to execute these commands using OLE.


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>