Telerik Forums
Reporting Forum
1 answer
144 views
Dear Telerik Team member,

 I am using Telerik report viewer with entity fraework.
This is the code I am using to bind the report to the control.
When I run the app. I am unable to see the result on the reportviewer, but I am able to get the result set from database.
Where am I doing wrong?
Help me please...

   Telerik.Reporting.EntityDataSource entityDataSource = new 
Telerik.Reporting.EntityDataSource();         <BR>            
entityDataSource.ObjectContext = 
typeof(MyEntities);<BR>            
entityDataSource.ObjectContextMember = 
"ReportSales";<BR>            
entityDataSource.Parameters.AddRange(new 
Telerik.Reporting.ObjectDataSourceParameter[] 
{<BR>            new 
Telerik.Reporting.ObjectDataSourceParameter("SalesID", 
typeof(System.Nullable<int>),18),<BR>            
new Telerik.Reporting.ObjectDataSourceParameter("category", 
typeof(System.Nullable<byte>), 
1)});<BR>            
<BR>            
Telerik.Reporting.Report report = new 
Telerik.Reporting.Report();<BR>            
report.DataSource = 
entityDataSource;<BR>           
<BR>            
this.DefaultReportViewer.Report = report;
Steve
Telerik team
 answered on 29 Feb 2012
1 answer
408 views
Hi all,

My scenario is to place a picture, uploaded by a user.
The picture can be any size, so, I want it to show as much of it as possible.

I have tried different sizetypes, and autosize seems to work the best for me.

The problem - which is a big issue - is, when the picture is wider than the page size. It makes the document contain blank pages on every other page, except the page with the right part of the picture.
This behavior is natural...

What I wanted the most, is some kind of maxsize along with the autosize setting.
Or is there an other recommandation.

Kind regards,
Morten
Elian
Telerik team
 answered on 29 Feb 2012
3 answers
864 views
Hi,

I've been searching online for solutions that can solve my problem but most had to do with Master Details relationships.

My problem in a nutshell.

I have one Master report, the header and footer are populated with one datatable named CompanyInformation. In the details section, I have a telerik.reporting.processing.table, I set the headers and inside the table cells I drag a textbox. I set the value of the textbox to be the corresponding field from the database starting with "[=Field.something]." I bind the header and footer alright but the table will not show up at all and yes the visibility is set to true. By the way, both the master and table datasources are being set at runtime determined by a parameter passed from within an asp.net application.

heres my code.

    private void TelerikReportInvoice_NeedDataSource(object sender, EventArgs e)
        {

            int param = (int)this.ReportParameters["param "].Value;

            InvoiceDataSetTableAdapters.GetOrdersTableAdapter adapter = new TelerikReport.InvoiceDataSetTableAdapters.GetOrdersTableAdapter();
           
InvoiceDataSet.GetOrdersDataTable dt= new InvoiceDataSet.GetOrdersDataTable();
            dt= adapter.GetData(param);

            ((Telerik.Reporting.Processing.Report)sender).DataSource = dt.AsDataView();

        }

        private void table2_NeedDataSource(object sender, EventArgs e)
        {
            InvoiceDataSetTableAdapters.GetOrderFeesTableAdapter adpt = new TelerikReport.InvoiceDataSetTableAdapters.GetOrderFeesTableAdapter();

            InvoiceDataSet.GetOrderFeesDataTable dt= new InvoiceDataSet.GetOrderFeesDataTable();

            int param = (int)this.ReportParameters["param"].Value;  //same as master parameter

            dt= adpt.GetData(param);
            table2.DataSource = dt.AsDataView();

        }

I set both the table and report's datasource to be null in the constructor after initializecomponent() is called. The DataSet Visualizer also shows that there are 2 rows in the datatable returned and i'm also using stored procedures.

Thanks.


Hadib Ahmabi
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
157 views
There are basically 2 ways to display a grouping.  In a report, you can display it with the group titles in their own row like this:

Group 1
    XXXXXXX   XXXXXXX   XXXXXXX
    XXXXXXX   XXXXXXX   XXXXXXX
Group 2
    XXXXXXX   XXXXXXX   XXXXXXX

