Telerik Forums
Reporting Forum
12 answers
1.4K+ views
Hello,

I'm trying to filter a report programmatically using the "IN" operator using Reporting 2008.Q2.  I'm adding the filter using this code:

            Filter filterObj = new Filter(pField, FilterOperator.In, sbCrit.ToString());
            Filters.Add(filterObj);

pField is a string containing the field name in the format ("Fields.[my_field_name]").  I don't think this part is the problem because it works fine when I only have one value and use the Equal operator.

sbCrit is a StringBuilder I'm using to build the criteria.  I've tried many way to present the criteria and I'm now short of ideas.  I've tried with values enclosed between quotes ("), between apostrophes ('), with the criteria enclosed between
parenthesis or not, I've tried to put equal signs before every value, and now I'm short of ideas.

Can someone explain me the correct syntax for an IN criteria into a report?

Thank you very much
Stef
Telerik team
 answered on 31 Mar 2016
1 answer
196 views

It looks like the reports don't work when being generated in iPad-Safari with our system being iFramed.  It only displays the first page of the report and it looks like the pdf report is not being downloaded. It seems to be opened up in regular browser view 

I have tried changing the doctype as instructed here but that did not have any effect:
http://www.telerik.com/support/kb/reporting/details/blank-report-in-asp.net-reportviewer-on-ipad-iphone

We are already adding 'Content-disposition' to the response header:
response.AddHeader("Content-Disposition", string.Format("{0};FileName=\"{1}\"", "attachment", strFileName));

We have the latest version. 

Does anybody have any idea what might fix this?

 

Stef
Telerik team
 answered on 30 Mar 2016
1 answer
282 views
How can I make the windows authentication work on the Telerik Reports without using impersonation.  The clients wants it to be authenticated with their domain users.  Thanks.
Stef
Telerik team
 answered on 30 Mar 2016
12 answers
594 views

Hi


   I am working on Telerik Reporting, i have created the report using CrossTab control. I am showing the report in report viewer. I need to freeze the headers in report while scrolling the report viewer.Is there any option to that? If so, please send the sample solution.


Thanks
Nisha 
Stef
Telerik team
 answered on 30 Mar 2016
12 answers
291 views
Hi!

I have page with the following controls:
A textbox
A submit button
A label
A ReportViewer

The page is using telerik ajax and is setup so that when a user clicks on the submit button, the label and the reportviewer is updated.
Now when the user clicks the submit button, the following code is run:
ReportViewer1.Report = new MyReport();
var printScript = String.Format("{0}.PrintReport();", ReportViewer1.ClientID);
   ScriptManager.RegisterStartupScript(this, this.GetType(), "ReportPrint", printScript, true);

The problem where is that the javascript will run before the ajax has rendered the reportviewer and that gives my an error.

So my question is, how can I print the report, using AJAX, when the reportviewer is inside a AJAX update panel?

Regards
Per

Stef
Telerik team
 answered on 29 Mar 2016
2 answers
190 views

Hello

 

I am hoping someone can shed some light on my issue of printing labels.  I have follwed the guide  - How to: Create Multi-Column Report - Across the Page and Then Down .  The output is repeating by the number of records returned. ie. 8 records, data is repeated 8 times

For test purposes we have an SQL recordset that returnes 8 records (for the test).

As part of the recordset we also return an incremental record number (as RowNumber) e.g

RowNumber     Data

3      Some Data

4      Some Data

5      Some data

etc

 

We have added a list item into the details section , the Row group grouping expression is set to = Fields.RowNumber / 3.

The Static grouping expression is set to = Fields.RowNumber % 3.

 

We then get the 8 records repeated 8 times.  It works as 3 across then down, just 8 times.

(incidentally we start the incremental count from 3 to end up with blank labels at the end of the report rather than within it)

 

What am I missing?

Hope that makes sense

Any assistance would be appreciated.

 

Thanks Andrew

Andrew
Top achievements
Rank 1
Iron
 answered on 28 Mar 2016
6 answers
529 views
Hi there.

I am using Telerik Reporting and I have a need that when a user selects multiple people from a RadGrid, I need to create a single report (for audit purposes) for each person selected. I am creating the individual pdf reports programmatically and saving them to disk etc just fine. Another requirement is to also create a "combined" pdf report that has all of the individual reports within it. This pdf would be the one presented to the user. So, I did some reading and it looks like the ReportBook  feature should be able to help me.

I have code that is like this (simplified):

 

ReportBook reportBook = new ReportBook();

 

reportBook.DocumentName =

"Combined";

 

 

foreach (selected person)
{
    // generate the pdf report by exporting directly to disk
    
    // Add the report to the report book
    reportBook.Reports.Add(report);
}

Now, I need to create another PDF of the combined report.

I am not sure how to accomplish this. The examples/help articles don't show that detail.

Can you help me out?

Thanks, Mike

P.S. - I am really starting to understand and like your product. I love the fact that you can do so much programmatically.

 

David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 28 Mar 2016
2 answers
52 views

Hi,

 

I have a report in which I will execute a pagebreak if the content of a field is true. I have attached a picture for understanding what I mean.

 

How can I solve this?

Thanks

Andreas

Andreas
Top achievements
Rank 1
 answered on 28 Mar 2016
1 answer
118 views
Design with a line graph on a report.  Data source is stored proc with single parm.  Execute in DS displays data fine.  Report design shows data.  However, a Preview in Report Designer does not render;  it just keeps spinning.
Nasko
Telerik team
 answered on 28 Mar 2016
1 answer
120 views

Hi,

I m using HTML5 telerik reports. It was working fine. From last few days it suddenly started giving following error on runtime:

"Internal Server Error:
An error has occurred.
Attempting to deserialize an empty stream."

Need support for this.

Nasko
Telerik team
 answered on 28 Mar 2016
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?