Page 1 of 1

Hide URL Link during printing

Posted: Wed Jan 11, 2023 12:30 am
by aspsteve

When we print a report, the Project Name the Project Title comes up in the header and the url link comes up in the footer.

Is there a a way to suppress both or either of this information from showing up in the printed output?

Thank you,

Steve


Re: Hide URL Link during printing

Posted: Wed Jan 11, 2023 12:34 am
by darkdragon

With the help of some custom css:

@media print {
         #elementID {display: none;}
      }

Re: Hide URL Link during printing

Posted: Tue Feb 07, 2023 6:53 am
by aspsteve

Apologies as I am not very familiar with how the Styles are to be updated in ASP.Net Maker.

I pasted the code below into the User section of the Styles tab and I receive the error below

@media print {
         #elementID {display: none;}

Error

Finished npm install.
Compiling projetcname_style.scss...
Error: Failed to compile .scss file.
/* Error: Expected identifier.
 *      ,
 * 2063 | CODE: SELECT ALL
 *      |      ^
 *      '
 *   C:\Users\ADMINI~1\AppData\Local\Temp\2\zin11F.scss 2063:6  root stylesheet */

body::before {
  font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",
      "Droid Sans Mono", monospace, monospace;
  white-space: pre;
  display: block;
  padding: 1em;
  margin-bottom: 1em;
  border-bottom: 2px solid black;
  content: "Error: Expected identifier.\a      \2577 \a 2063 \2502  CODE: SELECT ALL\d\a      \2502       ^\a      \2575 \a   C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\zin11F.scss 2063:6  root stylesheet";
}
Compiling tempus-dominus.scss...
Compressing tempus-dominus.min.css...
Compiling ewpdf.scss...
Compressing ewpdf.min.css...
Compiling adminlte.css...
Compressing adminlte.min.css...
Generation completed with error(s), please scroll up (if necessary) to check error(s) highlighted in red.

Re: Hide URL Link during printing

Posted: Tue Feb 07, 2023 7:39 am
by MichaelG

Do not copy "CODE: SELECT ALL"