In a crosstab, you can display it with the group titles as a column. Like this:
Group 1     XXXXXXXX   XXXXXXXX   XXXXXXXX
                  XXXXXXXX   XXXXXXXX   XXXXXXXX
Group 2     XXXXXXXX   XXXXXXXX   XXXXXXXX

Is there a way to do both in the same report?
i.e.

Grouping 1
      SubGroup 1     XXXXXXXX   XXXXXXXX   XXXXXXXX
                              XXXXXXXX   XXXXXXXX   XXXXXXXX
      SubGroup 2     XXXXXXXX   XXXXXXXX   XXXXXXXX
                              XXXXXXXX   XXXXXXXX   XXXXXXXX
Grouping 2
      SubGroup 1     XXXXXXXX   XXXXXXXX   XXXXXXXX
                              XXXXXXXX XXXXXXXX XXXXXXXX
      SubGroup 2     XXXXXXXX   XXXXXXXX   XXXXXXXX


I can't seem to find a way to do this with a crosstab or with the report group explorer.
Thanks,
Justin
Hadib Ahmabi
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
247 views
Hello,

I have a grid list which I have checkboxes to select the rows.
My report have data that I need to bring from database.
Today, we have a button/link that sends the IDs of the rows as parameters and then it's displayed the ReportViewer in another screen.

We want to make this button to print the report automatically without displaying the ReportViewer.

Thanks,
Ezequiel



IvanY
Telerik team
 answered on 29 Feb 2012
1 answer
109 views
When trying to print a report (also occurs on demo site: http://demos.telerik.com/reporting/invoice-report/demo.aspx) in IE 7 browser, the user is prompted to save the PDF instead of being presented with the printer object window.


See screen shot attached - prompts user to save pdf file instead of printing.
Thanks,
Mike
Steve
Telerik team
 answered on 29 Feb 2012
2 answers
92 views
Same as http://www.telerik.com/community/forums/reporting/telerik-reporting/error-adding-new-telerik-report-to-solution.aspx 

But I was in the VS2012 website project.

Do you have the "Telerik_Reporting_Q1_2012.zip" for web?

Thanks a lot! 
bin zhu
Top achievements
Rank 1
 answered on 29 Feb 2012
3 answers
146 views
I've got a Lightswitch app that consumes a report from our IIS hosted Telerik reporting WCF service, and it was working fine on 2011 Q3. I'm trying to update it to Q1 2012 and now I'm getting the following error:

The property 'Theme' does not exist on the type 'ReportViewer' in the XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'.

What causes this?

Thanks
Steve
Telerik team
 answered on 28 Feb 2012
0 answers
271 views

Hi, 

I need to convert a string ('QReporting.Projects.Cy.ByStartDateAndEndDate.MyReport') to a report object. I mean, I need to create an instance similar to:

//reportViewr.Visible = true;
            ReportViewr1.Report = new QReporting.Projects.Cy.ByStartDateAndEndDate.MyReport();
            Telerik.Reporting.Report report = (Telerik.Reporting.Report)ReportViewr1.Report;

So, I'm trying to convert the string to object using the following code:

ReportViewer1.Report = ((ReportViewer)Enum.Parse(typeof(ReportViewer), "QReporting.Projects.Cy.ByStartDateAndEndDate.MyReport", true)).Report;
            Telerik.Reporting.Report report = (Telerik.Reporting.Report)ReportViewer1.Report;


But I'm getting an error:
Exception Details: System.ArgumentException: Type provided must be an Enum.
Parameter name: enumType

Please, I need your help solving the above issue

 

Regards,

Bader

Bader
Top achievements
Rank 1
 asked on 28 Feb 2012
0 answers
103 views
Hi;

I have used Telerik Charts and Telerik Tables to display reports in SharePoint 2010 using Telerik Report Viewer and it works fine there.
Now I want to migrate the same thing to MOSS but I am facing problems in that.. 

I have taken Class Library solution to deploy the reports. All the reports are deployed as individual web parts and i have done all the web.config changes required.
The page does not give any error but none web-parts(reports) are visible on the page.


Can you please suggest some solution or are there some other changes that I am missing to make it work in MOSS as well.

Thanks in advance!!
User
Top achievements
Rank 1
 asked on 28 Feb 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?