Telerik Forums
Reporting Forum
4 answers
102 views
In report class, I make some calculations. like:

my variable is declared like:

Protected  runningPageValue As Double


Private Sub pageFooter_ItemDataBound(sender As Object, e As EventArgs) Handles pageFooter.ItemDataBound
 
    Dim processingPageFooter = TryCast(sender, Telerik.Reporting.Processing.PageSection)
    Dim processingPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("txtSayfaToplami", True)(0), Telerik.Reporting.Processing.TextBox)
    runningPageValue += Convert.ToDouble(processingPageExecTextBox.Value)
 
    Dim processingRunningPageExecTextBox = TryCast(processingPageFooter.ChildElements.Find("TextBox3", True)(0), Telerik.Reporting.Processing.TextBox)
    processingRunningPageExecTextBox.Value = runningPageValue
 
End Sub

as a result when I refresh report, export report to pdf, print report etc.. all report events run again (naturally) but my variable never sets to zero. I tried all disposed events but could not succeeded.

I need to understand if report ends, then set runningPageValue=0

how a report component does not have completed event ? how should I use variables here ? please help. everytime report prints, refreshes or esports, number are groving, bigger and bigger.

Elliott
Top achievements
Rank 2
 answered on 04 Dec 2012
2 answers
243 views
Hi,

I want to export a chart report to excel. Right now exporting works fine. A new requirement is to edit the chart in the excel. Right now it will export a image for the chart. How can I export real chart, not image to excel? 

Here is my exporting code:
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
                Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("xlsx", report, null);

                string fileName = user_keyid + "_" + project_id + @"\" + Guid.NewGuid().ToString() + "." + extstr;
                if (!System.IO.Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + user_keyid + "_" + project_id))
                {
                    System.IO.Directory.CreateDirectory(AppDomain.CurrentDomain.BaseDirectory + user_keyid + "_" + project_id);
                }
                var fs = new System.IO.FileStream(AppDomain.CurrentDomain.BaseDirectory + fileName, System.IO.FileMode.OpenOrCreate);

                fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);

                fs.Flush();

                fs.Close();

Any help will be appreciated!
zxp
Top achievements
Rank 1
 answered on 04 Dec 2012
1 answer
204 views
Hi,

Is there a list of the client side methods or events that are available for the Web Report viewer?  The current Q3 2012 client side API does not include methods that are referenced in the help forums such as:

OnPrint
OnPrintReportLoaded
OnReportLoaded
etc.

Any help and further documentation would be appreciated. We are specifically wondering if there are any methods/events triggered on client side export, but a full list of available functionality would be great.

Thanks!
Steve
Telerik team
 answered on 04 Dec 2012
1 answer
552 views
hello i added a reportviewer and from its properties set the report and a parameter, but the value for the parameter has to come from session variable, i want to achieve this by adding it in the reports.parameters, how do i set it.

i do not want to do it from codebehind.

Steve
Telerik team
 answered on 03 Dec 2012
4 answers
345 views
Is it possible to run two versions of Telerik Reports in 1 IIS site ? This is a legitimate request as a client has many pages using an older version of Telerik Reports and we want to use the latest version on our new pages. All of the pages are hosted within one IIS site. We can add both versions to the GAC, but there's a lot of Web.Config entries needed - what do we do with the versions there ?
Mark
Top achievements
Rank 1
 answered on 03 Dec 2012
1 answer
141 views
Is there any property to make group header visible. though data source doesn't return any data.
Steve
Telerik team
 answered on 03 Dec 2012
2 answers
380 views
Hello All,


I have a technical question on telerik report.

On my report, I have two parameters("State" and "City")--They are setup in "cascading" way. Meanwhile, I setup "0" as default values (display value as "All") for both of them.

In the first load, if I choose "MN" for State, the city will list as below and "All" as a default value automatically is selected, which is expected.
CityID         CityName
0                     "all"
120                  "St paul"
121                   "Minneapolis"  

At this point, if I choose "St paul" for city and hit "run report" button, the report will be presented decently.

The issue is in the second round, however. If I change my state value from MN to PA, I expect the city list will reload all cities from PA(which is correct and includes default value "0, All") abd the default value still keeps as "All"(cityID=0) (which is in list but not selected automatically for me this time). I have to click this dropdown list again to choose "all" by myself.

Who can share some lights on this---how to make the default value still working even in the first round you have specified the value for this?

Thanks
 
 
Steve
Telerik team
 answered on 03 Dec 2012
5 answers
85 views
Hi,

I used telerik report Telerik_Reporting_Q2_2010_v4_1_10_921 version for developing my report pages. I develeloped reports with using Telerik report wizard and I used Civic style in my reports. When I upgrade my telerik reports to Q3, some problems in telerik report wizard were seen. I choose Civic style but when I clicked the finish button, reports look like they do not have any style. I am sending the screenshot of the report in the attachment.  What is the problem? 

Thanks  
Steve
Telerik team
 answered on 03 Dec 2012
2 answers
1.4K+ views
When opening a report in xlsx using Q1'12 controls, this is throwing an error:  Thread was being aborted.  It then prompts me to open or save it, then says "it couldn't be downloaded".  But when I click "retry" it opens fine in excel as xlsx.

Here is my code: 
var reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
                Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("xlsx", reportToExport, null);
 
                string fileName = reportName + ".xlsx";
                Response.Clear();
                Response.Charset = "";
                Response.ContentType = "application/vnd.xlsx";
                Response.Cache.SetCacheability(HttpCacheability.Private);
                Response.Expires = -1;
                Response.Buffer = false;
                Response.AddHeader("Content-Disposition",string.Format("{0};FileName=\"{1}\"", "attachment", fileName));
                Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
                Response.End();
David
Top achievements
Rank 1
 answered on 30 Nov 2012
1 answer
116 views
I'm converting some reports from SSRS to Telerik as a business case to migrate to Teleirk Reporting, but I'm having problems getting the table to stack its groups properly.

I can only find examples that show example that do this:
Group 1 Header, Group 1.1 Header, Details .........................................................................

But I need it to do this:
Group 1 Header
                            Group 1.1 Header
                                                           Details ........................................................................

Can this be done in the designer, and if so, how?
Would this be done with static groups, and if so how do those groups stack in the Row Heirarchy.


Then is it possible to collapse the Group Header columns widths to get this
Group 1 Header
Group 1.1 Header
Details.......................................
Group 1.1 Footer


I know that the table may not be the correct control, but we've got a tone of SSRS reports to convert and I've created a RDL converter that gets me 90% of the conversion done and then I just need to cleanup the expressions and bind the SSRS Group Expressions to ItemDataBound events.

I know that hacks to get data formatted in SSRS do not mean I need to do them in Telerik Reporting, so If the table is wrong, then I could change my Converter to map these messy tables to Lists instead or attach it to the Report itself if only one exists.

Thanks
Steve
Steven
Top achievements
Rank 1
 answered on 30 Nov 2012
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?