Telerik Forums
Reporting Forum
0 answers
143 views
A                        B                    C                   D            E        F                    G                                Date                                   
40425.00         10800.00         102             102         25         25                 wert                         NULL                                 
40125.00         1500.00           102.01        102         25         175                 asd                        NULL                                 
50.00               0.00                 102.01.01   102         175       176                 asd                        2009-01-01 00:00:00      
5000.00            0.00                102.01.01   102         175       176                 asd                        2009-01-03 00:00:00         

I have two groups one in onother, first groups concerns column and, other concerns column C under the group that concerns D.
What i wantto do is to make all the fields of record(whole line) bold, when the record's Date column is null as follows:

A                        B                    C                   D            E        F                    G                                                              
40425.00         10800.00         102             102         25         25                 wert                                                     
40125.00         1500.00           102.01        102         25         175                 asd        
5050.00(*)             0.00           102.01.01   102         175        176                 asd                      

(*) SUM of the field A  actually, and so is 0.00 next to this field.

So how can i do this?

Thanks in advance...

Kem Arda
Top achievements
Rank 1
 asked on 20 Aug 2009
7 answers
515 views
I am evaluating Telerik Reporting tools. I watched your video on adding parameters to a report. I also am using the sample reporting projects code where it displays the report's name in a grid, on selecting the report, it opens the report in another windows and displays the information.

I created a report with a parameter "Team". I can view the report's contents correctly and change the team and get back data within the html preview. Once I try to use the grid to select the report and display outside of VS 2008 I get the error "Object reference not set to an instance of an object".  Not sure why.

I did take the same dataset and not use parameters and the data comes up fine. Any ideas?


Thanks,
Dwayne
Dwayne Starkey
Top achievements
Rank 1
 answered on 20 Aug 2009
1 answer
101 views
Hi.

I downloaded the last trial version of the Telerik Reporting product. I did a simple example and I uploaded the application to the shared hosting, but I still receive the message. Am I doing something wrong? Do I need to configure something?

"
Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.
"

Chavdar
Telerik team
 answered on 20 Aug 2009
1 answer
217 views
I am looking at creating a pair of ASHX handlers along the lines of www.site.com/DocAsPDF.ashx and www.site.com/DocAsJpg.ashx.

I was going about it manually, and its not to much effort really, but getting one code path to support both image files and PDF as output is a pain, while also rendering arbitrary html ( My data source to be rendered is an arbitray list of strings in partial html format, for example <DIV>Hi, hows it going</div> could be one line, <B>Fine</B> could be another and lastly <font color:red>RED</font> could be another ) into a jpg actually is a bit of a giant pain in the arse!

So, I got to thinking, hey, I already own Rad Reporting as part of my Rad Controls suite, I wonder if it could do the trick???

So, this is my question.  Would it be feasible from a performance perspective to generate PDF or JPG files on the fly, using Rad Reporting in an ASHX handler, or am I going down a path to ruin?  I would probably be generating a few thousand a day and don't want to put an incredible load on my server ( which I have full control over, so trust issues aren't, um... an issue ), but I would like the results to be relatively real time.  Finally, I need the actual output from the ASHX handler to be an actual JPG or PDF, so I can't use a report viewer.

Should I pursue using Reporting for this, or go a different route?

Thanks,
Mike

( Question is open to anyone, not just telerik, as it is as much opinion as technical.  Assistance appreciated )
Tom
Top achievements
Rank 1
 answered on 20 Aug 2009
2 answers
283 views
Hi,

I have started running the Telerik Reporting as of the Q2 2009 release.  The charts generated look fine on screen, but grainy when exported to PDF.  I see the setting for Bitmap Resolution, but changing it seems to have no effect on the export.  Also, I am unable to select any file format besides the default 'emf' when in design mode for the report. 

Is there a way to make the chart export in a resolution (300 or 400 dpi) that will look good for printing purposes?

Thanks,

Mikkel
Mikkel Hylden
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
186 views
Hi,

Is there any way by which I can use the existing CSS for applying styles to the telerik report.

I can create report with some format and export the settings as xml and then reuse it. But I want to know how to reuse an existing CSS for this case.

Thanks.
Saranya
Hrisi
Telerik team
 answered on 19 Aug 2009
1 answer
319 views
Hi there,

I have a textbox which holds a lowest price for a group of products (calculated using data fields). Then I would like to sum them  and display the total in the page footer. How do I achieve this?

