Previously We have exported the GridView control to Excel/CSV files. Today we are going to export the GridView to PDF File. Exporting the GridView to PDF is a different thing. Because we need some other references to perform this. I have add a reference ‘iTextSharp.dll’ to export into PDF. Also in this article the process of exporting GridView to PDF is performing on a button click. On the Page_Load() event we are binding the GridView with the Database. As you will procees in this article you will get the process step by step. Also I have attached a demo project so you can also download the project.
-
Export GridvView to PDF File in C#.NET
April 17, 2012 by Sourabh Sharma
Category ASP.NET, Web Application | Tags: , C#.NET, Export, Export GridvView to PDF, GridView, PDF | 2 Comments
-
How to Develop Resolution Independent Windows Application in .NET
April 10, 2012 by Sourabh Sharma
While developing a Windows based application in C#.net the Form size matters when your application is going to run on different different computers. Also the other computers system may have different different resolution. So we need to develop an application that can vary the form size according to the Resolution of the particular system. In this article I will tell you that how to fetch the Resolution of your computer system using C# code and then we will discuss that how can we set the size of the Form that can match the resolution size.
Category ASP.NET, Window Application | Tags: , .NET, Application, Develop, Independent, Resolution, Windows | 1 Comment
-
How to Use Crystal Report in C#.NET
April 3, 2012 by Sourabh Sharma
Report is the most important part of any application whether the application is developed in .net or any other platform. We use to print various reports in the application. We can print reports using two types of reports. First one is just a simple report and the other is Crystal Report. The second method is better because Crystal Report provide some extra features with the report. We need to just drag and drop the column of the table to show their values. I have used the .NET Framework 3.5 to print Crystal Report. Also we need to add a Data Set file to print the report. In this article I will explain how to print crystal reports by screen shots.
Category ASP.NET, Window Application | Tags: , C#.NET, Crystal Report, Crystal Report in C#.NET, Window Application | No Comments
-
Build a Setup Project in ASP.NET
April 2, 2012 by Sourabh Sharma
There are three types of applications in asp.net and that are Console Applications, Web Applications and Window Applications. Today we are talking about Window Applications. While developing Window Applications we need to remember the most import thing about the Window Applications work area. As we know that Window Applications or Window Projects run on the client system. and to run this projects on the client system we need to create a setup of the project. In this article we will discuss that how to build a setup project in ASP.NET. I have attached some screen shots that will help you to understand the process easily. We will proceed through step by step.
Category ASP.NET, Window Application | Tags: , ASP.NET, Build, Build Setup Project, Project, Project in ASP.NET, Setup, Window Application | No Comments
-
Implementing Skew Transformation in WPF
March 28, 2012 by Tim
In this article we are going to perform the one of the basic Transformation technique that is Skew Transform. The term Transformation means perform rotation with the object. The rotation can be performed on the x-axis or may be on y-axis. he term Skew means to turn or place something at an angle or on its side. In this article we are implementing the Skew Transform in four different different directions. These directions are any angle of X or angle of Y or center of X or center of Y. We are doing all this task in a WPF application of .NET. Firstly we will discuss about the controls used to perform this. then we will discuss that how we can implement the Skew Transform in the WPF application.
Category ASP.NET, WPF | Tags: , Implementing, Skew, Transformation, WPF | No Comments
-
Binding Combobox Control With Multiple Columns of Database Table
March 27, 2012 by Sourabh Sharma
Previously we have discussed that how to bind Combo box control with Database Table’s column in WinForm. Today I will tell you that how to bind a Combo box control with multiple columns of a particular table. The way of binding is very simple. We are not writing extra code or not writing any complicated code to perform this task. Just in this article you will get what you are doing to perform this. Also we are fetching records in SqlDataReader and then binding multiple columns with Combo box Control. I have attached a project that will guide you to implement this task technically. Also I am attaching the coding of the page that will help you to learn the process.
Category ASP.NET, Window Application | Tags: , Binding Combobox, Combo box, Control, DataBase Table, Multiple Columns, Table Columns | No Comments
-
SQL Server Database Backup and Restore Database
March 26, 2012 by Sourabh Sharma
While working with database we need to store our information time to time. and for that purpose we take the backup for that database. Backing up a database provide many solutions for us. The main thing is if we lost our database from SQL Server then we can restore our database from our computer. Also when we perform changes in our database the backup database automatically update the changes to the backup file. In this article we are going to create a backup file of Database. The backup file always contain the extension (.bak). Also we are going to learn how to restore the database later in the article.
Category ASP.NET, SQL | Tags: , Backup, Backup Database, Database, Restore Database, Server, SQL, SQL Server | No Comments
-
Fetching Records from Multiple Tables in SQL Database
March 23, 2012 by Sourabh Sharma
When we are working with Tables in Database we need to perform some basic operation with Tables. These operations may be inserting records, updating records etc. The most important operation we need to know about the table is fetching records from the Table, also we can say retrieving records from tables. Sometime we need to retrieve records from multiple tables. When we are talking about more than a table the term “JOIN” comes in our mind. Because we use to Join two or more tables. The Joining of two or more table is very easy to implement in SQL Database. but we need to understand the basic concept of Joining. In this article we are fetching records from two tables using a simple query(not joining tables). Also we have used alias name for both tables.
Category ASP.NET, SQL | Tags: , Alias name, Database, Fetching Records, Joining, Multiple, Multiple Table, Retrieving Records, SQL, Tables | 2 Comments