MrTarantula / WIPrint

Print work items from nearly anywhere you can see them in TFS and VSTS.
https://marketplace.visualstudio.com/items?itemName=mrtarantula.wiprint
MIT License
11 stars 12 forks source link

embedded images don't print? #18

Open jasper-cs opened 6 years ago

jasper-cs commented 6 years ago

some work items have images included in the Description tab, but these don't appear when I try to print them. is there a way to enable this?

MrTarantula commented 6 years ago

I haven't found a reliable way to get images. It works sometimes. It may have something to do with the size of the images. The raw description is pushed to a hidden HTML page and immediately printed, so it's possible that larger images don't have enough time to load. When I have time I'll try to see what I can do with the timing without slowing down printing of large sets of work items.

MrTarantula commented 6 years ago

v2.2.3 adds a small delay so the browser can try to fetch images before printing. Please test and let me know if it works for you.

jasper-cs commented 6 years ago

hello -- sadly, doesn't quite work.  see attached pdf -- you'll see a bit of an image on page 2 On 1/26/2018 10:31 AM, MrTarantula wrote:

v2.2.3 adds a small delay so the browser can try to fetch images before printing. Please test and let me know if it works for you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MrTarantula/WIPrint/issues/18#issuecomment-360816343, or mute the thread https://github.com/notifications/unsubscribe-auth/Acx-Wct-Dw9LoE_12yqIhOyy4nof-HL0ks5tOe_tgaJpZM4RoPR2.

MrTarantula commented 6 years ago

I could make the delay longer. I don't like that solution though. I'd rather find a way to wait until any and all content is loaded, and no longer. I should have a fix soon.

jasper-cs commented 6 years ago

thanks for your efforts - will be super helpful

MrTarantula commented 5 years ago

Is this still an issue? I've made a few updates since then.

cloudy81 commented 5 years ago

I have tested with version 2.3.0. Images in several fields as well in comments will be printed as PDF.

If you select "Attached file" on the work item type nothing will be printed/exported.

MrTarantula commented 5 years ago

Yes, attached files are a whole other issue. Not sure I can get attached images in a timely manner to print. We'll see.

cloudy81 commented 5 years ago

So for me that issue looks as resolved. Because embedded images are printed