xunit-viewer icon indicating copy to clipboard operation
xunit-viewer copied to clipboard

Cannot print from browser

Open dastbayoo opened this issue 3 years ago • 2 comments
trafficstars

Starting with version 7.1.8, I can no longer use the browser to print the report into a PDF (which is an important step in my workflow). Also true for version 7.1.9.

Up to version 7.1.7 I was able to generate an HTML report, open the browser, print the page to PDF hand have the whole content in the PDF as a result.

Starting with version 7.1.8, only the first few pages are rendered, the remaining pages are blank. This can also be reproduced with the demo page: https://lukejpreston.github.io/xunit-viewer/

dastbayoo avatar Jul 26 '22 15:07 dastbayoo

I didn't know anyone was using this to generate PDFs! I can add a printable toggle which would

  1. remove anything not needed for printing, e.g. search box
  2. render everything, including not on the screen

lukejpreston avatar Aug 15 '22 07:08 lukejpreston

Once you put things in the open, you'll be surprised in what ways people will use it 😁 Anyway, thanks for all your work!

dastbayoo avatar Aug 17 '22 09:08 dastbayoo

@dastbayoo this is a ridiculous turnaround. I finally have a solution for you in v9!

Depending on your browser, you should be able to print and save to PDF it will display all the test currently filtered before printing. If your browser doesn't support that there is a button in the menu on the right FAST MODE and clicking it will change it to PRINT MODE which will render everything filtered and you can print that page.

image

I am closing this now. If you have any issues with this please get in touch 😄

lukejpreston avatar Jun 22 '23 15:06 lukejpreston