Questions about the paper orientation of the Office printer

Source: Internet
Author: User

have been dealing with the printer recently, because the structure of the report used in the project is very complex, the requirements are also more perverted, so the simple third-party library of the search basically do not have my problem. There's no way to write the print function from scratch. Because the project is based on the WPF framework, the first option is to use the print support in WPF, and then solve the various technical problems, and at the end of the test encountered a problem that seemed to be more disgusting at the time: printer paper Direction control problems.

There are generally two types of printers that support paper orientation: Portrait and landscape. Because I am a small white printer, then tangled. How does this work in the end? The most shameless idea is: The printer is really cool, according to the direction of the paper you want to print the content of the direct rotation of an angle to print. Later think about not too realistic, after all, layout is their own platoon, printer how to know how you typesetting, so this method directly rejected.

If the above ideas cannot be established, then you have to analyze, first of all, the direction of the paper will affect the direction of the printer font. After all, the direction of the printer spit paper is not changed (normal office printer). Then write your own program to do the next test:

Test one: Whether the layout of the report needs to take into account the problem of font orientation

My test is in the typesetting time to determine the direction of the paper, if it is horizontal, manual printing layout of the overall rotation of 90 degrees, by the way, modified the width and height of the paper, printed out the result is: in the paper rotated 90 degrees, plus their own rotation of 90 degrees, directly to the turn of the half circle. Well, it appears that the orientation of the paper affects the direction the printer controls printing.

Then I removed the rotation of the part, but simply modified the width and height of the print range, the result is exactly the same as expected.

Conclusion: Setting the orientation of printer paper will affect the direction of printer output, need to adjust the width and height of the print range according to the actual situation, and then re-typesetting, to the printer to print OK. Speaking of which, I suddenly feel like a very simple problem, t_t.

Questions about the paper orientation of the Office printer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.