Telerik Forums
Reporting Forum
1 answer
164 views
Good Morning,

As per the tutorials I have created a ReportsLib class library which is referenced from a web app.  Database access is via a DAL which is also a separate class library compiled into a dll.  Databinding is to business objects returned by the DAL.   This all works fine when the reports are called from the web application.
However when I try and preview the reports in the designer I get an Exception as follows:

Exception has been thrown by the target of an invocation. Unable to read connection string from the .config file.

This is similar in nature to when I referenced the DAL from a separate Unit Testing class library. Obviously the class library projects do not have access to the web config containing the connection string.  In that case creating an app.config containing the connection string in the UnitTest project did the trick.

Unfortunately the same approach did not work for the ReportsLib project.  Is there something else I need to do to get the preview functionality to work if my datasource is obtained from another class library which obtains its connection string from the config file?

Any assistance is much appreciated.

Cheers

Ernie Josefik

P.S. running version Q1 2008
Steve
Telerik team
 answered on 25 Jul 2008
3 answers
91 views
Hi :o)

I am trying to create a report that is similar to a mobile phone bill.

The first page is a summary of usage which is like an invoice.
The second page is a list of the readings that make up that invoice.

I cannot see how to do this. i tried using groups but they are nesting as they do - what I need is to create a second, independant header/details/footer for the second page.

I hope this makes sense.

Thank you so much for your help

Tim
Steve
Telerik team
 answered on 25 Jul 2008
2 answers
284 views
hi ,
i am using telerik viewer and in have many crystal reports .i want the code in c# asp.net to convert the crystal report to telerik report .

i hope i get reply soon .
Steve
Telerik team
 answered on 25 Jul 2008
1 answer
105 views
Hi,
In my project, I'm attempting to show a horizontal bar chart, with it's YAxis legend in the opposite order of the way that the chart fill the plot area by default. My chart is filled dynamic like this:

The unwanted way.
   _________
3 |_________|
   ____
2 |____|
   ______________
1 |______________|


My objective:

   _________
1 |_________|
   ____
2 |____|
   ______________
3 |______________|


How do i achieve that?

Thanks,
Jose
Steve
Telerik team
 answered on 24 Jul 2008
10 answers
549 views
Telerik,

I read your article on passing parameters, but I'm still somewhat confused. Here are my questions:

1. Do I need to set a variable on the SQL statement and then set the value of the variable in the parameter dialog and in code? Exampe:

When I create the report, using the query editor, I would create:

SELECT CustomerID, CustomerName from Customer
Where CustomerID = @CustomerID (<-- do I need to create this in my select statement?)

When I create the report to display a report with a selected customer, do I need to use the ReportParameters collection as well to set the value of the above CUSTOMERID?

Do I need to create a ReportParameter collection item in order to set that iten's value in code? Example:

report1.ReportParameters[0].Value = iCustomerID;

report1.Report = report1;


Please advise.

John
Top achievements
Rank 1
 answered on 23 Jul 2008
4 answers
213 views
Ok here is the deal Windows Vista, VS 2008, Latest Download (as of this morning) of Report Objects...

Open new project drop the reportViewer on the page hit F5 and all i get is...

Server Error in '/ReportEngine' Application.  
--------------------------------------------------------------------------------  
 
Configuration Error   
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.   
 
Parser Error Message: The 'system.webServer' start tag on line 21 does not match the end tag of 'system.web'. Line 65, position 5.  
 
Source Error:   
 
 
Line 63:   
Line 64:   
Line 65:   </system.web> 
Line 66: </configuration> 
 
   
 
Source File: C:\inetpub\wwwroot\web.config    Line: 65   
 
 
--------------------------------------------------------------------------------  
Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434  

This happens with "anything" even opening up one of the examples and running it I have been over the web.config file a million times and it is formated just fine...

Here is where it gets even more mind boggling remove the 

<

telerik:ReportViewer ID="ReportViewer1" runat="server" />

from the page and everything works fine I know this is not me as even if i do it manually following the getting started guide everything works fine creating the report class file etc. works like a charm and even in winForms it works but the second i drop and/or add the tag to the page BOOOM! and yes 

<%

@ Register assembly="Telerik.ReportViewer.WebForms, Version=2.5.8.519, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

is registered and dll files are where they should be

Any Ideas, I am about ready to just go back to reporting services and crystal as this is driving me up a wall.

And before you ask I have tried this with and without ajax, on 2.0, 3.0 and 3.5 and no matter what i do it just bombs out

Christopher Bishop
Top achievements
Rank 2
 answered on 22 Jul 2008
1 answer
238 views

Hi all.

I have a problem with Telerik Reporting and I need an advice.
I’m trying to do a master/detail report with subreports, using LINQ and NeedDataSource event.
Now I have a report and a subreport in it, and want to retrieve data in a master/detail order. I tried to add a new subreport constructor with a parameter that is transmitted to the Data source of the subreport, but it just retrieves the first registry from the database and repeats it for each element in the main report. I tried to add a new propriety and assign a value to it in the main report, but the result was the same. I think that’s because NeedDataSource is fired once at the subreport initiation.

Is there any solution the problem? How could such a master/detail report be build?

Thanks in advance.

Fachmann.

Steve
Telerik team
 answered on 21 Jul 2008
13 answers
334 views
I was wondering.. if I create a class library report... and I progammatically access the data... How do i add a parameter so that i can filter the search on the report when i deploy the library to a web project that has the viewer in it..?

I am making a report for engine parts... and I need to be able to tell it what engine to select dynamically from my web application...

your help is appreciated..

thanks,

jeff
sircutbreaker
Top achievements
Rank 1
 answered on 17 Jul 2008
3 answers
166 views
In my Web application, I am building a Topic Library, in which I allow users to post their topic in rich-text format.  I use 2 fields
- TopicName: type string.
- TopicContent: type string. I use RadEditor to help users to create the content and I store the HTML string to the database

Now, in Telerik Reporting, I am using 2 TextBox to display TopicName and TopicContent. The Report Preview works fine, it display the topic-content in the right format, rich-text. However, when I click on the button Export to export the report to PDF/Rich Text/TIFF/Excel, the results contain the whole HTML string. I think this is because of HTML render.

Does anyone have any suggestion to get the right format in PDF/RichText ?

Hien Phan
hienphand
Top achievements
Rank 1
 answered on 17 Jul 2008
2 answers
170 views
When I tried to deploy my application, which has a Telerik ReportViewer in it tied to a reporting class library, I got "ReportViewer is undefined." Everything works on my development server, and the problem isn't missing .dlls as best I can tell.

I followed the steps outlined in the knowledge base for deploying a web application.
http://www.telerik.com/support/kb/article/b454K-mdk-b454T-a-b454c-a.aspx

Any suggestions?
Carla Harker
Top achievements
Rank 1
 answered on 17 Jul 2008
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?