Telerik Forums
Reporting Forum
1 answer
104 views
Hi,
    when using the FilterOperator.NotLike the following error appears: Specified argument was out of the range of valid values. Parameter name: NotLike

this.Filters.Add("=Fields.title", Telerik.Reporting.Data.FilterOperator.NotLike, "%test%");

if I change the operator to like it does work
this.Filters.Add("=Fields.title", Telerik.Reporting.Data.FilterOperator.Like, "%test%")

It does not matter what i put in as the value for NotLike I get that error. If I put an empty string in as the value then I do not get an error and all results show as expected.
Is this a bug with NotLike or am I doing something wrong?
Thanks
Steve
Telerik team
 answered on 04 Aug 2011
0 answers
108 views
Hi there,

Each time the ReportViewer is displayed a user should select PageSetup Dialog, clear margin values (left, top, right, bottom) and set portrait view.
That should be annoying users.
Is there a way how to: once it's set, then keep that details and load each time the app is loaded?

Found: Report.PageSettings Property
Роберт
Top achievements
Rank 1
 asked on 04 Aug 2011
1 answer
123 views
What is the syntax for the conditional formatting dialog to have the style in one textbox change based on the value of another textbox?

I have tried:

=textBox1.Value < =textBox2.Value
=textBox1 < =textBox2
textBox1.Value < textBox2.Value
textBox1 < textBox2
=Fields.textBox1 < =Fields.textBox2
Peter
Telerik team
 answered on 04 Aug 2011
1 answer
117 views
watermark in reporting example 
Steve
Telerik team
 answered on 04 Aug 2011
0 answers
85 views
In my telerik report (which was originally designed to display as PDF), I have added the renderformat as HTML if a property is set to true. In the Render method inside the designer class, I check whether the property is true. If true, I make the Page footer section visibility as false before invoking -

 

 

processor.RenderReport(reporter.RenderFormat,this, null).DocumentBytes;

 

(reporter.RenderFormat will be either PDF or HTML. This is also set based on the above said property)
So when I view it as HTML (I convert the byte array as given below:
System.Text.UTF8Encoding enc = new System.Text.UTF8Encoding(); 
lblRecordContent.Text = enc.GetString(value);

 

 ),
I have two problems.

1. Page footer section is still shown which is not required in case of HTML view.

 


2. I get a javascript error
   
<script type="text/javascript">
var PageInfo = [%PageNumber%, %PageCount%];
var BookmarksOnPage = new Array(%BookmarksOnPage%);
</script>

Kindly help me on these issues.

Thanks
George
Top achievements
Rank 1
 asked on 04 Aug 2011
1 answer
349 views
Hello,

Does anyone know a link to download a sample? The link in this post http://www.telerik.com/community/forums/preview-thread/reporting/telerik-reporting/reportviewer-silverlight-example-project.aspx not works. I use the version Q3 2010 and there aren't this examples: Start - > Programs -> Telerik -> Reporting -> Visual Studio Examples

Can anyone help me? Please.
I would like to see the Xaml and CodeBehind.

Or can anyone help me to fill the Report on ReportViewer? I didn't understand.

ReportViewer:

<Telerik_ReportViewer_Silverlight:ReportViewer Margin="8" ReportServerUri="../ReportService1.svc" Name="myReportView" Report="Telerik.Reporting.ClassLibrary1, ClassLibrary1.Report1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>



Thanks
Thiago Ferreira
Top achievements
Rank 1
 answered on 03 Aug 2011
2 answers
782 views
I have created a few reports.  Each report has 1 or 2 charts and nothing else.  Using the same steps as in the video as below, I cannot get my reports to show in my Win Form.

http://tv.telerik.com/watch/reporting/video/using-one-report-aspnet-winforms-and-silverlight

I get this error in my reportviewer: Value cannot be null.  Parameter name: key

If I go to my report and click on the Preview tab, it works fine.  Why I can't see it under Win Form?
Peter
Telerik team
 answered on 03 Aug 2011
1 answer
42 views
Hi All,

Apologies for the simplistic title here!

I was just wondering conceptually whether from a rendering efficiency perspective, what is the best route for a report containing a relatively large amount of data between the following two options (Assuming a 1000 item dataset for the purposes of illustration):

A) 100 pages with 10 records per page
B) 10 pages with 100 records per page

I appreciate that the type of report may be a part of the answer, so for this example my report simply has 4-5 fields per record. The details section of the report simple has a header which lists the title of the record and 3-4 fields within the detail section to display the record details.

No images, calculations, charts, or anything else fancy are used, I simply wondered if anyone had any info on how the renderer 'should' respond to these two situations,

Many thanks,

Doug
Peter
Telerik team
 answered on 03 Aug 2011
1 answer
106 views
Hi.

Im making an invoice report and i want a summary of all projects on that invoice at the beginning of the repport ordered by project name.
You could call it a summary list of all projects. I only get the data from the latest project, not all of them. I tried with a table, list and cross table but i dont get out any data.

Underneath i got a group section with all projects, articles and workdates and this works perfectly.

Here is the code i use to set the datasource:

     var invoice = InvoiceRepository.GetInvoiceById(226);


            var query = from w in invoice.WorkHours
                        select new
                                   {
                                       Hours = w.BillableHours ?? w.Hours,
                                       Period = string.Format("{0:yyyy-MM-dd} - {1:yyyy-MM-dd}", w.Invoice.StartDate, w.Invoice.EndDate),
                                       WorkDate = w.WorkSpecification.WorkDate,
                                       Consultant = w.WorkSpecification.User.FirstName + " " + w.WorkSpecification.User.LastName,
                                       ClientName = w.WorkSpecification.Project.Client.ClientNameLegal,
                                       CompanyName = w.WorkSpecification.User.Company.CompanyName,
                                       ArticleName = w.Article.ArticleName,
                                       ProjectName = w.WorkSpecification.Project.ProjectName,
                                       InvoiceTag = w.Invoice.InvoiceTag,
                                       InvoiceUrl = w.Invoice.InvoiceURL,
                                       InvoiceNo = w.Invoice.InvoiceNo,
                                       PricePerHour = w.Article.Prices.Single(p => p.StartDate <= w.WorkSpecification.WorkDate && (p.EndDate ?? DateTime.MaxValue) >= w.WorkSpecification.WorkDate).PricePerHour,
                                       YourReference = w.WorkSpecification.Project.ClientContactName,
                                       ContryZipAndCity = string.Format("{0}-{1} {2}", w.WorkSpecification.User.Company.CountryCode, "", ""),
                                       OurReference = "",
                                       CompanyAdress = "1",
                                   };


            return query.ToList();

Please help me. Ive been working on this for 3 days and im quite a good developer but this thing just breaks me.

Best regards Stefan Ã…berg.
Peter
Telerik team
 answered on 03 Aug 2011
2 answers
93 views
In a Silverlight app I have a ListBox which is populated using the results of the ListAvailableReports service method(available from the report service).
The method's result is an IList<ReportInfo>.
The class ReportInfo has 3 properties:
Name - contains the report Class name in the Report Library,
FullName - contains the full assembly name,
and
Description.

Obviously I cannot use the firs two, for the user to identify the Report.
My question is: How do I populate the Description property? (What property do I need to set in the Report class on the server ?)
I've looked for some time, but i cannot find it.

Ty for your time,
Alex.

Edit: I use the Reporting 2011 Q2.
Alex
Top achievements
Rank 2
 answered on 03 Aug 2011
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?