Question

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?

Était-ce utile?

La solution

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

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top