Monday, August 20, 2012

RDLC report generation in Windows Application











using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SQLReportSample
{
    public partial class IndImages : Form
    {
        public IndImages()
        {
            InitializeComponent();
        }

        private void IndImages_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'IndItemsDataSet.getIndItemsReport' table. You can move, or remove it, as needed.
            this.getIndItemsReportTableAdapter.Fill(this.IndItemsDataSet.getIndItemsReport);

            this.reportViewer1.RefreshReport();
        }

        private void btnback_Click(object sender, EventArgs e)
        {
            try
            {
                ReportForm pf = new ReportForm();
                pf.Show();
                this.Hide();
            }
            catch (Exception ex)
            {
            }
        }

        private void IndImages_FormClosing(object sender, FormClosingEventArgs e)
        {
            Application.Exit();
        }
    }
}












No comments:

Using Authorization with Swagger in ASP.NET Core

 Create Solution like below LoginModel.cs using System.ComponentModel.DataAnnotations; namespace UsingAuthorizationWithSwagger.Models {     ...