0

When I try to use Window.print() function that works good as I want in Google Chrome but same thing not working good in Mozilla Firefox. Here are some screenshots of the problem which is persisting. What's the problem here? and also how to remove default header and footer from print of Firefox because its works good in chrome

Html View of Report on Web: Html View of Report on Web

View when do Print in Mozilla Firefox View when do Print in Mozilla Firefox

How to Remove default header and footer from firefox print

Herry
  • 77
  • 1
  • 12
  • I am not sure how this ties in with c#? – David Pilkington Feb 15 '17 at 05:19
  • it has nothing to do with C#, as window.print() is pure javascript function.. also, it seems issue with your alignment and margins, window.pint() is working fine as you are getting reports on both browser. – Abhinav Feb 15 '17 at 05:22
  • I am Using this for Print `` @MohammadDehghan – Herry Feb 15 '17 at 06:39
  • And Just On Ready Load Window.Print Function $(document).ready(function () { window.print(); }); Its Work Good In Chrome but not in Firefox – Herry Feb 15 '17 at 06:40
  • In order to help you, please provide some test case(fiddle or codepen, etc). – Romick Feb 19 '17 at 07:15

3 Answers3

0

Browsers render differently by default. So this link might help in custom print CSS styling.

If still some problem persists, post that part of code.

Community
  • 1
  • 1
pavanjoshi
  • 240
  • 2
  • 10
0

Try adding the following CSS to see if that fixes it.

* {
    overflow: visible !important;
}

You may need to experiment with overflow-x instead of overflow and applying to only the print media query.

Scovetta
  • 3,112
  • 1
  • 14
  • 13
0

try using some plugins to export your report into proper format.. ex. PDFMake.js

Abhinav
  • 1,202
  • 1
  • 8
  • 12