link to excel reader
Hi! i've been using this article to solve some problems about reading excel files, it gets a dataset with all the worksheets the workbook has as datatables.
i hope it works, I can't remeber if it's allowed to put third party links, it's from codeproject. if it's not allowed, please tell me :D
this is the link
if it doesn't works, here it is
http://www.codepr...
User Profile
Collapse
-
-
I recomend u to use the asp.net controls, the asp:textbox so u can refer it by code directly. it is a better server control.
[HTML]
<form id="form1" runat="server">
<div>
<asp:TextBox ID="IdTextbox" runat="server"> </asp:TextBox>
</div>
</form>[/HTML]
in this way u can access the element easyly....Leave a comment:
-
hi!
that sounds to me like u want to terminate some excecution.. try with a return(); statement. it finish whatever you're doing and bring you to the previes stack position in your app ejecution..
hope it helps :D...Leave a comment:
-
Hi! try inserting a string with the next format:
year/month/day hh:mm:ss
something like String.Format(" {0}/{1}/{2} {3}:{4}", date.Year,date. Month,date.Day, date.Hour,date. Minute)
to give to the DB engine a common string wich is accepted at least in SQLServe, Postgres and Oracle
I hope it helps :DLeave a comment:
-
Try defining the thread you are creating manually as a Background worker,
when you define the thread
thread t = new thread(new threadstart(fun ction));
t.IsBackground = true;
t.Start();
check that.. I'm not shure the property is named IsBackGround, it says something like that.. but with that property activate that thread finishes when the main thread finish.
I hopy it helps you :D...Leave a comment:
-
Hi there!
I found the solution.. I just needed to create a new object with an IDBCommand wich I make an instance with the kind of the original connection (I used a switch)
IDBConnection conexion;
switch(original Connection.GetT ype().ToString( ))
{
case "System.Data.Sq lConnection":
conexion = new SqlConnection() ;
break;
case "NpgsqlConnecti on":
conexion...Leave a comment:
-
calling winlogon window :D
hi everyone...
a little problem here... i hope someona can help me with this... I'm usin impersonation to login a system, and i should to use a Bimetrics device (fingerprint) to authentificate and imperonalize the user... I was thinking about use the logon windows system, who calls the software of the fingerprint device and help to authentificate. .. but I just didn't find anything that help me to do that.. I can impersonalize with... -
you can't use it like that.. you should specify the screen.
ej.
Rectangle rect = Screen.AllScree ns[0].Bounds;
you must put AllScreens and the screen wich you mean to check, and then you can obtain the bouds.
i hope it help :DLeave a comment:
-
talking in a sample.. you should put in the IsMDIParent = true
and when you make instances of the parent children, you whould write
Form forma2 = new Form();
forma2.MdiParen t = this;
forma2.Show();
that should work. :DLeave a comment:
-
replicating a IDBCommand conection
Hi everyone...
I just was wondoring if there's a way to replicate or Clone a IDBConnection in an application.. look I'm working in a team that is developing app clientes to a kind of DB, that provide us with connections and all functionality necesary, we send instrucctions to this object and it make them happen (because it should be able to work in diferentes DB engines and it should be transparent for the clients we make)... well,... -
-
Hi.
look, there are a few Objects in the framework... you can use them to know about your screen..
the main object to do it is the Screen Object. I use it to create a form that should not move out the screen...
if (this.Left > Screen.AllScree ns[Screen.AllScree ns.Length - 1].Bounds.Right - Properties.Sett ings.Default.ta manno.Width)
this.Left = Screen.AllScree ns[Screen.AllScree ns.Length...Leave a comment:
-
Code:/* these are my declarations: */ /// <summary> /// conection to db /// </summary> private IDbConnection conexion = null; /// <summary> /// command used in multiple queryes /// </summary> private IDbCommand command = null; /// <summary> /// reader to hold data
Leave a comment:
-
DataTable.Load gets blanks
Hi. I have a little trouble here.
when I use a IDataReader to get info from a DataBase, and try to put it into a DataTable (C#), I just get blanks. I have spaces for all the recods in the tabla where the reader comes from, buy I don't have data.
Any help will be appreciate.
Thanks
No activity results to display
Show More
Leave a comment: