Posts

Showing posts from June, 2014

Ticket Generation Using C#.net

Image
                              This article show and learns about how to generate the ticket using c#.net. This describe the how actually ticket (bus ticket) is generate what it will use any how it work              This article presents a solution to solving ticket generation problem using C# and Visual Studio 2010. This application is multipurpose application. This article is use full for many purpose for example city bus ticket generation, store retail ticket generation, in fair for rider tickets etc. This application will solve problem of how to print ticket, how to set margin of text for ticketetc. Follow the Steps: Step -1 In this tutorial first you have to add namespace    using System.Drawing.Printing;   now start with fist make object of the print document   ‘pd’.this will   make one document on which you have to draw or write content   PrintDocument pd = new PrintDocument (); Then you have to make object of the paper size this will

How to get column value from the selected row in data grid in wpf c#.net

Image
Data grid is a control for display the data in tabular format in our application. In data grid when u select any row then for getting this rows unique id write code like : Ex : here we will take ‘ dgcustomer ’ as data grid with following column name (Id,Name,RollNumber,Pass)                         string strid = "" ;                          DataRowView rowview = dgcustomer.SelectedItem as DataRowView ;               strid = rowview.Row[ "Id" ].ToString(); MessageBox .Show( "ID : " + strid);