Try using one event so the other clients know that they need to refresh their data. I don't think u have a refference to the data, but u have a ref to the object, so the properties of ur client ref object will change when u call them again, not when some other client set them .You still have to deal with concurency. I hope u undestand, my english is bad.
MBGeorge
Posts
-
databinding over remoting -
Bulk Copy Tables from .net to sqlTo transfer/export/update ur data u could use SqlDataAdapter , witch is viable for small opeartions. If u plan to transport/export large number of rows u have 2 options : 1. u can create a dts on ur sql server who use as entry data a txt file separated with tabs. This file u can create from ur app and then call ur dts (use DTS - namespace, u must add msdts.dll ( i think ) as ref ) 2. use bulk insert with a user with rights to bulk insert on sql server , using as data source a txt file. ( use SqlCommand and bulk insert from T-Sql) If sql server is on other machine, u will need a way to transfer ur files to that machine. Hope that helps.
-
Get Excel-Word refIs any way i can get a refference to a allready running Excel/Word application from c# and use that ref to work on the open document ?
-
Add thousand separator and keep decimal precisionYou could use something like that ... string m_value = "12347890123456789,57"; string strhi = m_value; string strlow = ""; int DecLocation = m_value.IndexOf(","); int StrLen = m_value.Length; if ( DecLocation >=0 ) { strhi = m_value.Remove(DecLocation,StrLen-DecLocation); strlow = m_value.Substring(DecLocation+1,StrLen-DecLocation-1); m_value = Separ(strhi)+","+strlow; } else m_value = Separ(m_value); private string Separ(string str) { int i = str.Length/3; int maxlen = str.Length; if ( i*3 == maxlen) i--; string newstr = str; for(int j=1;j<=i;j++) newstr=newstr.Insert(maxlen-j*3,"."); return newstr; }
-
Crystal Report throw and exception??try using this, http://support.businessobjects.com/communityCS/TechnicalPapers/crnet_deployment.pdf[^] for me it worked.
-
Fetch file system infoU can obtain that using WMI. try on www.csharphelp.com/arhives3/arhive585.html?ptintable=yes. Is 2nd part for WMI and there u will find a full application source code - see list of logical drives in that app. Hope this will help u .
-
Host app in C#Anyone have any ideea how to host other application in .net ? I start the word/notepad/cmd using process but i want my app to host it not the windows, something like mdi forms; when i minimize the hosted app i wanna go at base in my form not in windows. Thanks in advance .