Telerik Forums
Reporting Forum
2 answers
109 views

Hello:

In a new application using Telerik reporting Q1 2010 v4.0.10.423, when I click on the export icon, the system shows a message box with the error “(XamlParseException) [Line: 0 Position: 0]”, followed by several “HRESULT E_FAIL” exceptions. In the same way, if I click on the print button, nothing happens.

I try it with an empty report (only with a static textbox), and the result is the same.

It happens on different computers.

I have another working project, that is using the same reporting version, and it works!

I run the Telerik upgrade wizard several times, and in different computers, but didn’t work.

 

Regards

Juan Segura

Juan Segura
Top achievements
Rank 1
 answered on 24 May 2010
1 answer
424 views


Hi ,

         Do you know , How to convert Amount to in words in telerik reporting tool ,

         eg: 1000 => One Thousand.


Thanks & Regards
Praveen
Steve
Telerik team
 answered on 24 May 2010
1 answer
192 views


Hi ,


        How  to convert Amount to Words in telerik reporting tool

       eg:  1000 => one thousand


Regards
    Praveen
Steve
Telerik team
 answered on 24 May 2010
0 answers
81 views
hi,
 i have  created report without using report wizard... here my coding is

 

private void ShiftReport_NeedDataSource(object sender, EventArgs e)

 

{

 

this.DataSource = null;

 

 

this.shifttab.DataSource = null;

 

 

DateTime StartDate = Convert.ToDateTime(this.ReportParameters["StartDate"].Value);

 

 

DateTime EndDate = Convert.ToDateTime(this.ReportParameters["EndDate"].Value);

 

 

string UserName = Convert.ToString(this.ReportParameters["UserName"].Value);

 

 

OleDbConnection con = new OleDbConnection(System.Configuration.ConfigurationManager.ConnectionStrings["FMS_1_0_0"].ToString());

 

 

OleDbCommand sqlCmd = new OleDbCommand("Shift_Report");

 

 

DataSet dsGetSearchResults = new DataSet();

 

sqlCmd.Connection = con;

sqlCmd.CommandType =

CommandType.StoredProcedure;

 

sqlCmd.Parameters.Add(

"Start_date", OleDbType.Date).Value = StartDate;

 

sqlCmd.Parameters.Add(

"End_date", OleDbType.Date).Value = EndDate;

 

sqlCmd.Parameters.Add(

"UserName", OleDbType.VarChar).Value = UserName;

 

con.Open();

 

OleDbDataAdapter Sqlda = new OleDbDataAdapter(sqlCmd);

 

 

try

 

{

 

Sqlda.Fill(dsGetSearchResults);

 

this.shifttab.DataSource = dsGetSearchResults;

 

 

this.DataMember = "";

 

 

}

 

catch (Exception ex)

 

{

}

}
and
/*the stored procedure is*/

create or replace PROCEDURE Shift_Report
(
       Start_date IN  DATE default null,
       End_date IN DATE default null,
       UserName IN Varchar default null,
       cv_1 IN OUT SYS_REFCURSOR
)
as 
tmp_userid number(10,0);
BEGIN
tmp_userid:=0;

 BEGIN
 select user_id into tmp_userid from ztuiusers where legacy_user_name = UserName ;
  EXCEPTION
  WHEN OTHERS THEN
         NULL;
       
  END;
OPEN cv_1 FOR
select  distinct
   CASE
      WHEN to_char(dol.datecreated,'HH24:MI:SS') BETWEEN '08:00:01' AND '16:45:00' THEN '08:00 - 04:45'
      WHEN to_char(dol.datecreated,'HH24:MI:SS') BETWEEN '16:45:01' AND '23:59:59' THEN '04:45 - 12:00'
      WHEN to_char(dol.datecreated,'HH24:MI:SS') BETWEEN '00:00:00' AND '08:00:00' THEN '12:00 - 08:00'
      END AS ShiftTime,
     -- to_char(dol.datecreated,'HH24:MI:SS') datecreated,
       f.fax_id,
       dol.title,
       Users.legacy_user_name
   from fax f
  JOIN data_object_log dol
          ON dol.entity_id = f.fax_id
 JOIN ztuiusers Users
         ON Users.user_id = f.user_id
 JOIN data_object_log_types dolt
        ON dolt.data_object_id = dol.data_object_id
 JOIN data_objects do
        ON do.data_object_id = dol.data_object_id
WHERE
(( UserName is null) or( Users.user_id = tmp_userid))and (f.received_date_time between Start_date and End_date)
order by ShiftTime ;
 END;


i want to group  the time column (i.e giving in case condition)
plz help me.. and post  the results as soon as possible...
thank u,
ramya
ramya kannan
Top achievements
Rank 1
 asked on 24 May 2010
1 answer
201 views
I'm trying to put report in report viewer from MMV pattern but doesn't work.

in xaml

    <Wpf:ReportViewer Name="ReportViewer1"  Report="{Binding Reporting}"  Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" Background="Transparent"></Wpf:ReportViewer>

and in view model:

 AttendanceSheetReport Reporting
        {
            get { return _reporting; }
            set
            {
                if(value!= _reporting)
                {
                    _reporting = value;
                    InvokePropertyChanged("Reporting");
                }
            }
        }

If I create report from code behind like that:

AttendanceSheetReport rep = new AttendanceSheetReport();
....
this.ReportViewer1.Report = rep;

I've no problema, but if I try to bind the response is No Report. can You help me?






Rodro
Top achievements
Rank 2
 answered on 24 May 2010
3 answers
774 views
I'm trying to add a Report using the Properties popup dialogue of a ReportViewer.  After I have drilled down to my selected report, and try to select it, I get a Visual Studio error alert

"Exception has been thrown by the target of an invocation"

Funny thing is that it was all working fine yesterday night :S

Can anyone shed any light as to the possible reasons why this might be happening?

Thanks

David
Jonathan Ulfeng
Top achievements
Rank 2
 answered on 22 May 2010
1 answer
118 views
Hello, is it a simple way to auto-size a report chart according to the amount of data source?
Steve
Telerik team
 answered on 21 May 2010
1 answer
65 views
Hello i use latest telerikcontrols (515) and reporting (423) for SL3.
When i set printrowheaderoneverypage in report to true it show's the header only on first page.
please can you check this ... thank you ...
Steve
Telerik team
 answered on 21 May 2010
8 answers
747 views
I'm trying to set a Report Parameter to the current date minus 7 days. I created a user function:

public static DateTime GetPreviousWeek()
{  return DateTime.Now.AddDays(-7);   }

In the ReportParameter Collection Editor, I created a new member, WeeklyDate. Its type is DateTime. The Value is =GetPreviousWeek()

When I try to Preview, I get "The expression contains undefined function call GetPreviousWeek()."  What am I missing?

ETA: I do build the project before I add the user function to the field. I'm selecting it out of the list when I get the error.
Steve
Telerik team
 answered on 21 May 2010
3 answers
323 views
Hi,

How can i mark the data item value point with a cross or circle in the line chart.


Thanks in advance.
Steve
Telerik team
 answered on 21 May 2010
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?