This is a migrated thread and some comments may be shown as answers.

Missing drawing in output file

2 Answers 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Petr
Top achievements
Rank 1
Iron
Petr asked on 06 Aug 2015, 09:15 AM

Hi,

 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
headerBoxes.Add(shape);

 

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,

Petr

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 10 Aug 2015, 03:02 PM
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.shape1});
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.

Regards,
Nasko
Telerik
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
0
Petr
Top achievements
Rank 1
Iron
answered on 10 Aug 2015, 03:51 PM

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

 

Tags
General Discussions
Asked by
Petr
Top achievements
Rank 1
Iron
Answers by
Nasko
Telerik team
Petr
Top achievements
Rank 1
Iron
Share this question
or