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

Export with chart

4 Answers 177 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rain
Top achievements
Rank 1
Rain asked on 23 Mar 2009, 08:35 AM
Hi all,
    I have a problem with reporting, when I export to any(like excel, PDF,CSV,etc.), it will be 2 pages, and if there is a chart, it will be print 2 times of this chart. I don't konw why? If you have any ideas, Please let me know.
    Additionally, I have advanced a problem a.m. Please help with it. It also about chart, when export to excel, the chart does not display. I have no idea about this.

Thanks ,

BestRegards,
Rain 

4 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 23 Mar 2009, 01:56 PM
Hi Rain,

Thank you for contacting Telerik Support.

In order to help you we will need some more information about the problem. Please send us the relevant code or a sample application which can reproduce the issue so that we can investigate it. At this moment we are not aware of such problems so it is highly possible that the problem is the specifics of your code.

Thank you in advance.

Regards,
Chavdar
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Rain
Top achievements
Rank 1
answered on 24 Mar 2009, 02:02 AM
Hi Chavdar,
    Thanks for your reply.

     In aspx code, I use code as follows: 
<telerik:ReportViewer ID="rptConversionEffectiveness" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" BorderStyle="Solid" BorderWidth="1px" SizeToReportContent="True" 
            Width="100%" Height="700px" Visible="True" Skin="Office2007">  
        </telerik:ReportViewer> 
    And there is no code in aspx.cs code. In report engine, I quote a stored procedure and I get a cross the chart need

DataSource, the code as follows:

private void chart1_NeedDataSource(object sender, EventArgs e)  
        {  
            if (this.ProCasesBaselinePdDataTextBox.Value != "textBox14")  
            {  
                this.chart1.Series[0].Items[0].YValue = Convert.ToDouble(this.ProCasesBaselinePdDataTextBox.Value.ToString());  
            }  
            if (this.ProCasesIncrementPdDataTextBox.Value != "textBox12")  
            {  
                this.chart1.Series[0].Items[1].YValue = Convert.ToDouble(this.ProCasesIncrementPdDataTextBox.Value.ToString());  
            }  
 
            this.chart1.ChartTitle.TextBlock.Text = this.ProductGrowthinDataTextBox.Value + "Growth";  
        } 

    There is no problem with report data, just not display the chart when export to excel. and when export to PDF,CSV... (except excel). It will be print 2 times of this chart. 
   If you have any ideas, please let me know.

Thanks,

BestRegards,
Rain
0
Chavdar
Telerik team
answered on 24 Mar 2009, 09:40 AM
Hello Rain,

The information you have provided is not enough to find the problem. The code snippets are pretty standard and you are not doing anything special in the NeedDataSource event of the chart so these cannot be the reasons. In order to help you further please open a support ticket and send us the report definition and the exported documents if possible. A runnable application that reproduces the problem will be highly appreciated.

Regards,
Chavdar
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Rain
Top achievements
Rank 1
answered on 25 Mar 2009, 03:56 AM
Hi Chavdar,
    I have solved it by myself, indeed, the cause is just that I placed the chart in page group. and now I place it in footer section group, it's OK.

Thank you all the same,

Best Regards
Rain
Tags
General Discussions
Asked by
Rain
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Rain
Top achievements
Rank 1
Share this question
or