Image is not appearing on print preview page

srath
Tera Guru

Hi

I have a requirement from my client like there should be a print option available for each 'Business Service Catalog'.

I tried to achieve this by adding a print button to catalog UI page with following code.

<button id="print_button" onclick="window.print()" title="Print the current Business Service">

<img src="images/printer.gifx">Print</img>

</button>

 

On clicking the button printing functionality is working fine but the images (i.e icons of catalog) are not appearing on print preview page.

Please suggest me on this either from your direct experience or just your own opinion.


Thanks,

Sitarani

8 REPLIES 8

srath
Tera Guru

Any help??


Anurag Tripathi
Mega Patron
Mega Patron

This should help you



UI Page CSS formatting


-Anurag

Hi Anurag,


Thanks for your reply.. But am bit lost with the answer for my question in this link (the link you provided).


i.e : "Add a class of user_image to the img element."


Would you please explain me what exactly this mean. Where I need to add user_image tag and how it will work.



Thanks.


greg_faber
ServiceNow Employee
ServiceNow Employee

Just to clear things up, the answer to your question is to add the class like this:


<img class="user_image" src="images/printer.gifx">Print</img>



This resolves the issue.