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

Line Shape is not displaying in exported report

6 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Suresh
Top achievements
Rank 1
Suresh asked on 24 Sep 2012, 06:41 PM
Hi,
Earlier we are using Telerik 2008 and we programatically creating lines and adding to Page header. recently we upgraded to 2012 Q2 Telerik reporting and form that time onwards we are not seeing the lines. Please see the code below

if

 

 

(i == 0 || i == 2 || i == 4 || i == 6 || i == 8 || i == 10)

 

{

labelwidthX = 0.1;

labelvalwidthY = 1.4 + 0.4 * (i / 2);

 

 

Shape shape = new Shape();

 

shape.Location =

 

new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(labelvalwidthY + 0.25, Telerik.Reporting.Drawing.UnitType.Inch));

 

shape.ShapeType =

 

new Telerik.Reporting.Drawing.Shapes.LineShape(Telerik.Reporting.Drawing.Shapes.LineDirection.EW);

 

shape.Size =

 

new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(8, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.099921144545078278, Telerik.Reporting.Drawing.UnitType.Inch));

 

shape.Style.BorderStyle.Default = Telerik.Reporting.Drawing.

 

BorderType.None;

 

shape.Style.Font.Bold =

 

true;

 

 

 

this.pageHeader.Items.Add(shape);

 

}
and we did small code change in export to PDF because of new dlls throwing error. here is the code

 

 

 

void ExportToPDF(ReportBook reportToExport)

 

{

InstanceReportSource instanceReportSource =

 

new InstanceReportSource();

 

instanceReportSource.ReportDocument = reportToExport;

ReportProcessor reportProcessor =

 

new ReportProcessor();

 

 

 

//RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null);

 

 

 

 

RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);

 

 

 

string fileName = result.DocumentName + ".pdf";

 

Response.Clear();

Response.ContentType = result.MimeType;

Response.Cache.SetCacheability(HttpCacheability.Private);

Response.Expires = -1;

Response.Buffer =

 

true;

 

Response.AddHeader(

 

"Content-Disposition",

 

 

 

string.Format("inline;FileName=\"{1}\"",

 

 

 

"attachment",

 

fileName));

Response.BinaryWrite(result.DocumentBytes);

Response.End();

}

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 Sep 2012, 01:18 PM
Hello Suresh,

We have already answered your support ticket and here is our answer:

There have been numerous changes, new features and bug fixes since versions from 2008. One of those fixes is that the PageHeader section would not grow to accommodate its children. So if you add a report item to the page header section at a location which is past the height of the page header section, then you would not see it i.e. the contents that are at location that is not visible are trimmed.

Greetings,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

0
Nino
Top achievements
Rank 1
answered on 04 Apr 2013, 11:47 AM
I am using Q1 2013 and it seems the lines shape still not showing in exported pdf report....
0
Elian
Telerik team
answered on 05 Apr 2013, 07:23 AM
Hi Nino,

This is a known issue with the PDF Rendering in Q1 2013 and it is already fixed. You can download the latest internal build from your profile and upgrade your Reporting installation. Afterwards the rendering should work as expected. 

Greetings,
Elian
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Ruby
Top achievements
Rank 1
answered on 09 Apr 2013, 01:56 PM
Hi,

I am using the latest version of telerik reporting 7.0.13.220 and still not able to export shape "square" in my pdf output. I could see that shape using windows report viewer but it is not working when I am using a console application to export report to  the pdf.
Please guide me on this. Thanks
0
Elian
Telerik team
answered on 09 Apr 2013, 03:04 PM
Hi Ruby,

7.0.13.220 is the official release Q1 2013 and the latest internal build is version 7.0.13.401 please download it and upgrade your installation. 
 

Regards,
Elian
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Ruby
Top achievements
Rank 1
answered on 09 Apr 2013, 08:04 PM
Thanks. That worked.
Tags
General Discussions
Asked by
Suresh
Top achievements
Rank 1
Answers by
Steve
Telerik team
Nino
Top achievements
Rank 1
Elian
Telerik team
Ruby
Top achievements
Rank 1
Share this question
or