Telerik Forums
Reporting Forum
3 answers
375 views
Hi

Is there a way to list all the month names as a report parameter?
I want the user to select the month and pass the number of the month to the filter.

Thus, ParameterMonth.Label = Month Name, ex "December" and ParameterMonth.Value = Number of Month, Ex "12".

Preferably I would like to do this with an Array in code.

I'm using Visual Studio 2012 and Telerik reporting Q3 2012.

Thank you.
Hadib Ahmabi
Top achievements
Rank 1
 answered on 16 Jan 2013
2 answers
154 views
EDIT: Sorry for the thread title, I only realized that I messed up the title after I posted the thread.

I need to get a value from volumeSumFunctionTextBox textbox in one of the subreports and display it in textBox1 in master report. My code is as attached below. But when I run this, detailSection will be null. Can anyone tell me what is wrong with my code?

private void textBox1_ItemDataBound(object sender, EventArgs e)
{
  Telerik.Reporting.Processing.TextBox textBox
    = (Telerik.Reporting.Processing.TextBox)sender;
  Telerik.Reporting.Processing.Report report = textBox.Report;
  Telerik.Reporting.Processing.DetailSection detailSection
    = Telerik.Reporting.Processing.DetailSection)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(report, "detail");
  Telerik.Reporting.Processing.SubReport subReportFuel
     = (Telerik.Reporting.Processing.SubReport)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(detailSection, "subReportFuel");
  Telerik.Reporting.Processing.TextBox subReportTextboxFuelVolume
     = (Telerik.Reporting.Processing.TextBox)Telerik.Reporting.Processing.ElementTreeHelper.GetChildByName(subReportFuel, "volumeSumFunctionTextBox");
 
  textBox.Value = subReportTextboxFuelVolume.Value;
}

Secondly, the master report's ReportParameters allows MultiValue. Therefore I'll need to display the sum of all values in volumeSumFunctionTextBox in textBox1. Which section of the report should I put textBox1? I've tried putting textBox1 in reportFooter but the textBox will not be displayed if I select more that than one value for ReportParameters .

Thanks.
Iris
Top achievements
Rank 1
 answered on 16 Jan 2013
0 answers
55 views
Greetings

I need to display some data like this:

Item #                                Reach (Y-74)         Reach (Y-82)        RoHS                  Conflict Metals

54001                                C                              C                              C                         C

52768                                C                              NC                           C                         N/A

                Reach (Y-82) NC due to 431-145-2 Purchased from Futuristics Components Inc (Supplier #191100) non-compliant

101-4030                          C                              C                              C                         C

3190-278                          C                              C                              C                         C

                RoHS NC  Purchased from Santron Inc (Supplier #XXXXX) non-compliant          

101-0032                          C                              C                              C                         C

Please notice the 2 red detail lines. Can I achieve this with crosstab ? If so, how? I think I'm stuck with crosstab because the last 4 columns are dynamic and I need crosstab's column group feature to display them.

Mihai Dinculescu
Top achievements
Rank 1
 asked on 16 Jan 2013
2 answers
119 views
I'm currently using the below which adds Filters using AND, how could I use OR

foreach (string filter in _rptFilters)
    {
            Telerik.Reporting.Filter newfilter = new Telerik.Reporting.Filter();
            newfilter.Expression = "= StringToUpper(Fields." + filter + ")"  ;
 
            newfilter.Operator = Telerik.Reporting.FilterOperator.Equal;
            newfilter.Value = filter.Substring(filter.IndexOf("_") + 1).ToUpper();
 
            table1.Filters.Add(newfilter);
     }
Tim
Top achievements
Rank 1
 answered on 15 Jan 2013
2 answers
222 views
I'm using Telerik Reporting Q2 2012 controls.  Is there a limit to the number of crosstabs that can be added per report? It seems as though I'm only able to use 2 at a time - whenever I add a 3rd I get "object reference not set to an instance of an object" in the Preview window.  My report is unbound and I have separate data sources for each crosstab.

Brian
Steve
Telerik team
 answered on 15 Jan 2013
2 answers
165 views
Hi Guys,

I've installed the Telerik Reporting Trial Q3 2012 objects and ticked the box to integrate into VS2010 and VS2012....

I'm having a few issues...

1) I have no Telerik Reporting Template in VS, so I can't create a new Reporting Project...

2) So since I couldn't do that, I thought I'd try to use the stand-alone report designer...  This "works" and would probably allow me to create a report if I wanted to use SQL Server directly as my datasource..  but I don't... I want to use my Linq datacontext I created earlier in VS...

When I installed the package and it initially didn't work with templates, etc...  I thought I'd done something wrong, so I uninstalled and reinstalled...  then I restarted my machine and still no good..

What steps have I missed to get the VS templates to appear...???

How do I link to a linq datasource at the time of designing a report..???  can I do this through the standalone designer or can I only do that through VS...???

Thanks
Steve
Telerik team
 answered on 15 Jan 2013
1 answer
108 views
Good day, i have an existing datatable pulled from a radGrid, I merely want to give the user the ability to Pdf an print it.  To this end I just wanted to push the datatabl right to the report. I cant find any examples that show how to push the datatable and then receive and use from the report.

Can anyone help with this?
Massimiliano Bassili
Top achievements
Rank 1
 answered on 15 Jan 2013
4 answers
1.3K+ views
Hi all,

I have a report that displaies main categories information and their subcategories.
When I show report to 1 main category no problem. I send main category ID to report constructor and get data of main category and its subcats,
but when I want to show all main categories, all subcats appears to every main cat.
For ex I have 3 main cats:
1- clothes and its subcats are (mens clothes,women clothes)
2- shoes and its subcats are (childeren, girls)

I have designed a report shows main cat info such as name and description and in this report another subreport list all subcats for this category.
When I call page to show this report and send category ID to page to select only 1 category no  problem but when I show all main cats it shows main cat info and all subcats not only this main category subcats.

So any solution to pass value from main report to its subreport in the current page??

Regards
Steve
Telerik team
 answered on 15 Jan 2013
7 answers
155 views
We're having quite a few problems with the Telerik reporting tools. Perhaps these issues are all just something we're doing wrong (and frankly we'd be happy if they were), but we're starting to believe that it's really a series of bugs in the product. This one we refer to internally as "Print? You Must Be Joking."

Print? You Must Be Joking.
As of the update to Q3 2012, any time we select the print button in the Telerik WPF ReportViewer we get the following error:

"Attempt by method 'Telerik.ReportViewer.Wpf.ReportViewerModel.Print()' to access method 'Telerik.ReportViewer.Wpf.ReportViewerModel.PaperKindToPageMediaSizeName (System.Drawing.Printing.PaperKind)'' failed."

As you might imagine, not being able to print a report is making our users a bit upset. Again, if this is our fault then we're happy to hear it. We just want the problem fixed.

Greg
Steve
Telerik team
 answered on 15 Jan 2013
1 answer
104 views
Hi,

how do i ad a sqlite Datasource in a wpf-project? I add a new Report and in the Wizard i just can
choose a SQL Server oder OleDB, ODBC..

How do i add a SQlite Datasource?

thanks
best regards
rene
Peter
Telerik team
 answered on 15 Jan 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?