Telerik Forums
Reporting Forum
3 answers
596 views
I have created a Telerik report with parameters. Now i want to handle these parameters using custom UI. IS there any way I can get list of all the parameters in the report and their possible values(In case of drop down)?

I don't want to hard code the parameters in my webpage. I want to create page dynamically. That's why i need to have list of parameters and their possible values from the report.

thanks for the help.

Peter
Telerik team
 answered on 07 Dec 2011
2 answers
510 views
Hi,

I'm trying to create an EntityDataSource with the new report wizard, but I get a Popup with "Exception has been thrown by the target of an invocation"(Very usefull exception message by the way) before the wizard ends. I've the last version of telerik report(2011 Q3), and I've no other version of telerik reporting installed.

I've one c# class library project, and one other containing the EntityFramework and the generated POCO objects(+datacontext).

Here are some screenshot which show what I've done. I think I've done nothing special :/.

I need to have a first running report at leat friday(the 2.12.2011), so please help :(

Step1: Creating the report
http://dl.dropbox.com/u/368403/TelerikReport/Step1.png

Step 2: Clicking on Add New Data Source...
http://dl.dropbox.com/u/368403/TelerikReport/Step2.png

Step 3: Choosing Entity Data Source type
http://dl.dropbox.com/u/368403/TelerikReport/Step3.png

Step 4: Choosing my connection string(copied in the app.config file, from the app.config file of my EF project, so I now it works)
http://dl.dropbox.com/u/368403/TelerikReport/Step4.png

Step 5: Choosing my dataContext object(which is in another referenced project)
http://dl.dropbox.com/u/368403/TelerikReport/Step5.png

Step 6: Choosing the object context member(in my case, offers
http://dl.dropbox.com/u/368403/TelerikReport/Step6.png

Step 7: Get the wonderfull error!
http://dl.dropbox.com/u/368403/TelerikReport/Step7.png

After that, the data source has been created, but do not work, I see it in the bottom of the report, but it cannot be used anywhere, and if I go again on the  report wizard and select the data source, I've the same error than on the Step 7.

What is going wrong and what can I do NOW to get it working
Peter
Telerik team
 answered on 07 Dec 2011
2 answers
115 views
Hi, all

I'm new to Telerik reporting with silverlight and l'm using CSLA business object.
My business objects have no public constructor, instead have factory method .
and every query method allow only 1 criteria object,in which includes 1 to dozens fileds to create
linq entity syntax. However,looking into your manual, Telerik reporting's objectDataSource
should have public constructor and a public method for 'DataMember' which has same
number of params. I have already built hundreds of object and can't change into public constructor
and parameter signature as well. I have read many threads related, and not sure there might be
something I didn't catch up.

Though it looks like unacceptable, what I'd like to know is kinds of follwing code snippet
 is available in server side.

// create biz object with factory methods
MyBizObjType myObj = MyBizObjType.NewMyBizObjType();
// create criteria object from parms
var criteria = new MyBizCriteria(parms1,parms2.......);
// call search method
myObj.FetchData(criteria);

// create reporting datasource
Telerik.Reporting.ObjectDataSource objectDataSource1 = new Telerik.Reporting.ObjectDataSource();

 // objectDataSource1.DataMember = "GetCars";
 // objectDataSource1.DataSource = typeof(Cars);

// set datasource such as data binding in winform's day.
objectDataSource1.DataSource = myObj;

You must have been asked hundreads of similar question,and may have a good alternative.
Pls let me know better way if above is unacceptable.
At this time, I think I have no other way to make each new entity object wrapping business
 object who engages in reporting. But the real pain is that the number of object reaches several hundreads.

Thank you in advance.
Kang




Yonggu Kang
Top achievements
Rank 1
Iron
 answered on 07 Dec 2011
1 answer
140 views
Hey,
i am integrating a report service to my application and i am looking for a way to implement a search that it's result will populate a report parameter.

Ideally - i would have a search text box that using autocomplete (or something liek that) will let me a select a value for  my report parameter (for example, suppose my datasource is for a products table, when i put a name in the text box - it would give me all datasource results that fit with that search and let me select one of them - and the selection will be the value of a report parameter that i'll use to render the report).

Is there anything remotely like this integerated in Telerik Reporting?

Thanks,
Patrick
Top achievements
Rank 1
 answered on 06 Dec 2011
9 answers
173 views
My reports are not able to render text hyphens in Telerik Reporting TextBoxes OR in HTMLTextBoxes.  I have strings like "The Ultimate Course Title - Session 3" Rendering with empty spaces or boxes in place of the hypens.  How can I get hyphens to display in the rendered reports?

We're using Win 2003 server 32bit, Telerik reporting version 5.1.11.713.

Thanks for your help!

Jonathan David Smith, Developer
Trakkware, Inc.
www.trakkware.com
7204356836
Jonathan
Top achievements
Rank 1
 answered on 06 Dec 2011
1 answer
143 views
Hi!

I am working on MVC 3 using Telrik.

I want to create the parameter page in MVC to get the reports from SQL Server Reporting Services 2005.

Is it feasible?

If so, can i get some idea regarding it and an example which demonstrates it.

If no, what can be the reason behind it?

Please let me know
Steve
Telerik team
 answered on 06 Dec 2011
15 answers
530 views
Can we have Interactive (Editable) Gantt Chart using the Telerik reporting control. I was looking for a functionality that would add the features like moving the task shown in the gantt chart from one region to another. Increasing or reducing the duration of task in the chart itself.

Regards,
Jayandra
Stefan
Telerik team
 answered on 06 Dec 2011
1 answer
115 views
Hi,

Does Telerik reporting including a details header section?

For example, if you were displaying product id, product name, and product category in the details section the details header might contain "Id", "Name", and "Category" in bold/larger text.

It doesn't seem possible to use the page header for this, because it appears above the report header.

And the report header doesn't seem suitable either because this doesn't reappear on every page.

kind regards,
Jordan.
Jordan
Top achievements
Rank 1
 answered on 06 Dec 2011
0 answers
149 views
I'm using Telerik Reporting version 5.1.11.928. I bind the sql data source through the Telerik table wizard, then I called it from my code. Here is what my codes look like

 private void MachineStatusReport_ItemDataBinding(object sender, EventArgs e)
        {
           
                    uint pcGroupId = 0;

string sql = " // some sql query here..";
 
   sqlDataSource1.SelectCommand = sql;


          sqlDataSource1.Parameters.Clear();
            sqlDataSource1.Parameters.AddRange(new Telerik.Reporting.SqlDataSourceParameter[] {
           
          new Telerik.Reporting.SqlDataSourceParameter("ParameterDaysNumber", System.Data.DbType.Int32, ReportParameters["numDay"].Value),
            new Telerik.Reporting.SqlDataSourceParameter("ParameterPcGroupID", System.Data.DbType.String, "= Parameters.pcGroupId.Value"),
            new Telerik.Reporting.SqlDataSourceParameter("ParameterPcGroupLevel", System.Data.DbType.String, 0 < pcGroupId ? Common.GetPcGroupLevel(pcGroupId) + "-%" : "%")
  

  });


            DataSource = sqlDataSource1;


}

Next I bind  the table to this datasource using ' = ReportItem.DataObject'. and created a group based on some fields from the sql.

It works fine. Now I need to add new table on the same report, selecting specific data from report datasource which I have been using above and using the same grouping. However I cant use the same datasource result as I need to do another select statement to get the data from sqlDataSource1 result.  So how should I go about it.?


Fadhli
Top achievements
Rank 1
 asked on 06 Dec 2011
2 answers
1.3K+ views
I have a Silverlight project with a Telerik Rad Control Rich Text Box. The content of the rich text box is first exported in a string variable like this 

public string ExportToXAML(RadDocument document)  

XamlFormatProvider provider = new XamlFormatProvider();  

return provider.Export(document);  

}
After this, it is converted to a byte[] datatype and stored in an Oracle Database with a WCF webservice as a blob datatype (large business object). This works fine without problems. The content which is saved in the database is also shown in the rich text box with a get method of the webservice.
My question is: Is it possible to display the content of the rich text box in a Telerik report. I have constructed a Dataobjectmethod as a separate class, build an objectdatasource with the Dataobjectmethod and at last bound the report´s datasource to the objectdataource. Now when I try to generate the report preview an error is thrown: "Object reference not set to an object instance"
Actually it is not only the large BLOB object which is not displayed, but also the normal text is not shown. Do you have any idea about the error and how to handle it?
And: Is there a rich text box in the reporting or if not, how can I display the content of a rich text box in the report?

Peter
Telerik team
 answered on 05 Dec 2011
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?