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

Problem in Exported report

3 Answers 66 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
deshdeepak
Top achievements
Rank 1
deshdeepak asked on 02 Feb 2010, 08:03 AM

Hi Team,

I'm drawing some charts in my reports in vertical order.
Everything is fine in Report viewer but when I'm
exporting the report in PDF format, some charts are
coming partly in one page and partly in next page.
Please suggest what I can do.

And one more thing in report viewer everything is coming in
one page than why do we need Page navigation button?

Thanks
Desh

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 02 Feb 2010, 05:48 PM
Hi deshdeepak,

We have not been able to reproduce the problematic behavior in our local tests, so we would need more information on how exactly you add those charts to the report. Usually the fastest way to help you is if you provide us with a runnable sample that shows the issue you've encountered at hand.
As for the difference in rendering to HTML in web ReportViewer - this is due to the fact that HTML is not a page oriented format. Please review the Design Considerations for HTML Rendering help topic for more info.

Regards,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
deshdeepak
Top achievements
Rank 1
answered on 03 Feb 2010, 12:26 PM

Hi team,

To get a clear picture for u. Please go through below lines-

I had created a sample web application and added one telerik report file.
It's code is given below.
And in my Default.aspx page I had added one Report viewer.
On page load I had wriiten

//This part is in Default.aspx.cs file

protected

 

void Page_Load(object sender, EventArgs e)

 

{

 

Report1 rep = new Report1();

 

ReportViewer1.Report = rep;

 

}








//This part is in Report1.cs file
using System.ComponentModel;  
using System.Drawing;  
using System.Windows.Forms;  
using Telerik.Reporting;  
using Telerik.Reporting.Drawing;  
 
/// <summary>  
/// Summary description for Report1.  
/// </summary>  
public class Report1 : Report  
{  
    private Telerik.Reporting.PageHeaderSection pageHeader;  
    private Telerik.Reporting.DetailSection detail;  
    private Chart chart1;  
    private Chart chart2;  
    private Chart chart3;  
    private Chart chart4;  
    private Telerik.Reporting.PageFooterSection pageFooter;  
 
    public Report1()  
    {  
        /// <summary>  
        /// Required for telerik Reporting designer support  
        /// </summary>  
        InitializeComponent();  
 
        //  
        // TODO: Add any constructor code after InitializeComponent call  
        //  
    }
    #region Component Designer generated code  
    /// <summary>  
    /// Required method for telerik Reporting designer support - do not modify  
    /// the contents of this method with the code editor.  
    /// </summary>  
    private void InitializeComponent()  
    {  
        this.pageHeader = new Telerik.Reporting.PageHeaderSection();  
        this.detail = new Telerik.Reporting.DetailSection();  
        this.pageFooter = new Telerik.Reporting.PageFooterSection();  
        this.chart1 = new Telerik.Reporting.Chart();  
        this.chart2 = new Telerik.Reporting.Chart();  
        this.chart3 = new Telerik.Reporting.Chart();  
        this.chart4 = new Telerik.Reporting.Chart();  
        ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();  
        //   
        // pageHeader  
        //   
        this.pageHeader.Height = new Telerik.Reporting.Drawing.Unit(0.58958339691162109, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.pageHeader.Name = "pageHeader";  
        //   
        // detail  
        //   
        this.detail.Height = new Telerik.Reporting.Drawing.Unit(13.40000057220459, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {  
            this.chart1,  
            this.chart2,  
            this.chart3,  
            this.chart4});  
        this.detail.Name = "detail";  
        //   
        // pageFooter  
        //   
        this.pageFooter.Height = new Telerik.Reporting.Drawing.Unit(0.98749923706054688, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.pageFooter.Name = "pageFooter";  
        //   
        // chart1  
        //   
        this.chart1.BitmapResolution = 96F;  
        this.chart1.Dock = System.Windows.Forms.DockStyle.Top;  
        this.chart1.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;  
        this.chart1.IntelligentLabelsEnabled = true;  
        this.chart1.Name = "chart1";  
        this.chart1.PlotArea.EmptySeriesMessage.Appearance.Visible = true;  
        this.chart1.PlotArea.EmptySeriesMessage.Visible = true;  
        this.chart1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(3.2000000476837158, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        //   
        // chart2  
        //   
        this.chart2.BitmapResolution = 96F;  
        this.chart2.Dock = System.Windows.Forms.DockStyle.Top;  
        this.chart2.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;  
        this.chart2.IntelligentLabelsEnabled = true;  
        this.chart2.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(3.2000000476837158, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        this.chart2.Name = "chart2";  
        this.chart2.PlotArea.EmptySeriesMessage.Appearance.Visible = true;  
        this.chart2.PlotArea.EmptySeriesMessage.Visible = true;  
        this.chart2.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(3.2000000476837158, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        //   
        // chart3  
        //   
        this.chart3.BitmapResolution = 96F;  
        this.chart3.Dock = System.Windows.Forms.DockStyle.Top;  
        this.chart3.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;  
        this.chart3.IntelligentLabelsEnabled = true;  
        this.chart3.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(6.4000000953674316, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        this.chart3.Name = "chart3";  
        this.chart3.PlotArea.EmptySeriesMessage.Appearance.Visible = true;  
        this.chart3.PlotArea.EmptySeriesMessage.Visible = true;  
        this.chart3.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(3.1000003814697266, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        //   
        // chart4  
        //   
        this.chart4.BitmapResolution = 96F;  
        this.chart4.Dock = System.Windows.Forms.DockStyle.Top;  
        this.chart4.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;  
        this.chart4.IntelligentLabelsEnabled = true;  
        this.chart4.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(9.5000009536743164, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        this.chart4.Name = "chart4";  
        this.chart4.PlotArea.EmptySeriesMessage.Appearance.Visible = true;  
        this.chart4.PlotArea.EmptySeriesMessage.Visible = true;  
        this.chart4.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))), new Telerik.Reporting.Drawing.Unit(3.2000000476837158, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch))));  
        //   
        // Report1  
        //   
        this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {  
            this.pageHeader,  
            this.detail,  
            this.pageFooter});  
        this.PageSettings.Landscape = false;  
        this.PageSettings.Margins.Bottom = new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.PageSettings.Margins.Left = new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.PageSettings.Margins.Right = new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.PageSettings.Margins.Top = new Telerik.Reporting.Drawing.Unit(1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Inch)));  
        this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;  
        this.Style.BackgroundColor = System.Drawing.Color.White;  
        ((System.ComponentModel.ISupportInitialize)(this)).EndInit();  
 
    }
    #endregion  
0
Steve
Telerik team
answered on 03 Feb 2010, 04:59 PM
Hi deshdeepak,

We have not been able to reproduce this with the code you have sent either - find attached a report using the code you've sent. We would appreciate it if you zip a runnable project that shows the issue and provide us with a link to it or open a support ticket for Telerik Reporting and attach it there.

Kind regards,
Steve
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
General Discussions
Asked by
deshdeepak
Top achievements
Rank 1
Answers by
Steve
Telerik team
deshdeepak
Top achievements
Rank 1
Share this question
or