Here is the structure of my report:
Header
    Product Brand (Group)
        Products
            1
            2
            3
            ...
            textbox (lowest price)
    (Group End)
Footer ( show total lowest price)



Any help would be appreciated.
Chi
Hrisi
Telerik team
 answered on 19 Aug 2009
4 answers
112 views
Making the reports work in Silverlight would be a huge advantage for Telerik reports.
Hrisi
Telerik team
 answered on 19 Aug 2009
2 answers
187 views
In the detail section of my report, I have a "Document History" section that consists of a table.  Depending on the particular invoice that my report is viewing, there could be a number of rows on my table. Right now if I had another row from the invoice, my textboxes would obviously just over-write themselves.  I need to know how to programmatically create new rows with textboxes on my table. 

            for (int i = 0; i < invoice.Audit.Steps.Count; i++) 
            { 
                this.textBox10.Value = invoice.Audit.Steps[i].User; 
                this.textBox11.Value = invoice.Audit.Steps[i].Status; 
                this.textBox12.Value = invoice.Audit.Steps[i].Date; 
            } 



Milen | Product Manager @DX
Telerik team
 answered on 19 Aug 2009
2 answers
386 views
Hello,

I'm using the trial version and trying to find out if Telerik Reporting is right for me. For the most part it's seemed like an excellent choice, but I do have one issue that I haven't been able to figure out.

For the most part, my binding will be to business objects. One item that often comes up in my business objects is a generic list of IP Addresses (System.Net.IPAddress). When I try to do this, I get a red box on my report that says

"An error has occured while processing TextBox 'TextBox1':
The expression contains object 'Item' that is not defined in the current context.

Textbox1 is within the details section, and the details section is the only section on the report.

To test this, I created a class called Addresses in 3 different ways, and used this code in my report's constructor:
    Public Sub New()  
        InitializeComponent()  
 
        Me.DataSource = New Addresses()  
        Me.TextBox1.Value = "=Fields.Item" 
 
    End Sub 

Then I tried 3 different versions of the Addresses() class.

Version 1:
Public Class Addresses  
    Inherits List(Of System.Net.IPAddress)  
 
    Public Sub New()  
        Me.Add(System.Net.IPAddress.Parse("192.168.0.1"))  
        Me.Add(System.Net.IPAddress.Parse("192.168.0.2"))  
        Me.Add(System.Net.IPAddress.Parse("192.168.0.3"))  
        Me.Add(System.Net.IPAddress.Parse("192.168.0.4"))  
        Me.Add(System.Net.IPAddress.Parse("192.168.0.5"))  
 
    End Sub 
 
End Class 
This produced the error above.

Version 2:
Public Class Addresses  
    Inherits List(Of String)  
 
    Public Sub New()  
        Me.Add("192.168.0.1")  
        Me.Add("192.168.0.2")  
        Me.Add("192.168.0.3")  
        Me.Add("192.168.0.4")  
        Me.Add("192.168.0.5")  
 
    End Sub 
 
End Class 
I tried the list as a string, just because that's how all the samples I saw on the site are. This produced the expected results of a nicely formatted list of IP Addresses. However, my business objects do not have the IP Addresses as Strings, they are System.Net.IPAddress objects. I just tried this one for proof of concept.

Version 3:
Public Class Addresses  
 
    Private _item As System.Net.IPAddress = System.Net.IPAddress.Parse("192.168.0.2")  
    Public Property Item() As System.Net.IPAddress  
        Get 
            Return Me._item  
        End Get 
        Set(ByVal value As System.Net.IPAddress)  
            Me._item = value  
        End Set 
    End Property 
End Class 
I tried this to to see if an IP Address as a property would render properly on the report, and it did.

With all 3 versions, I left the constructor the same way, and the textbox in the details section. It seems that as a standard property, the System.Net.IPAddress object could be rendered properly, and it also seemed that Telerik Reporting can understand a generic list, however, when I combine the two, it does not seem that Telerik Reporting can understand a Generic List of System.Net.IPAddress objects. Is this correct, or is there another method I am missing?

As an aside, if you are not familiar with System.Net.IPAddress, the familiar format of an IP address (ex. 192.168.0.1) is returned with the .ToString() method. It does not have a property to return it.

Thanks for any help you can give.

Josh
Josh Fruits
Top achievements
Rank 1
 answered on 18 Aug 2009
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?