EasyUI Forum
October 10, 2024, 10:03:33 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Print using printJS plugin  (Read 7686 times)
jega
Full Member
***
Posts: 196


View Profile
« on: July 16, 2019, 03:21:57 PM »

Trying to find a way to print an easyui dialog, or any part inside an div/form.

Found printJS plugin, but it doesn't print the easyui css

Any hit to get it to work

https://printjs.crabbly.com/

Jesper
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 19, 2019, 06:47:07 PM »

Please pass the 'css' parameter to the printJS function.
Code:
printJS({
printable: 'dlg',
type: 'html',
css: '../../themes/default/easyui.css'
})
Logged
jega
Full Member
***
Posts: 196


View Profile
« Reply #2 on: July 22, 2019, 12:06:43 AM »

Hi stworthy

Thanks for help. Now it's better, BUT missing checkbox marks, tagbox tags and linkbutton group color.

Solution for most of it was now to choose Additional settings" "Option" on print dialog, and use background graphic.

Only one thing dosen't work. Have a button group with this css

<style type="text/css">
   .l-btn-selected{
      background: #4cae4c;
      color: #fff;
   }
}
</style>

It makes active button green. On print it still is grey. Have tried different things with targetStyles, but with no luck

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!