How to print article from Service Portal.

niveditakumari
Mega Sage

Hi,

 

I should be able to navigate as an end user to an article and be able to click on something that allows me to print the article (without printing the entire webpage). 

When we open article on Service Portal and click on ctrl + P to print article then it is printing other things like Impersonate, Logout, Tours, I don't need this things to print. I need only KB article to be printed. 

I have done ctrl + P and it is printing many things. Please see attached screenshot. 

 

niveditakumari_0-1687197044540.png

 

Can anyone please help me how to print article instead other things. 

 

Regards, 

Nivedita

 

 

 

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hello @niveditakumari ,

 

Please refer this share project "Add wordcount and print functionality on knowledge article (Portal)".

URL: https://developer.servicenow.com/connect.do#!/share/contents/2421893_add_wordcount_and_print_functio...

 

Go to this URL and download the update set and commit it. This is for two things: to count words in the knowledge base and also have print functionality. So if you don't want word count, then remove or comment that part of the code of the widget.

 

OR pls refer:

https://www.servicenow.com/community/developer-forum/printing-knowledge-article/m-p/1484570

https://www.servicenow.com/community/now-platform-forum/printing-kb-article-from-service-portal/m-p/...

https://www.servicenow.com/community/developer-forum/how-to-add-printer-friendly-option-in-kb-articl...

 

 

@niveditakumariPlease mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank you!

View solution in original post

13 REPLIES 13

Community Alums
Not applicable

Hello @niveditakumari ,

 

Please refer this share project "Add wordcount and print functionality on knowledge article (Portal)".

URL: https://developer.servicenow.com/connect.do#!/share/contents/2421893_add_wordcount_and_print_functio...

 

Go to this URL and download the update set and commit it. This is for two things: to count words in the knowledge base and also have print functionality. So if you don't want word count, then remove or comment that part of the code of the widget.

 

OR pls refer:

https://www.servicenow.com/community/developer-forum/printing-knowledge-article/m-p/1484570

https://www.servicenow.com/community/now-platform-forum/printing-kb-article-from-service-portal/m-p/...

https://www.servicenow.com/community/developer-forum/how-to-add-printer-friendly-option-in-kb-articl...

 

 

@niveditakumariPlease mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank you!

Hi @Community Alums, 

 

I have tried it but it is not working. 

Can you please tell step by step what needs to be done to achieve that. 

 

Regards, 

Nivedita

 

 

Hi @Community Alums, 

 

You have shared project that need to be download and commit. I have downloaded that and it is in xml format. I'm not able to commit that. 

Can you please tell step by step how to achieve this requirement. 

 

Regards, 

Nivedita

 

 

Community Alums
Not applicable

Hello @niveditakumari ,

 

U need to go that URL: 

Khushbookabra_0-1687452849079.png

 

  1. Then click on the download button; it retrieves the update set, then commits that update set.
  2. Then in widgets, you will be able to see this widget: "Knowledge Article Content (word/print)".
  3. OOTB Knowledge Articles use Knowledge Article Content.
  4. You need to add this widget "Knowledge Article Content (word/print)" in the service portal instead of the "Knowledge Article Content" widget.

BTW in release notes every thing is mentioned.

Khushbookabra_1-1687453221406.png

 

Thank you!