怎么处置这个错误
我用下面这个语句,怎么也改不过来datareport.reportwidth属性,在设计报表的时候在属性框也不能修改这个属性,为什么!!!!!!!!!!
datareport1.reportwidth=printer.width-datareport1.leftmargin*2-40
我用下面这个语句,怎么也改不过来datareport.reportwidth属性,在设计报表的时候在属性框也不能修改这个属性,为什么!!!!!!!!!!
datareport1.reportwidth=printer.width-datareport1.leftmargin*2-40
1。如楼上所说。
2。直接用鼠标拖动设计report时的边界。
3。修改LeftMargin 和Rightmargin.
DataReport.ReportWidth可以在代码中设置,但也跟你报表中的控件位置有关.
比如你的报表中有一个控件的宽度是100,Left=5000,即你的报表宽度最小等于5100,即使你设置得更小也没有用.
TOPMARGIN=50
RIGHTMARGIN=50
BOTTOMMARGIN=50
试试看,有问题我们在一块学习.
datareport.reportwidth + datareport.leftmargin + datareport.rightmargin<=打印机纸张的宽度
datareport的单位是英寸
不过DataReport大差了,建议用第三方报表设计器做报表,如水晶报表