Monday, August 31, 2009

Use Office 2007 OCR Using C#

CodeProject: How To: Use Office 2007 OCR Using C#. Free source code and programming help

What is OCR ?
OCR (Optical Character Recognition) is the recognition of printed or written text characters by a computer. This involves photoscanning of the text character-by-character, analysis of the scanned-in image, and then translation of the character image into character codes, such as ASCII, commonly used in data processing.
Or, we can say... Optical character recognition (OCR) translates images of text, such as scanned documents, into actual text characters. Also known as text recognition, OCR makes it possible to edit and reuse the text that is normally locked inside scanned images. OCR works using a form of artificial intelligence known as pattern recognition, to identify individual text characters on a page, including punctuation marks, spaces, and ends of lines.

Displaying Jquery Progress using ASP.NET MVC with Ajax

CodeProject: Displaying Jquery Progress using ASP.NET MVC with Ajax. Free source code and programming help

CodeProject: Reorderable ListView. Free source code and programming help

CodeProject: Reorderable ListView. Free source code and programming help

Friday, August 21, 2009

Access a Web service in a Windows-based application by using Visual Basic 2005

In Solution Explorer, right-click ServiceConsumer, and then click Add Web Reference.
after that add in your application.

Imports YourApplicationName.WEBserviceName VB
using WindowsApplication3.ElementExpress; c#




How to access a Web service in a Windows-based application by using Visual Basic 2005 or Visual Basic .NET

Tuesday, August 18, 2009

Sample Convert Number to Hours, Minutes in SQL Server

Convert Number to Hours and Minutes in SQL Server
SELECT pntotim/60 " hours ", pntotim % 60 " minutes" ,* FROM sATINOUT

Monday, August 17, 2009

Calculate Date Time difference in asp.net c#

Calculate Date time difference in asp.net c#
 
TimeSpan tmspan = DateTime.Parse(DateTime.Now.ToString()).Subtract(DateTime.Parse(YourTime.Text));

Response.Write(tmspan.Hours);

Response.Write("<br>");

Response.Write(tmspan.Minutes);

Response.Write("<br>");

Response.Write(tmspan.TotalHours);

Response.Write("<br>");

Response.Write(tmspan.TotalMinutes);

Friday, August 14, 2009

Retrieving Data Using the DataReader C# Asp.net

void loaddata()
{
SqlConnection myConnection = new SqlConnection(ConnectionString);
char stus = "N";
string strSQL = "select * FROM sATINOUT WHERE PNEMPID=" + Session["Udid"] + " and PNSTUS=" + stus;
SqlCommand cmd = new SqlCommand(strSQL, myConnection);
myConnection.Open();
SqlDataReader myReader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
if (myReader.HasRows)
{
while (myReader.Read())
{
TxtUSERid.Text = myReader["UDUSRID"].ToString();
txtpasswd.Text = myReader["UDPASSWD"].ToString();
}
}
myReader.Close();
myConnection.Close();
}


Retrieving Data Using the DataReader