Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Label rotation and rounded Borders
posted

Hi,

is their a chance to rotate a label in my report by designer of VS2010 (through a property of it or little points at the object it self, like changing its size)?

At this time I only found the way by creating a report at runtime in code behind (see example and reportPreview image) and adding a label at x,y to it with an angle :(

Same thing with a rounded border...

Thx

Example:

Infragistics.Documents.Reports.Report.Text.IText stationeryText = 
stationery.AddText(200, 400, -45); 
stationeryText.Style = new Style(new Font("Verdana", 72), Brushes.Silver); 
stationeryText.AddContent("DRAFT");

and:


Infragistics.Documents.Reports.Report.Text.IText decorationText = 
decoration.AddText(350, 650, -15); 
decorationText.Style = new Style(new Font("Verdana", 40), Brushes.Red); 
decorationText.Width = new RelativeWidth(35); 
decorationText.Borders = new Borders(new Pen(Colors.Red, 3, DashStyle.Solid), 10); 
decorationText.AddContent("REJECTED");

Results in:



  • 34510
    Offline posted

    Hi prinzj,

    Are you asking if the rotating text feature is available in the Infragistics Reporting product?  Currently this is not possible.  You would need to add an image to your report of the rotated text.

    I'm a little confused as to the code you provided.  It's not possible to modify a report at runtime in code using the Infragistics Reporting product.  Reports can only be created and modified using the provided Report designer.  What platform and product are you asking about?