How to print without url

Posted by: eyhenij on 2 September 2021, 3:05 am EST

    • Post Options:
    • Link

    Posted 2 September 2021, 3:05 am EST

    Hi! How can I print my report without header with date and footer with url? As it is in your example: https://www.grapecity.com/activereportsjs/demos/Reports/TelephoneBill2/purejs

  • Posted 2 September 2021, 6:47 pm EST

    hello,

    I am not sure that I fully understand your question. If you don’t want the page header/footer to be displayed, you can just remove these sections

  • Posted 2 September 2021, 6:52 pm EST - Updated 2 October 2022, 11:09 pm EST

    I mean the header, that is displayed when the method “print” is called.

    I tried to show my case in this screenshot:

  • Posted 2 September 2021, 7:21 pm EST

    thanks for sending the clarification

    these settings come from the browser, not from ActiveReportsJS

    you could refer to the browser documentation for instructions on how to remove the header and footer

  • Posted 2 September 2021, 7:45 pm EST

    I know I may be annoying)

    but in your example (https://www.grapecity.com/activereportsjs/demos/Reports/TelephoneBill2/purejs) you can remove the header and footer without accessing my browser properties. How did you achieve it?

  • Posted 2 September 2021, 11:54 pm EST

    we didn’t do anything in particular to modify headers/footers. it has nothing to do with ActiveReportsJS

  • Posted 6 September 2021, 5:05 am EST

    if you did not “modify headers/footers” how does your sample (see here https://www.grapecity.com/activereportsjs/demos/Reports/TelephoneBill2/purejs) avoid printing the header/footer?

    We want our print preview to work the way you’ve implemented in your sample.

    Please help. Thanks!

  • Posted 6 September 2021, 7:40 pm EST

    There is no particular code that prevents browser-imposed header/footer because it is out of the scope of ActiveReportsJS. I am not sure how we can help.

  • Posted 7 September 2021, 5:06 am EST

    All right, let me clarify.

    Please click Print in your demo (see https://www.grapecity.com/activereportsjs/demos/Reports/TelephoneBill2/purejs)

    You’ll see that the header and footer do not appear on print preview.

    How is the print feature in your demo implemented?

    Thanks

  • Posted 7 September 2021, 7:46 pm EST

    The “printing” feature is built-in into the viewer component, the demo website uses this component the ordinary way without any extra code. I am pretty sure about that because I implemented the demo website. Here is a quick demo that shows how to disable the header and footer in the print window of Chrome.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels