Telerik Forums
Reporting Forum
2 answers
239 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
143 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
258 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
90 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
158 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
339 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
1 answer
160 views
I dont know what I have done wrong. I have a chart, the chart needs a datasource. This is my NeedDataSource-method

private

 

void companyBooking_NeedDataSource(object sender, System.EventArgs e)

 

{

Telerik.Reporting.Processing.

Chart companyBookingChart = sender as Telerik.Reporting.Processing.Chart;

 

companyBookingChart.DataSource =

this.bokadoktornDataSetTableAdapter1.GetData();

 

}

In the InitializeComponent()-method I have this eventHandler.
this.companyBookingChart.NeedDataSource += new System.EventHandler(this.companyBooking_NeedDataSource);

This is my database-sqlquery, (Works fine)

SELECT YEAR(BookedDate) AS Year, MONTH(BookedDate) AS Month, CONCAT(u.FirstName, ' ', u.LastName) AS FullName, Count(*) AS NoOfBookings
FROM         Bookings b
INNER JOIN Users u ON u.Id = b.BookedById
INNER JOIN CompanyUsers cu ON cu.Id = u.Id
WHERE cu.CompanyId = 1
GROUP BY u.Id, MONTH(BookedDate), YEAR(BookedDate)
ORDER BY NoOfBookings DESC;

When I preview my report nothing happends. I dont know why, everything worked fine until I added my chart. Is it something wrong with my NeedDataSource-method.

Thanks
/Emil

 

Chavdar
Telerik team
 answered on 18 Aug 2009
1 answer
95 views
Hi
In a textbox in detail section, i have to display either low or medium or high based upon the value of another textbox(in detail section), which takes value from the database. Where should i write the if condition statements?
Ivan
Telerik team
 answered on 18 Aug 2009
4 answers
176 views
Hey folks,

I got a weird and annoying problem here in my report:

When using a CheckBox element in a Telerik Report it alway appears blue in color. To avoid that, I decided to create my own icons for CheckedImage and UncheckedImage. Unfortunately I can't attach this gifs to this post. But they are just squares with a border of 1px and a widht/height of 13px. The checked one is just a filled square.

But whatever I do - in mein PDF Export. The icon is a little bit bigger than the original one. An ugly effect is then, that my square has either a 2px border on the left, on the right, on top OR at the bottom, which doesn't look nice on the screen and on a printed out document.

What am I doing wrong?

Thanks in advance
Peter Voigtmann
Top achievements
Rank 1
 answered on 18 Aug 2009
2 answers
76 views
In the help file (Telerik_Reporting_2009_2_701_manual.chm) you say that "All exporting format extensions and the data processing are part of Telerik.Reporting.Processing.dll" However in the KB (http://www.telerik.com/support/kb/reporting/general/deploying-telerik-reporting.aspx) you do not mention that file.

I have a previous version running.
 -- What old Telerik dlls can I remove from the references?
 -- What references do I need to deploy the Q2 2009 reports in win forms?

Thanks,

Matthew
Matthew Hile
Top achievements
Rank 1
 answered on 17 Aug 2009
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?