I did exact the same work, but what is showing in the window preview is the screen style, what is shown in the print simulation mode in chrome is the print css style, what is printed is the print mode?! When I save as pdf is export the screen style!!
This is really weird, don't know what to do :(
Here is my css
printed-dashboard {
/* hide the printing component from @media screen */
display: none !important;
}
@media print {
/* invert the display (show/hide) properties of the main */
/* application component and the printing component */
printed-dashboard {
display: block !important;
}
dashboard,
m-header {
display: none !important;
}
}
FYI, I am using metronic template