20th-print:
Today, I will introduce Windows 8Program. When I was a software developer, the only time I paid attention to printing was related to a Web page. I only needed to call window. Print () to do the following:
An optional Print dialog box is displayed to the user.
Print preview Creation
Pagination based on the actual page length
Although I have been using XAML for many years, I have never really touched on printing. I was surprised that printing a simple page requires a lotCodeBut I also know why there is so much code. We have to create these codes for a good reason.
The layout of our page cannot be used to print the size and shape of the paper.
Therefore, we need to provide a printable version of our page. In today's example, I use a simple page with some ricktextblock controls. Of course, your own pages can be more complex as needed.
In addition, write this articleArticleIt makes me really feel very difficult to use XAML/C # To print in Windows 8. Not only do you need to process all the steps for generating a print preview (required), but you must also manually process the page. This is very convenient in HTML5/Js. It really makes me feel uncomfortable.
PDF:
20th-print
For more information, visit the following link:
Windows 8 development day 31
Some