Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Design report in Rdlc (Is this is possible to in Rdlc report)

$
0
0

Just wondering is this is possible to show report in rdlc using asp.net and vb.net using VS2008 . Iam using dataset  and creating dyanimic table code is below . how to design the datatable  and design this report either using tabular or matrix ???

B:REPORT
1 AAAAAAA
2 BBBBBBBBB
2.1 ccccccccc
      x
      y
      z
2.2 dddddddd
      x
     y
     z
2.3 eeeeeee
    x
    y
    z
2.4 fffffffffffff
    x
    y
    z
2.5 ggggggg
   x
   y
   z
3 hhhhhhhhh
and and and and and and

THIS IS MY VBCODE:

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

'

ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report/BAIFPROFILE.rdlc")
Dim dsuser As New DataSet1()

Dim baifprofile As New DataTable
Dim dr As DataRow
baifprofile.Columns.Add("Ano")
baifprofile.Columns.Add("Atype")
baifprofile.Columns.Add("Avalue")

dr = baifprofile.NewRow
dr("Ano") = 2.1
dr("Atype") = "exposure by fund strategy"
dr("Avalue") = "x"
baifprofile.Rows.Add(dr)

dr = baifprofile.NewRow
dr("Ano") = 2.1
dr("Atype") = "exposure by fund strategy"
dr("Avalue") = "y"
baifprofile.Rows.Add(dr)

dr = baifprofile.NewRow
dr("Ano") = 2.1
dr("Atype") = "exposure by fund strategy"
dr("Avalue") = "z"
baifprofile.Rows.Add(dr)

dr = baifprofile.NewRow
dr("Ano") = 2.2
dr("Atype") = "exposure by fund (detailed by position based / exposure based/ returns based)"
dr("Avalue") = "x"
baifprofile.Rows.Add(dr)

dr = baifprofile.NewRow
dr("Ano") = 2.2
dr("Atype") = "exposure by fund (detailed by position based / exposure based/ returns based)"
dr("Avalue") = "y"
baifprofile.Rows.Add(dr)

dr = baifprofile.NewRow
dr("Ano") = 2.2
dr("Atype") = "exposure by fund (detailed by position based / exposure based/ returns based)"
dr("Avalue") = "z"
baifprofile.Rows.Add(dr)

Dim datasource As New ReportDataSource("DataSet2_baifprofile", baifprofile)
ReportViewer1.LocalReport.DataSources.Clear()
ReportViewer1.LocalReport.DataSources.Add(datasource)

End Sub

I am using 3 columns and tried using with grouping with ANO : 1 ,2,2.1,2.2....3 ,AVALUE :AAAAA,BBBBBB,ccccccccc,ddddddd,........ ATYPE: x,y,z,,x,y,z,x,y,z,x,y,z,and and and and ...

 


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>