Chủ đề này đã được lưu trữ. Vui lòng hỏi một câu hỏi mới nếu bạn cần giúp đỡ.
How can can make Firefox to detect the orientation of my report while printing.
hi, I am using telerik reporting for reporting purposes on in my angular project. I have created two reports, one of them is in portrait mode and other is in landscape mode. Now , when I press print button , and print preview opens up, it is defaulted to portrait mode even if the report that I am printing is designed in landscape mode.
It can be seen in the following pictures. https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2021-03-01-07-48-32-b4df57.png https://user-media-prod-cdn.itsre-sumo.mozilla.net/uploads/images/2021-03-01-07-50-12-54a6d9.png
This might create confusion for the users. This is not desirable.
Is there a way to make it so that the print preview opens in the orientation in which my report is designed.
Note: It is working perfectly in google chrome.
Tất cả các câu trả lời (3)
Dear aalyimran, I refer you to the link https://support.mozilla.org/en-US/kb/how-print-web-pages-firefox.
see if the problem goes away.
I have already visited the article that you recommended but this does not solve my problem. My problem is that I want print preview to open in the orientation that my report is designed in. This is working perfectly in Google chrome but on Firefox, print preview opens in the portrait mode by default or if I set it to landscape it begins to open in the landscape next time. Hope i have clarified my scenario this time.
Is the report a web page or a PDF?
For web pages, Chrome allows specifying the page size and orientation in an @page style rule (https://developer.mozilla.org/docs/Web/CSS/@page/size) but Firefox does not support that yet, so the user will need to handle the situation themselves.
For PDFs, I don't think the built-in viewer can auto-detect portrait/landscape.
So I guess I do not have good news, sorry.