c1ReportViewer1 DataBind - ASP.Net Wijmo

Posted by: djpeppone on 10 September 2017, 11:41 am EST

  • Posted 10 September 2017, 11:41 am EST

    hi

    i have a problem - how can i databind my DataRow with my report "vali_test.xml" and the event C1ReportViewer1_DataBinding ?

    here my source-code:

    **
    Imports C1.Web.Wijmo.Controls

    Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    C1ReportViewer1.FileName = "C:SP6InstEPPSP6testWebWebApplication1WebApplication1Reportvali_test.xml"
    C1ReportViewer1.ReportName = "VALI"

    Dim dr As DataRow
    Dim dt As New DataTable

    ' create dummy table
    dt.Columns.Add("DeckKapRegl")
    dt.Columns.Add("GebDatum")
    dt.Columns.Add("AHVLohn")

    dr = dt.NewRow
    dr!DeckKapRegl = 999.95
    dr!GebDatum = "14.05.1972"
    dr!DeckKapRegl = 125000
    dt.Rows.Add(dr)

    dt.AcceptChanges()

    C1ReportViewer1.DataBind()


    End Sub

    Private Sub C1ReportViewer1_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles C1ReportViewer1.DataBinding

    '???????

    End Sub

    End Class
    **

    In my VALI_Test.xml file i have 1 Field with the Name DeckKapRegl - an i would like place it with my datarow.

    do you have an example ?

    thank you.

    David
  • Replied 10 September 2017, 11:41 am EST

    Hello David,

    Kindly check the attached sample("C1WijReportViewer_VB") implementing the same and let me know if I missed out on anything.

    Regards
    Ashish
    2011/09/C1WijReportViewer_VB.zip
  • Replied 10 September 2017, 11:41 am EST

    hello

    thank you very much - it' s all ok.

    regards
    david
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels