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

SL ReportViewer - no refresh?

4 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 08 Sep 2012, 12:25 PM
Hi!

I have built a very simple report: in the constructor of the report a textbox is added to the detail section showing the actual date and time. I can call the report from Silverlight and it works as expected. Fine! But clicking the refresh-button in ReportViewer is NOT calling the report again, instead it is presenting the old one (I can determine this by looking at the time string which is not changing). What am I doing wrong?

This affects Reporting 6.1.12.820 with SL 5.

Regards
Neils

4 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 13 Sep 2012, 10:32 AM
Hello,

I need to see your report before giving you any suggestions. Please, take a look at attached movie (Now-movie.zip) where you can see how I test your scenario. The report source is Report1.zip which is also included.

Greetings,
Hrisi
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
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 17 Sep 2012, 11:00 AM
Hi,

the report is just a simple modification of one of Telerik's examples:

public Report1()
{
    //
    // Required for telerik Reporting designer support
    //
    InitializeComponent();
 
    Telerik.Reporting.TextBox textBox1 = new Telerik.Reporting.TextBox
        {
            Location = new PointU(Unit.Inch(0.3), Unit.Inch(0.3)),
            Size = new SizeU(Unit.Inch(3.4), Unit.Inch(0.4)),
            Value = "Hello from Telerik Reporting at " + DateTime.Now.ToLongTimeString()
        };
 
    this.detail.Items.Add(textBox1);
 
}

The time displayed is not refreshed. Does it mean that the report is not created again?

Regards
Neils
0
Heiko
Top achievements
Rank 1
Iron
Veteran
answered on 17 Sep 2012, 11:05 AM
Short addition: I took a look at your example. The difference is that your "textBox1.Value" is set inside the InitializeComponent of Report1.Designer.cs whereas my textbox is added in the constructor of the Report1 class itself.
0
Hrisi
Telerik team
answered on 19 Sep 2012, 03:57 PM
Hello,

The answer to your question "... The time displayed is not refreshed. Does it mean that the report is not created again?" is Yes. The instance of the report is created only once.

Regards,
Hrisi
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 >

Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Hrisi
Telerik team
Heiko
Top achievements
Rank 1
Iron
Veteran
Share this question
or