Telerik Forums
Reporting Forum
2 answers
1.1K+ views
We have a base report that includes several text boxes, such as report title, date range, etc. These boxes are set as protected in the base report, so that they can be modified in the derived instance.

In the derived reports we want to set the text values; the literal values (ie the report name) are no problem, but I can't understand how to set texbox values based on parameter values. For example, we're passing a start date and end date, and we'd like to display those dates on the report. How can I access the parameter values in code-behind? I've tried statements like;

Public Sub New()
    txtReportTitle.Value = "Active Employees by Location"
    txtSubtitle.Value = Me.ReportParameters("CompanyName").Value
    InitializeComponent()
End Sub

...but this throws an invocation error. The assignment statements work properly when I use a literal value.

Help?
Derek
Top achievements
Rank 1
 answered on 14 Dec 2010
4 answers
363 views

Hello Telerik Team,

I have a requirement where in i need to pass multiple  filter values to a report.I am using master detail reports using Subreports .
But as of now..i am  able to provide only single filter to the detail report.

 Telerik.Reporting.Data.Filter fltrVal = new Telerik.Reporting.Data.Filter();
            fltrVal.Expression = "=Fields.ItemID";
            fltrVal.Operator = Telerik.Reporting.Data.FilterOperator.Equal;
            fltrVal.Value = "=1000";
            this.Filters.Add(fltrVal);

How do i pass multiple values to this filter.I have an array of values to be passed.

I appreciate your help. and support.

Thank you
Smith

Peter
Telerik team
 answered on 14 Dec 2010
0 answers
97 views
I need to add all the pictures that are in a directory to a report. Probably will be no more than 5-10 pictures per report. Is this possible in Telerik Reporting?

Thanks, 
Charles Hawk
KawaUser
Top achievements
Rank 2
 asked on 14 Dec 2010
1 answer
78 views
Hello,

I am using telerik reporting in order to make a chart on my web page and i seem to have a problem i cannot solve. I am using the StackedSplineArea chart with the Inox skin. Now I have changed the YAxis letters and numbering color to black that was easy by changing their color in appearance. I am facing a problem trying to change the labels' color. It is gray and i want it black.. I change it through the series apearance properties.. It is correctly changed on the design mode but as soon as I run it.. in preview mode or html it is still grey. I close it I re-open it and the color change I had done is gone.. I cannot change the label color.


Appart from that.. I want to make a chart with a time line... i have found how can i put dates to the xAxis but i want months...
I also want xAxis to show categories... that is not numeric.. I think it is not possible with the current charts.. is it??

Thank you in advance!
Sofia Sidirokastriti
Ves
Telerik team
 answered on 14 Dec 2010
4 answers
133 views
Hi,
I've specified different PointMark figures for different series. The legend marker is still rectangle. How can i make the legend marker to follow the series point mark figure?

Thanks in advance.
Lauren
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
128 views
I have a report that works fine when accessing the viewer through a web app.  However, the designer view doesn't work.  I get an exception because code I added to my report class depends on a custom configuration section in the config file.  I added the custom config section to the app.config file in my report lib project, but it doesn't seem to "see" the section.

I've seen other postings about using the Settings in lieu of app.config, however, I'm not sure that's going to work in my case.  Any help would be appreciated.
Steve
Telerik team
 answered on 14 Dec 2010
1 answer
158 views
Hi,

Can someone please advise me how I can achieve the following:

I have a report whose page orientation is landscape.  I want to print it from my in-browser (IE8) Silverlight 4 application.  I want the print dialog button to appear so the user can choose a printer or change defaults, but I want the report to print in landscape by default (unless the user specifically changed this in the print dialog) and not print according to the printer's defaults. 

If I set UseNativePrinting to false then nothing happens when I press the Report Viewer's print button.  If I create my own button with the following code executing on the click event :
var reportViewerModel = reportViewer.DataContext as ReportViewerModel;
if (reportViewerModel.State.Equals("ViewerPageState"))
{
   reportViewerModel.PrintReportCommand.Execute(null);
}
nothing happens.

This should be easy.  Please help.

Thanks.
Peter
Telerik team
 answered on 14 Dec 2010
1 answer
139 views
Hi, 

I'm currently evaluating your reporting package. I've been able to deploy the report service (the one that does the rendering) successfully on both a self-hosted WCF application as well as IIS-5. I can view my reports successfully when I run the Silverlight Report Viewer in Silverlight's out of browser mode with elevated trust level enabled. 

However, I get a problem when this the elevated trust level option is unchecked or when I run the Silverlight application in it Web mode.  When the report viewer is opened it briefly tries to connect to the report viewer service, but very quickly comes up with the following error: 

"An exception occurred during the operation, making the result invalid.  Check InnerException for exception details."

I'm not sure how to get more info from the error. I'm a little confused as everything works fine in the out of browser mode, but not in the web mode. Is there a difference I need to be aware of, and you do have any suggestions as to a possible solution? 

Thanks. 
Fletcher Aluminium
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
46 views
've just created a simple project with 3 reports. 1 Report shows static text. 2nd report shows a list of some entity (assigned as datasource in constructor) of the report class) as follows:
this.DataSource = new List<Test>()
{
new Test(){Name = "hasan"},
new Test(){Name = "Ali"}
};

3rd report just contains two sub report objects in its detail section.

When I run the application I see only one of the sub reports. Can someone check the source at http://www.filedropper.com/telerikreporttest and tell me what the problem is?

If I check preview of individual report, they show the data perfectly fine but something wrong happens on runtime.

Also the behavior seems unpredictable because sometimes it shows data from both the reports but repeats the static text as many times as there are rows in the second subreport. This happens if I change the order of subreports in the detail seciton of Master report.

Thanks

Hasan Khan
Top achievements
Rank 1
 answered on 13 Dec 2010
1 answer
1.1K+ views
Hi,

I have a problem , I can not figurer out / it is not working how to change the background when a date field is not set.(is null)

Here is what I have come yp with so far.....

realizing that the datetime value will be datetime.minvalue when the underlying data is null, I made the following in an formatting rules expression.

=Fields.SyncDate.Date.Ticks < :=1  but nothing happens, 

Any ideas on how to make this happen ?.

Best Ole
Peter
Telerik team
 answered on 13 Dec 2010
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?