Telerik

VB Report Template

Feed from this thread
  • Jason Burch avatar

    Posted on Nov 22, 2006 (permalink)

    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

    Reply

  • Jason Burch avatar

    Posted on Nov 22, 2006 (permalink)

    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

    ////////////////////////////////////////////////////////////////////////////////////////

    Reply

  • Telerik Admin admin's avatar

    Posted on Nov 23, 2006 (permalink)

    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

    Reply

  • Chris Bond avatar

    Posted on Jan 11, 2007 (permalink)

    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....

    Reply

  • Telerik Admin admin's avatar

    Posted on Jan 11, 2007 (permalink)

    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

    Reply

  • Posted on May 29, 2007 (permalink)

    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

    Reply

  • Telerik Admin admin's avatar

    Posted on May 30, 2007 (permalink)

    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

    Reply

  • fnfzone avatar

    Posted on Jun 16, 2008 (permalink)

    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

    Reply

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2009 Telerik. All rights reserved.