XRLabel.ng in Runtime

iam using DevExpress v.10.2 and want to show XRLabel on XtraReport with an angle. If iam uses the constructor, it works fine. But now I want to do this at runtime, because Label.Text is dynamic. My problem is that the report does not show my label. I read an article on DevExpress support that describes that it just works with the PDF format. But in my case, I just see a little gray line. I tried to follow just to populate my XRLabel for the first:

XRLabel druckinfo = new XRLabel();
druckinfo.Text = string.Format("SB{0} {1} EMAIL {2}", _Sachbearbeiter.Sbnr, _Kennung,
                _Sachbearbeiter.Email1); //The values are filled and working.
                druckinfo.Visible = true;
                druckinfo.AutoWidth = false;
                druckinfo.Angle = 90;
                druckinfo.Font = new Font("Arial", 6f);
                band.Controls.Add(druckinfo); //This is the DetailBand where i add other Labels too and its working fine.
                druckinfo.HeightF = 500f; //Setting Height very high, because the text turns and i thought this is working. But seems to have no effect :(
                druckinfo.LocationF = new PointF(400f, 400f);
                druckinfo.Borders = DevExpress.XtraPrinting.BorderSide.All;

If I delete the following line:

druckinfo.Angle = 90;

The label becomes beautiful, but without a corner.

Here is a screenshot that shows the shortcut with the top settings in PDF format:

enter image description here These are the settings for my report:

 _Report.PaperKind = PaperKind.A4;
 _Report.ReportUnit = ReportUnit.HundredthsOfAnInch;
 _Report.ShowPrintMarginsWarning = false;
 _Report.Margins = new Margins(0, 0, 0, 0);

All other properties are by default. The existing ranges are as follows:

PageHeaderBand DetailBand PageFooterBand

+4
1

, :) , , . , , .

XRLabel druckinfo = new XRLabel();
druckinfo.Angle = 90F;
druckinfo.Padding = new PaddingInfo(2, 2, 0, 0, 96F);
druckinfo.SizeF = new SizeF(29.16666F, 500F);
druckinfo.Font = new Font("Arial",8f);
druckinfo.Text = text;
_Band.Controls.Add(druckinfo);
druckinfo.LocationF = new PointF(0F, 500F);
+3

All Articles