Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. customized reports with calendars and dropdown list

customized reports with calendars and dropdown list

Scheduled Pinned Locked Moved ASP.NET
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Flavia A
    wrote on last edited by
    #1

    Hello all, I need to customize my reports where in I can make a selection of a from date and a to date from 2 calendars and select the appropriate process from a dropdown list in the webform and the pass it to the report using report viewer for the same .Can You please give me a detailed procedure or if possible the code for this??

    A 1 Reply Last reply
    0
    • F Flavia A

      Hello all, I need to customize my reports where in I can make a selection of a from date and a to date from 2 calendars and select the appropriate process from a dropdown list in the webform and the pass it to the report using report viewer for the same .Can You please give me a detailed procedure or if possible the code for this??

      A Offline
      A Offline
      Amol 111
      wrote on last edited by
      #2

      Take a blank .rdlc (report1.rdlc). create .xsd file (say dsReport.xsd). Create datatable in dsReport (say dtReport).Include (or create manualy) fields required in the datatable,dtReport. Drag those fields in ur rdlc. in code behind

      using Microsoft.Reporting.WebForms;

      reportViewer1.Visible = true;
      reportViewer1.ShowToolBar = true;
      reportViewer1.SizeToReportContent = true;
      reportViewer1.LocalReport.ReportPath = "report1.rdlc";
      reportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
      //Note:DisplayReport will be your method to get data based on your parameters with return type as datatable.
      DataTable dtReportSource = DisplayReport(fromDate,todate,process);

      //Note schema for dtReport and dtReportSource should match.
      //Note: name format of dataset and datatable in .xsd file

      reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("dsReport_dtReport", dtReportSource ));

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups