Hi Tom, I tried the CSS style and it doesn't work. The hyperlink is still there. Here is my CSS style: .body, .systemtitle, .header, .data {
font-family: Courier New;
}
.body {
color: black;
background-color: white;
border: solid black 0.1px;
margin-bottom: 0.77in;
margin-left: 1.34in;
margin-right: 1.34in;
margin-top: 0.77in;
}
.data
{
color: black;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
border-width: 0.1em 0 0.1pt 0;
}
.table
{
background-color: #FFFFFF;
border-collapse: collapse;
border-bottom-width: 0.1pt;
border-collapse: separate;
border-color: none;
border-left-width: 0px;
border-right-width: 0px;
border-spacing: 0pt;
border-style: solid;
border-top-width: 0.1pt;
color: black;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
text-align: center;
margin-bottom: 0.77in;
margin-left: 1.34in;
margin-right: 1.34in;
margin-top: 0.77in;
}
.header
{
border-collapse: collapse;
border-bottom-width: 0.1pt;
border-collapse: separate;
border-color: none;
border-left-width: 0px;
border-right-width: 0px;
border-spacing: 0pt;
border-style: solid;
border-top-width: 0.1pt;
background-color: #FFFFFF;
color: #000000;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
}
.systemtitle
{
color: #000000;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
background-color: none;
}
.systemfooter
{
background-color: #FFFFFF;
color: #000000;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
}
.contents
{
background-color: #FFFFFF;
color: blue;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
list-style-type: decimal;
margin-left: 0px;
margin-right: 0px;
}
.contents
{
list-style-type: square;
pointer-events: none;
}
.contenttitle
{
color: green;
font-family: 'Courier New';
font-size: 12pt;
font-style: normal;
font-weight: bold;
margin-bottom: 4em;
margin-left: 1em;
margin-right: 1em;
margin-top: 4em;
text-align: center;
width: 100%;
background-color:aqua;
pointer-events: none;
}
.contentproclabel
{
color: blue;
font-family: 'Courier New';
font-size: 8pt;
font-style: normal;
font-weight: normal;
list-style-type: decimal;
margin-left: 0in;
margin-right: 0in;
}
.contentitem
{
color: red;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
list-style-type: none;
margin-left: 15%;
margin-right: 15%;
}
.contentfolder
{
color: purple;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
list-style-type: none;
margin-left: 15%;
margin-right: 15%;
}
.usertext
{
background-color: #FFFFFF;
color: yellow;
font-family: 'Courier New';
font-size: 9pt;
font-style: normal;
font-weight: normal;
pointer-events: none;
}
Here is my SAS code to generate the output: filename ncss "mypath./testt.css";
proc template;
define style styles.mycssstyle;
import ncss;
end;
define style styles.mycssstyleprinter;
parent=styles.mycssstyle;
import ncss print;
class contenttitle/
pretext = "TAT";
end;
run;
ods pdf file="&outdir./test.pdf" style=styles.mycssstyleprinter contents = yes ;
ods proclabel = "TEST1";
title "test1";
proc report data=sashelp.class(obs=10);
run;
ods proclabel = "TEST2";
title "test2";
proc report data=sashelp.class(obs=20);
run;
ods _all_ close;
ods pdf file="&outdir./test.pdf" style=styles.mycssstyleprinter contents = yes ;
ods proclabel = "TEST1";
title "test1";
proc report data=sashelp.class(obs=10);
run;
ods proclabel = "TEST2";
title "test2";
proc report data=sashelp.class(obs=20);
run;
ods _all_ close; I have tried the code you posted. It doesn't work either.
... View more