문제

I'm looking for a way to have a label and bound text inside an XtraReport control. Something where I can put a label in the top left corner and bind text from the data source aligned to the middle right. Does such a control exist? Some other workaround?

도움이 되었습니까?

해결책

Since you have

bind text from the data source

I would suggest you first bind the datasource to the band. Once the datasource is bound to the reportband, then just drag and drop an XRLabel (XtraLabel is incorrect) unto the report document. On that label control, use it's smart tag to bind it to a table > field from the datasource.

additional reading

다른 팁

You can use string.Format as label.text. So you can set variable Text in the label.

label.text = string.Format("Hello, {0}", myVariable);

So give the variable to the Constructor of the Report and use it to create dynamic lable.

I hope that i understand your question.

regards

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top