Telerik Forums
Reporting Forum
21 answers
1.5K+ views
Hi all,

I installed Reporting SP1, PageCount problem is solved. But after the installation other problems occured. When I run ReportViewer every textbox gives error message "#ERROR# The expression contains object '####' that is not defined in the current context. ". But the preview of report doesn't give any error. I'm usinf Business objects for datasource. I have a business object and a List class that is filled by that business objects. I try to rebind datasource to report but the result is same. It doesn't make sense that this error is occured after installation of SP1.
Do you have any advice?

Thanks..
Cristian
Top achievements
Rank 1
 answered on 10 Jan 2012
3 answers
130 views
Hi,

I have a customer who has Adobe acrobat pro PDF Printer  ver.  9.4.7  driver installed, so he can, via the print menu ,save the report as PDF.

However the footer comes out strange in the PDF as seen in the attached jpg. To the left of the footer a date should been shown and to right a page nr.(1 in this case not 4)

Using the normal save as pdf in the wpf reportview , the pdf is fine.

How can this problem be solved ?.

Best

Ole
Steve
Telerik team
 answered on 10 Jan 2012
1 answer
161 views
Hi,

I'm using Telerik Reporting Q2 in my application. In this, I'm creating report using the following code and it works fine:


//Code that calls the report designer goes here

ReportProcessor processor =
new ReportProcessor();
RenderingResult result = processor.RenderReport("PDF", report, null);
  
string fileName = "Report" + string.Format("{0:yyyy-MM-dd_hh-mm-ss-tt}", DateTime.Now) + ".pdf";
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
Response.ClearContent();
Response.OutputStream.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
Response.End();

Now, I want to add another result in the same report. For that, I did something like this:

byte[] documentBytes = new List<byte>().ToArray();
for(int i=0; i<count; i++)
{
            //Code that calls the report designer goes here
  
            ReportProcessor processor = new ReportProcessor();
            RenderingResult result = processor.RenderReport("PDF", report, null);
        
            documentBytes = documentBytes.Concat(result.DocumentBytes).ToArray();
}
  
string fileName = "Report" + string.Format("{0:yyyy-MM-dd_hh-mm-ss-tt}", DateTime.Now) + ".pdf";
Response.ContentType = "application/pdf";
Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
Response.ClearContent();
Response.OutputStream.Write(documentBytes, 0, documentBytes.Length);
Response.End();

But in the resulting PDF, I'm only seeing the final result (I have chart and table inside the report) from the for loop. Does this have a solution? Suppose the for loop have been traversed two times, the resulting PDF should be having chart & table for the first item followed by chart & table for the second item.

Please help asap.
Thanks
Pradeep
Top achievements
Rank 1
 answered on 10 Jan 2012
5 answers
304 views
Hello,

I have created a report with few parameters for filtering the report data. There is one parameter drop-down which needs to be filled as per choice made in the other parameter drop-down. For example, one drop-down is for 'Subject' and the other is for 'AreaOfSubject'. Now I want 'AreaOfSubject' to be filled as per the choice made in Subject drop-down. I am filling both the drop-downs with the business logic.

Would you please suggest the way it can be achieved?

Thanks and regards,
Deepak Saboji
Steve
Telerik team
 answered on 10 Jan 2012
1 answer
118 views

Hi all!

I'm trying to view the datasouce source of theTelerik  Cross Tab example  ie. productSalesDataSet but when i try to configure... so as to view after "Edit in DataSet designer..."

 i get the error below.

 

Failed to open a connection to the database.

"This server version is not supported. You must have Microsoft SQl Server 2005 Beta 2 or later"

Change connection and try again.

 

I have SQL server 2008.

 

Can someone send the the query used in the productSalesDataSet so i can have a look. I think after i've seen it i'llget my crosstab to work

 

thnx so much.

Steve
Telerik team
 answered on 10 Jan 2012
2 answers
213 views
I'm trying to print a 4-detail per page report in a special paper (139mm x 304mm).

First it was working trying it using native printing but it was a problem when I tried to print it in a network printer it was HUGE (every page was more than 165MB) and it was very slow. I solutioned this with this thread:
http://www.telerik.com/community/forums/preview-thread/reporting/telerik-reporting/printing-problem-with-reportviewer-in-silverlight.aspx 

But now I'm having problems with margins. I setup the page with no margin and it is the same size than the page... but it leaves top, left, right and bottom margins...

I don't know what to do... any suggestion?
Fernando
Top achievements
Rank 1
 answered on 10 Jan 2012
3 answers
144 views
Hi
i am working with telerik reporting on vs 2008
i have a problem with it,
when that i want see data explorer or report explorer menu it does not show,i right click on report surface & select view menu & it's sub menus 
but didn't show,i install silverlight3 on vs2008 now inactive telerik reporting
plz help me.
thanks
Massimiliano Bassili
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
104 views
Hi,

I would like to show an image on each row by using picture box and show some info when the cursor move on it (like a tooltip). Is it possible? If so, how to do it.

thanks a lot.
Steve
Telerik team
 answered on 10 Jan 2012
7 answers
1.2K+ views
Thanks
Steve
Telerik team
 answered on 10 Jan 2012
8 answers
550 views
Hi,

I'm experiencing quite some difficulty getting a subreport to act on the master report's parameters. I'm using the lastest TelerikReporting version 3.0.9.311 (Q1 2009).

I have the following setup: 2 reports, one to act as master (named KeyFigures), one included as sub report (named ChartSubReport).
Both have parameters "CompanyID" defined as Integer with a default value set to 1 (via designer).
The subreport item is set to pass the master report parameter thus: [=Parameters.CompanyID] (also via designer).

I want to pass the companyID from Session to both master report and subreport.

I use NeedDataSource event for both reports to populate the data:

private void Chart_NeedDataSource(object sender, System.EventArgs e) 
    string strCompanyID = this.ReportParameters["CompanyID"].Value.ToString(); 
// The above always gives the default parameter value in the sub report, but correct in the master report 
// ... 

When execution of NeedDataSource events, the master report has the correct value passed from Session. The subreport however keeps the old default value regardless. I have tried to programatically set this value in different ways but no different result.

The Web report viewer is initialized on Page_Load event like this:

Sunscape.TKS.Reports.KeyFigures report = new Sunscape.TKS.Reports.KeyFigures(); 
report.ReportParameters["CompanyID"].Value = Session["intCompany_ID"]; 
 
Telerik.Reporting.SubReport subReport = report.Items.Find("chartSubReport", true)[0] as Telerik.Reporting.SubReport; 
subReport.Parameters[0].Value = Session["intCompany_ID"]; 
this.ReportViewer.Report = report;
 

this shows I even try to programatically set the subreport's CompanyID, but it is not taken into account when NeedDataSource is fired for the SubReport. I know by forcing an exception to be thrown in both NeedDataSource handlers, that the master report's NeedDataSource event is fired first, and the subreport's second.

The above works for the master report which displays the correct data, but the sub report does not. It has the default parameter value of "1" regardless. Why is this?

I have browsed the forums and tried to follow any examples but none I have found address this exact problem. The best suggestion I have found is the above attempt by programmatically set the parameter before loading the report in the viewer.

Since it does not work this way, what is the correct way of forcing the sub report to get the value from the master report?


kind regards,
Ernst Sognnes
Patrick
Top achievements
Rank 1
 answered on 10 Jan 2012
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?