Calcpad icon indicating copy to clipboard operation
Calcpad copied to clipboard

#352 issue

Open strsthapa opened this issue 1 year ago • 2 comments

Image #352 It prints when exported as html and saved as pdf from them or itself save as pdf option, but not on print preview.

strsthapa avatar Feb 20 '25 16:02 strsthapa

Hi! Thank you for your feedback.

Actually this should work when "Print Background Colors and Images" is selected and it worked before. L also noticed that for some unknown reason, it does not work anymore. It will take some time to solve, because this is an internal feature of the WebBrowser control we are using. I tried to replace it with WebView2, but there is no print preview at all when using the system dialog. When using the in-browser dialog, it displays inside the right panel over the output, which is quite uncomfortable.

What I do myself for now is the same as you do - save the output as a web page and print it from Chrome. I get very good results in this way and also for save as Pdf file.

Proektsoftbg avatar Feb 20 '25 20:02 Proektsoftbg

Thoughts on using Selenium to build this into CalcPad itself to replace wkhtmltopdf? I have seen a general consensus online that wkhtmltopdf is a bit dated and has issues. Based on chat it should be doable: https://chatgpt.com/share/67c9e161-fcc4-8000-9142-899678db9469

imartincei avatar Mar 06 '25 17:03 imartincei