RDLC报告中的纸张尺寸和方向问题。 [英] Paper Size and Orientation Problem in RDLC Report.
问题描述
Hello Every One,
我在vs2010的窗口项目中工作。在这我打印条形码贴纸。
但现在我的问题是贴纸的大小。我正在使用Citizen CLP-621
printer.Problem是我想以纵向打印贴纸但是当我在rdlc报告中降低高度时它转换为横向。
所以如果有人知道如何设置自定义宽度(3.5英寸)和高度(1.2英寸),但纸张方向应该是纵向。
如果有人有想法那么请帮帮我!!!!
Hello Every One,
I am working in window project in vs2010. In this i am printing Barcode Stickers.
But Now my problem is that size of stickers. I am using "Citizen CLP-621"
printer.Problem is that i want to print stickers in portrait but when i decrease the height in rdlc report it convert into landscape orientation.
so if anyone have any idea that how can i set the custom width (3.5inch) and height(1.2inch) but paper orientation should be portrait.
if any one have idea then please help me!!!!
推荐答案
设置纸张尺寸报告的自定义宽度(3.5英寸)和高度(1.2英寸):
使用xml或ex eitor打开报告文件并添加两行:
page
===添加下两行:===
pagewidth3.5in/ pagewidth
pageheight1.2in / pageheight
leftmargin0.1in / leftmargin
rightmargin0.1in / rightmargin
topmargin0.1in / topmargin
bottommargin0.1in / bottommargin>
/ page
将与<>
To set paper size custom width (3.5inch) and height(1.2inch)for Report:
open report file using xml or ex eitor and add two lines:
"page"
"=== add the next two lines: ==="
"pagewidth"3.5in"/pagewidth"
"pageheight"1.2in/pageheight"
"leftmargin"0.1in/leftmargin"
"rightmargin"0.1in/rightmargin"
"topmargin"0.1in/topmargin"
"bottommargin"0.1in/bottommargin>"
"/page"
replace " with <>
替换为
这篇关于RDLC报告中的纸张尺寸和方向问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!