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.
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.
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.
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.