Question


Accenture
IN
Last activity: 23 Apr 2019 2:03 EDT
How to remove the url from Print preview
I have a print button. when i click it , it gives me a section and along with it print preview. In that print preview, i am getting the browser url. Can anyone help me in removing that url?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Pegasystems Inc.
US
Hi,
Can you please share your configuration. Ideally when we Print or do CTRL+P then the URL does not show up.
Please let me know in case I misunderstood anything.
Regards,
Rachit
-
Sai Harsha


Luxoft
IN
Hello Rachit,
We are just launching a harness on a button click. That harness has a section with fields. Is this what you are asking?


J.P. Morgan Services India PVT Ltd
IN
what is the kind of url you are seeing, please share,
also what is the action performe in the button for print,
I guess a simple window.print() command should help you to get the print, please check it once.
Thanks


Luxoft
IN
Hi Neha,
We are just launching a harness which has a section within it containing the list of fields to be displayed in read only mode. We have a js file in the harness which already has the window.print() command. For you to help me understand where i am going wrong, i am attaching few files: Please help!!!
1. JS file which has window.print() command
2. screenshot of the url
3. harness call on the button
-
Stanislav Davidov


Pegasystems Inc.
US
I think the URL is getting printed in footer part.You can try adding CSS to remove the footer while it prints the page. Can you please check the below article.
https://www.smashingmagazine.com/2011/11/how-to-set-up-a-print-style-sheet/
Hope this helps.


Luxoft
IN
Hello Rachit,
Tried your approach but couldn't fix the issue. I added a CSS into my harness and in that harness just gave as :
footer{
display:none;
}
But it is still coming up with the footer. Any further help please!!!


Accenture
IN
Hi Laksha,
i have similar above stated requirement .can you please help me out if you know the solution.kindly do need ful.


Pegasystems Inc.
IN


CIBC
CA
Hi,
I am facing the same issue. Did you get solution for this issue?
Please share me if you have any solution for this.
Thanks,
Deeba


Accenture
IN
Hello Deeba,
I didnt get any response neither my issue is resolved. My client accepted this as PEGA limitation and closed the issue.
Thanks,