Forum Post: RE: Generating and Printing Invoice/Document from Portal Page

Status
Not open for further replies.
O

Orchid Corpin

Guest
Hi ithrees, To add print button on portal pages, go to the edit page and add a script component, edit the script component and paste the code below: style media="print" #printBtn { display: none; } /style button id="printBtn" class="btn btn-info" onclick="window.print();" i class="icon-print" /i Print /button We need the CSS media = "print" so that the print button will be hidden during the actual printing and print preview. Note: Since Pollbase uses bootstrap you can choose some of the button styles here, just change the class attribute value: http://getbootstrap.com/2.3.2/base-css.html#buttons Hope this may help. Regards, Orchid

Continue reading...
 
Status
Not open for further replies.
Top