Telerik Forums
Reporting Forum
1 answer
79 views
Having a small issue with the report viewer. Currently if a user tries to export the report to a file and attempts to overwrite an existing file that is used by another process (such as, it's currently open), the Report Viewer causes an unhandled exception and crashes the app.

Is there an accepted way to handle this scenario? Looking at the code, it seems like there should be a try/catch block around the block of code in the SaveExportCommand that writes to the file system.
Elian
Telerik team
 answered on 19 Dec 2011
4 answers
144 views
.. or I'm even dumber than generally accepted.

Have a look at the attached image.

This is from the detail section of a report. The detail section contains a crosstab (highlighted in Red.

Now, The crosstab has 2 row groups (and the content of these in show in bold).

I've been trying to find a way of getting the whole row for each top-level row group to be formated with the same background colour.

I thought Id cracked it by doing this in code ...
static int TabCount = 0;
public static int GetTabCount()
{
    return TabCount;
}
private void textBox25_ItemDataBound(object sender, EventArgs e)
{
    TabCount++;
}

textBox25 is the textbox holding the top-level grouping value.

I then, for both row groups and the detail section, set up a Conditional Formating rule with Filter="=GetTabCount() % 2" Condition = "Equal" an Value = "=1".

As you can see from the screen shot, this works for the row group cells but not for the detail cell.

I did a test and got the system to echo the value of GetTabCount() for each of the cells in the crosstab and got:
0 - 0 - 3
1 - 1 - 3
2 - 2 - 3

And I'll be damned if I can figure out why.

It seems that textBox25 is being bound more often that I think it should (so I guess my understanding og that is wrong too) and that the detail cells are being bound after the all of the row grouop cells on all of the rows.

Simply formating a report shouldn't be this hard.

If anyone can off any help, I will very grateful.

--
Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 19 Dec 2011
5 answers
193 views
Hi there,

I´ve installed the telerik reporting and tried to add to my silverlight application but give me an error?

How I can create a report in Silverlight?

Thanks
Manuel
Top achievements
Rank 1
 answered on 19 Dec 2011
1 answer
233 views
Hi,

I have a Style called "Data" with background color white.
I create a conditional formatting rule and only set the ForeColor to red for example.
Now, I change the style "Data", the background color for example to Ivory.
Now, when the rule applies, I see the background color of white, that should be Ivory. 

So, apparently the rule creates a copy of the style when creating the rule, and applies a background color that I do not think is part of the rule. I know other applications that do this differently.

I see two options I think are logical:
1) in the style rule, allow a base style to be inputed (data in my example) 
2) When a rule applies, let me say what style to use. So, I have style "data", l create style "DataRule1" and say in my rule that when condition is met, style "DataRule1" must be applied.

Regards,

Erik
Steve
Telerik team
 answered on 19 Dec 2011
2 answers
50 views
I need to create reports in MVC3 and I use telerik, I could give a tutorial or guide to start doing reports

Thanks,
chris
Top achievements
Rank 1
 answered on 16 Dec 2011
1 answer
60 views
Hi,
my report is performed by a crossTable.
I would like to start witn all groups collapsed.
At the moment i get an explosed tableCross with toggle butto for each group. So it is need to collaps
the group manully one by one.
Is it possible (and  how) to start with all crosstable's groups already collapsed?
Thanks
Elian
Telerik team
 answered on 16 Dec 2011
3 answers
593 views
Is it possible to set conditional formatting within a StyleRule? I am attempting to set the background of an alternating row and want to avoid setting the conditional formatting repeatedly. If there is a way to loop through the rows in the code behind and set the conditional formatting based on row index, that would work too. (For example, change Style name from GridRow to AltGridRow if Mod2.)

Any help would be greatly appreciated. I am a little new to the control suite so I appreciate the patience!

Thanks,

Jake
jacob
Top achievements
Rank 1
 answered on 16 Dec 2011
1 answer
246 views
Hi,

I have to develop a report who displays a crosstab.

Data are in the report's datasource and look like this :

ID    prevID     newID
1     toto          tata
2     toto          titi
3     toto          tutu
4     hello        hi
5     hello        bye

Data should be organize like this into the crosstab

toto     tata
           titi
           tutu
           total 3
hello    hi
           bye
           total 2
           TOTAL 5

If anyone can help me, I would be very gratefyl

Bye, Kévin

Elian
Telerik team
 answered on 16 Dec 2011
1 answer
620 views
Hello,
I am attempting to remove the appearance of the table cell related borders from my table however despite have tried changing all of the border related styles that I can identify they are still there.  I was hoping I could get some suggestions on what I should try / could be doing wrong this seems like it should be pretty straight forward.  I am making use of a report stylesheet / style rules if that makes any difference.  Please see the attached image with the faint appearance of cell borders which I would like to get to go away.  They are most noticeable in the blue table headers but are also visible in the alternating gray lines.

Thanks for any help in advance,
Nick
Hadib Ahmabi
Top achievements
Rank 1
 answered on 16 Dec 2011
3 answers
918 views
Hi,
We were using following method to get connection string in Crystal Reports:

   private void SetDBLogonForReport(ReportDocument myReportDocument, string[] credentials)
        {
            Tables myTables = myReportDocument.Database.Tables;
            foreach (CrystalDecisions.CrystalReports.Engine.Table myTable in myTables)
            {
                TableLogOnInfo myTableLogonInfo = myTable.LogOnInfo;

                myTableLogonInfo.ConnectionInfo.ServerName = credentials[0];
                myTableLogonInfo.ConnectionInfo.DatabaseName = credentials[1];
                myTableLogonInfo.ConnectionInfo.UserID = credentials[2];
                myTableLogonInfo.ConnectionInfo.Password = credentials[3];

                myTable.ApplyLogOnInfo(myTableLogonInfo);
                myTable.Location = "myDatabase.dbo." + Session["RptView"];
            }
            rptVwer.ReportSource = myReportDocument;
        }

How can we do something similar in Telerik report?
Thank you in advance.
Sumit
Steve
Telerik team
 answered on 16 Dec 2011
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?