BookmarkSubscribeRSS Feed
sam1231
Obsidian | Level 7

HI 

 

i AM USING DDE TO INVOKE VBA CODE FROM WORD FOR WATERMARK MY RTF OUTPUT!
But somehow watermarking "Confidential" hide behind table.

 

How to fix this?

3 REPLIES 3
Reeza
Super User

Remove the code that adds it or remove it from the template, if you’re using one. 

If you need help finding the code to delete, please post your code. 

 

PS. All caps is the equivalent of yelling on the internet. 


@sam1231 wrote:

HI 

 

i AM USING DDE TO INVOKE VBA CODE FROM WORD FOR WATERMARK MY RTF OUTPUT!
But somehow watermarking "Confidential" hide behind table.

 

How to fix this?


 

sam1231
Obsidian | Level 7
ODS PATH work.templat(update) sasuser.templat(read)
               sashelp.tmplmst(read);
Proc Template; 
      Define Style Styles.STNDR /*/ Store = SASuser.Templat*/;
             Parent = Styles.printer ;
             replace body from document /
                 leftmargin=1.10in
                 rightmargin=0.6in
                 topmargin=0.75in
                 bottommargin=0.5in
                 ;
              style table from table/
                frame=void
				WATERMARK=ON
      protectspecialchars=off
                rules=groups
                cellpadding=2pt cellspacing=1.25pt borderwidth=0.5pt; 
              Style SystemTitle From TitlesAndFooters /
                 Font = ( "Times New Roman",12Pt,Bold )
                 Just = Center ;

              Style SystemFooter From TitlesAndFooters /
                 Font = ( "Times New Roman",10Pt,Bold )
                 Just = Center ;
    replace HeadersAndFooters from Cell /

                font = fonts('docFont')
                foreground=colors('datafg')
                background=colors('databg')
                protectspecialchars=off;
    
    End ;
run;
Reeza
Super User
WATERMARK = ON seems like where you'd start?

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1032 views
  • 0 likes
  • 2 in conversation