문제

I have a webform that my users need to print, but I'm running into issues when they have different print zooms or other printing options.

I do have a print stylesheet, which works great on another webform, but this form has problems like elements vanishing off-page, unwanted whitespace, etc.

Is there any way (using CSS, asp.net or JavaScript) to standardize the way this form looks when printed on different computers/browsers?

NOTE: I'm fairly certain I could dynamically create a PDF using code or some reporting service, but then I would need to maintain the display in 2 places. Is there a solution where I only need to maintain the design in 1 place?

도움이 되었습니까?

해결책

you could use something like wkhtmltopdf which will give you a consistent print for every user, and it takes your page as it currently stands.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top