Telerik Forums
Reporting Forum
1 answer
127 views
Hello,

I have been using telerik silverlight reportviewer, it works great. However, I tired move the reportviewer into MVVM and I receive the following error. The dll version in use is "4.2.10.1221". Any help would be greatly appreciated

Microsoft JScript runtime error: Unhandled Error in Silverlight Application 
Code: 4004    
Category: ManagedRuntimeError       
Message: System.Windows.Markup.XamlParseException:  [Line: 0 Position: 0]
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)     

Kind Regards,

Sunny
Sunny
Top achievements
Rank 1
 answered on 26 Dec 2010
1 answer
242 views
I have crosstab report. How can I get the actual columns count of the crosstab after the report is databound?
Peter
Telerik team
 answered on 22 Dec 2010
12 answers
139 views
Hi Telerik Admin,

m stuck while grouping report data by three DB fields like (Firstname,lastname and Phone no).
is there any way to get this?
FYI: -m using Q2 2010 SP1.
       -there are total seven DB fields
      -need  to group by these three fields(as mentioned above).
its quite urgent.please help me ASAP.

Thanks in advance.
-Dhungana
Steve
Telerik team
 answered on 22 Dec 2010
1 answer
100 views
I have checked the forums, in particular -
http://www.telerik.com/community/forums/reporting/telerik-reporting/set-report-parameter-connection-string.aspx

http://www.telerik.com/community/forums/reporting/telerik-reporting/changre-report-connectionstring-at-runtime.aspx

The second link seems to be what I want,  In our ui, the user picks what db they want to run the report against, from a dropdown, we can turn that value into a connection string, my issue is that I first started going down the route of adding a parameter to the report, but I cannot cast the silverlight reportviewer.report to my class in the report class library because the library is not silverlight compliant, so then I tried to access the report.datasource - but could not as the report property of the silverlight viewer is a string - please advise as how you would recomend me sending a sql connection string from my front end silverlight ui to the report hosted in a wcf service...

Thanks in advance,

-Deva
Steve
Telerik team
 answered on 22 Dec 2010
5 answers
148 views
I'm using Reporting Q2 2010 (4.1.10.714)
If I run 2 separate reports, then click the browser's back button, I am returned to the first report page, but the report does not display.  I get a display of the reportviewer with empty report parameters.  I don't think the product used to do this.

BTW, this happens with IE8, but not with Firefox 3.5.11.

Any ideas?  Thanks.
Dan
Peter
Telerik team
 answered on 22 Dec 2010
4 answers
72 views
Hi, I am a newbie for Telerik reporting. I founded error when install the demo below is the error message.
"This installation package could not be opened.  
Contact the application vendor to verify that this is a
valid Windows Installer package."

My OS is Win7 Ultimate,
VS2008,
.Net 1.1, 2, 3, 3.5, 4
and I'm an Administrator for my computer.

Thank you,
Thammapat.c


thammapat
Top achievements
Rank 1
 answered on 22 Dec 2010
3 answers
97 views
Can anybody suggest on it, that I have a Rad Chart where I have implemented the Scrolling and now want a click event
for the Items on the X-Axis, the click event is not working, if I remove the scrolling then it works any suggestion

I need it urgent.

Regards
Jasvinder Singh
Ves
Telerik team
 answered on 22 Dec 2010
2 answers
87 views
Hi,

we would like to port our Silverlight Application wich has integrated the telerik reports controls to Windows Azures. To port to Windows Azures we need a x64 report assembly. Do you have an assemblies for Azures? What are the plans from telerik to support Windows Azures?

Thanks,
Lars
Paul
Top achievements
Rank 1
 answered on 22 Dec 2010
2 answers
113 views
How does one edit a style sheet after exporting it?  I've assigned all my reports to one shared style sheet.  but now i need to make changes.  thanks in advance.
B
Top achievements
Rank 1
 answered on 22 Dec 2010
2 answers
262 views
I have a report that has some chart and tables inside.
Chart is working properly. For Table i have created nested classes and i have assigned a those classes to related table.

Description:
I have MainTable which shows the list of CareAreas.
Inside Main Table i have another table called Detaildetable1 which shows the list of Questions.and Inside the DetailTable1
There is one more table DetailTable2, which shows the Resident's Information.

