Jason Burch
Top achievements
Rank 1
Jason Burch
asked on 22 Nov 2006, 09:27 PM
After installing the beta for Reporting I've noticed that there is a Report template for C# but not one for VB.NET.
It would be great to have this added.
Thanks
It would be great to have this added.
Thanks
7 Answers, 1 is accepted
0
Jason Burch
Top achievements
Rank 1
answered on 22 Nov 2006, 09:46 PM
Actually I just converted the telerikreport.cs to vb.net
Code Begins Here!
///////////////////////////////////////////////////////////////
Imports System.ComponentModel
Imports Telerik.Reporting
Imports Telerik.Reporting.Drawing
Namespace rootnamespace
Public Class safeitemrootname
Inherits Report
Private pageHeader As PageHeaderSection
Private detail As DetailSection
Private pageFooter As PageFooterSection
Private components As Container = Nothing
Public Sub New()
InitializeComponent()
End Sub
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
Private Sub InitializeComponent()
Me.pageHeader = New Telerik.Reporting.PageHeaderSection
Me.detail = New Telerik.Reporting.DetailSection
Me.pageFooter = New Telerik.Reporting.PageFooterSection
Me.pageHeader.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(2.0F, Unit.DefaultType))
Me.detail.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(3.0F, Unit.DefaultType))
Me.pageFooter.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(2.0F, Unit.DefaultType))
Me.Font.Color = System.Drawing.Color.Black
Me.Font.Name = "Tahoma"
Me.Font.Size = New Telerik.Reporting.Drawing.Unit(12.0F, Telerik.Reporting.Drawing.UnitType.Point)
Me.Items.AddRange(New Telerik.Reporting.ReportItemBase() {Me.pageHeader, Me.detail, Me.pageFooter})
End Sub
End Class
End Namespace
////////////////////////////////////////////////////////////////////////////////////////
Code Begins Here!
///////////////////////////////////////////////////////////////
Imports System.ComponentModel
Imports Telerik.Reporting
Imports Telerik.Reporting.Drawing
Namespace rootnamespace
Public Class safeitemrootname
Inherits Report
Private pageHeader As PageHeaderSection
Private detail As DetailSection
Private pageFooter As PageFooterSection
Private components As Container = Nothing
Public Sub New()
InitializeComponent()
End Sub
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
Private Sub InitializeComponent()
Me.pageHeader = New Telerik.Reporting.PageHeaderSection
Me.detail = New Telerik.Reporting.DetailSection
Me.pageFooter = New Telerik.Reporting.PageFooterSection
Me.pageHeader.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(2.0F, Unit.DefaultType))
Me.detail.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(3.0F, Unit.DefaultType))
Me.pageFooter.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(10.0F, Unit.DefaultType), New Telerik.Reporting.Drawing.Unit(2.0F, Unit.DefaultType))
Me.Font.Color = System.Drawing.Color.Black
Me.Font.Name = "Tahoma"
Me.Font.Size = New Telerik.Reporting.Drawing.Unit(12.0F, Telerik.Reporting.Drawing.UnitType.Point)
Me.Items.AddRange(New Telerik.Reporting.ReportItemBase() {Me.pageHeader, Me.detail, Me.pageFooter})
End Sub
End Class
End Namespace
////////////////////////////////////////////////////////////////////////////////////////
0
Great job, Jason!
As you know this first ever release of the telerik Reporting Tool and it is a CTP. As with all the other product that telerik is offering we will provide complete set Visual Basic .NET and C# examples in the near future, and Visual Studio 2005 item templates for the 1st Beta version, due in January. The reason we usually write the examples in C# first is because our products are developed in C#, which is our preferred programming language.
Thank you for the feedback and the support, much appreciated.
Kind regards,
Svetoslav
the telerik team
As you know this first ever release of the telerik Reporting Tool and it is a CTP. As with all the other product that telerik is offering we will provide complete set Visual Basic .NET and C# examples in the near future, and Visual Studio 2005 item templates for the 1st Beta version, due in January. The reason we usually write the examples in C# first is because our products are developed in C#, which is our preferred programming language.
Thank you for the feedback and the support, much appreciated.
Kind regards,
Svetoslav
the telerik team
0
TIOS
Top achievements
Rank 1
answered on 11 Jan 2007, 01:41 PM
Just tried the vb template posted here and it worked after i removed a few font things from it. How do you add something into the Data Explorer Data Source. As its saying No Data Source. So I cant add something to report on....
0
Hello Chris,
I guess that you've tried the VB templates with the CTP2 where we've made some changes to the Report API and currently there is no such property as ReportItemBase.Font. Instead you should consider using ReportItemBase.Style.Font. The Data Explorer tool window shows the available fields of the report data source and let you easily create bound items with drag and drop of a field from the Data Explorer to the designer surface. This tool window requires that you have set a valid data source and the initialization code is inside the report's InitializeComponent method (the only method that VS respects in design time).
Best wishes,
Svetoslav
the telerik team
I guess that you've tried the VB templates with the CTP2 where we've made some changes to the Report API and currently there is no such property as ReportItemBase.Font. Instead you should consider using ReportItemBase.Style.Font. The Data Explorer tool window shows the available fields of the report data source and let you easily create bound items with drag and drop of a field from the Data Explorer to the designer surface. This tool window requires that you have set a valid data source and the initialization code is inside the report's InitializeComponent method (the only method that VS respects in design time).
Best wishes,
Svetoslav
the telerik team
0
Robert
Top achievements
Rank 1
answered on 29 May 2007, 07:40 PM
I just downloaded reports how do you get it to work with VB.net?
The help sections on the site do not seem to help at all?
I was hoping this product would change me from Crystal Reports any suggestions?
RTW
The help sections on the site do not seem to help at all?
I was hoping this product would change me from Crystal Reports any suggestions?
RTW
0
Hello Robert,
We have just answered in your Forum post on the topic. Please, reply there in case you have some other feedback for us.
Regards,
Rob
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We have just answered in your Forum post on the topic. Please, reply there in case you have some other feedback for us.
Regards,
Rob
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
fnfzone
Top achievements
Rank 1
answered on 16 Jun 2008, 10:36 AM
Hello
How can i generate report using c#.net provided that a page will be break based on a specific value of an attribute?
That means i want to generate report... from access or excel so that for a specifc attribute value a new page will be generated?
thanks in advanced
How can i generate report using c#.net provided that a page will be break based on a specific value of an attribute?
That means i want to generate report... from access or excel so that for a specifc attribute value a new page will be generated?
thanks in advanced