我正在创建Windows应用程序。在我的项目中,我正在为打印员工卡创建报告。 打印机同时打印正面和背面。所以后页应该是相反的。然后只打印正确。但我不能在文字轮换中这样做。打印反向没有选项。请帮我解决这个问题 我正在使用以下css类进行视图反转
Hi, I am Creating windows application. In my project I am creating report for print Employee card. The printer is print front and back page at same time. So the back page should be reverse. Then only it print correctly. But I can't do it in text rotation. There are no options for print reverse direction. please help me for solve this problem I am using following css class for view reverse
.reverse { -webkit-transform:rotateY(180deg); -moz-transform:rotateY(180deg); -o-transform:rotateY(180deg); -ms-transform:rotateY(180deg); unicode-bidi:bidi-override; direction:rtl; }但问题是我使用的是Windows应用程序。如何将css类调用到我的报告以及如何包含该文件。 任何人都可以解决这个问题。
But the thing is I m using windows application. How to call the css class to my report and how to include that file. Anyone can solve this problem.
推荐答案这种情况下最好的解决方案是使用 PrintDocument [ ^ ]组件/类。 它提供了许多使用自定义格式打印文本和图形的方法。 如何:对齐绘制的文本 [ ^ ] 如何:创建垂直文本 [ ^ ] 如何:使用GDI绘制文本 [ ^ ] 如何使用e.graphics旋转书写字符串? [ ^ ] PrintDocument.PrintPage Event [ ^ ] 图像旋转打印工具固定空白页 [ ^ ] 我希望它会有所帮助;) The best solutioin in this case is to use PrintDocument[^] component/class. It provides many ways to print text and graphic using custom formatting. How to: Align Drawn Text[^] How to: Create Vertical Text[^] How to: Draw Text with GDI[^] How to rotate a written string with e.graphics ?[^] PrintDocument.PrintPage Event[^] Image Rotate on printing tool pinting blank page[^] I hope it will be helpful ;)
此问题已解决。我正在使用这个css类。 Hi, This problem is solved. I am using this css class. .reverse { -webkit-transform:rotateY(-180deg); -moz-transform:rotateY(-180deg); -o-transform:rotateY(-180deg); -ms-transform:rotateY(-180deg); unicode-bidi:bidi-override; direction:rtl; }
这适用于网络应用程序。
That is working in web application.
更多推荐
水晶报告旋转文字
发布评论