I have created 3 classes.
public class CareAreaDetail
    {
        private String _care;
        private QCIDetail[] _qci;
        public String CareAreaQCITag
        {
            get
            {
                return _care;
            }
            set
            {
                _care = value;
            }
        }
        public QCIDetail[] qci
        {
            get
            {
                return _qci;
            }
            set
            {
                _qci = value;
            }
        }
    }
    public class QCIDetail
    {
        private String _qcisn;
        private ResidentDetail[] _resindet;
        public String QuestionShortName
        {
            get { return _qcisn; }
            set { _qcisn = value; }
        }

        public ResidentDetail[] resDetail
        {
            get
            {
                return _resindet;
            }
            set
            {
                _resindet = value;
            }
        }
    }
    public class ResidentDetail
    {
        private String _resident, _room;
        private DateTime _adate;
        //public String QuestionShortName { get;set;}
        public String ResidentName
        {
            get
            {
                return _resident;
            }
            set
            {
                _resident = value;
            }
        }
        public String Room
        {
            get
            {
                return _room;
            }
            set
            {
                _room = value;
            }
        }
        public DateTime AssessmentDate
        {
            get
            {
                return _adate;
            }
            set
            {
                _adate = value;
            }
        }
    }

Now on Main Table's NeedDataSource event i have assigned the Array Object of CareAreaDetail Class.
For DetailedTable1's needdatasource property i have assigned QCIDetailed Class object and for DetailTable2, ResidentDetail  class object.

Now where report is generated it shows proper Data in MainTable. bt in DetailTable1 and DetailTable2 it shows the same data for all the rows. i.e. for DetailTable1 it shows the data at index 0 in the QCITable class array in all rows and
for DetailTable2 it shows the data at index 0 in the ResidentDetail class array.

Here is the code.

private void DetailTable2_NeedDataSource_1(object sender, EventArgs e)
        {
            Processing.Table table = (Processing.Table)sender;
            DetailTable2.DataSource = table.DataObject["resDetail"];
        }

        private void DetailTable1_NeedDataSource_1(object sender, EventArgs e)
        {
            Processing.Table table = (Processing.Table)sender;
            DetailTable1.DataSource = table.DataObject["qci"];
        }

        private void MainTable_NeedDataSource_1(object sender, EventArgs e)
        {
            DataTable dt = GetAllResponses();
            DataTable DistinctCareAreaTable = SelectDistinct(dt, "CareArea");
            CareAreaDetail[] cad = new CareAreaDetail[DistinctCareAreaTable.Rows.Count];
            int i = 0;
            foreach (DataRow row in DistinctCareAreaTable.Rows)
            {
                cad[i] = new CareAreaDetail();
                cad[i].CareAreaQCITag = "Care Area: " + row[0].ToString().Trim() + " (" + dt.Select("CareArea='" + row[0].ToString().Trim() + "'")[0]["QuestionTag"].ToString() + ")";
                DataTable dtTemp = dt.Copy();
                dtTemp.Clear();
                DataRow[] TempDataRow = dt.Select("CareArea='" + row[0].ToString() + "'");
                foreach (DataRow dr in TempDataRow)
                    dtTemp.LoadDataRow(dr.ItemArray, false);
                DataTable DistinctQCITable = SelectDistinct(dtTemp, "QuestionShortName");
                QCIDetail[] qd = new QCIDetail[DistinctQCITable.Rows.Count];
                int j = 0;
                foreach (DataRow drQCI in DistinctQCITable.Rows)
                {
                    qd[j] = new QCIDetail();
                    qd[j].QuestionShortName = drQCI[0].ToString();

                    DataRow[] ResidentDataRow = dt.Select("QuestionShortName='" + drQCI[0].ToString() + "'");
                    ResidentDetail[] resDetail = new ResidentDetail[ResidentDataRow.Length];
                    int k = 0;
                    foreach (DataRow drRes in ResidentDataRow)
                    {
                        resDetail[k] = new ResidentDetail();
                        resDetail[k].ResidentName = drRes["Resident"].ToString();
                        resDetail[k].Room = drRes["Room"].ToString();
                        resDetail[k].AssessmentDate = (DateTime)drRes["AssessmentDate"];
                        k++;
                    }

                    qd[j].resDetail = resDetail;
                    j++;
                }
                cad[i].qci = qd;
                i++;
            }

            Processing.Table table = (Processing.Table)sender;
            table.DataSource = cad; // DATA assigned in the datasource is accurate and in proper format.
        }
I have attached Image of that report.
Jay
Top achievements
Rank 1
 answered on 21 Dec 2010
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?