Missing drawing in output file

3 posts, 1 answers
  1. Petr
    Petr avatar
    33 posts
    Member since:
    Jul 2015

    Posted 06 Aug 2015 Link to this post


     I created programmatically the report which includes horizontal lines. I defined them this way:

    var shape = new Shape();
    shape.Location = new PointU(new Unit(positionX - MARGIN_COLUMN_HORIZONTAL, UnitType.Pixel),​
                                new Unit(DEFAULT_HEIGTH, UnitType.Pixel));
    shape.Size = new SizeU(new Unit(widthColumn, UnitType.Pixel),
                           new Unit(1, UnitType.Pixel));
    shape.ShapeType = new LineShape(LineDirection.EW);
    shape.Visible = true;
    // add to report


    It works fine and I see all lines in my ReportViewer. But lines are missing if I print or export it. They are visible only on XPS or HTML export. Maybe some other property must be set or is it known bug?


    Thank you for answer,


  2. Answer
    Nasko avatar
    1085 posts

    Posted 10 Aug 2015 Link to this post

    Hello Petr,

    We tested the line shape with the following configuration and it prints/exports correctly:
    // detail
    this.detail.Height = Telerik.Reporting.Drawing.Unit.Inch(2);
    this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
    this.detail.Name = "detail";
    // shape1
    this.shape1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(1.1), Telerik.Reporting.Drawing.Unit.Inch(0.4));
    this.shape1.Name = "shape1";
    this.shape1.ShapeType = new Telerik.Reporting.Drawing.Shapes.LineShape(Telerik.Reporting.Drawing.Shapes.LineDirection.EW);
    this.shape1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1), Telerik.Reporting.Drawing.Unit.Inch(1));

    The issue might be caused by a specific configuration in your particular report definition. In order to investigate further we will need to review a runnable sample report exhibiting the issue.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Petr
    Petr avatar
    33 posts
    Member since:
    Jul 2015

    Posted 10 Aug 2015 in reply to Nasko Link to this post

    I noticed that you make it with bigger size. I did some tests and I find that minimum size is 4 pixels.

    This modification works perfectly and line is shown in all kind of export.

    shape.Size = new SizeU(new Unit(widthColumn, UnitType.Pixel),
                 new Unit(4, UnitType.Pixel));

    It is probably some minimal size for correct rendering.

    Thank you for your help


Back to Top