.net

Excel Automation works very slowly!

Hello, On my computer report is generated in about 3-4 seconds, and it was like this on all computers before. But recently on a couple of computers in the office report generating started to take 30-40 seconds. On other computers it is still fast. I tried to reinstall MS Office with no luck. For example, this code takes !!! 3 !!! seco...

How to catch exception from thread?

I am using a free .net telnet component (De.Mud.Telnet), which has several asynchronous methods you can call, and the component fires events when things happen. My problem is that the component is throwing an exception and I don't know how to catch it. There's no exception event, and the exception doesn't get thrown by my method call. ...

Epson OPOS ADK for .NET drivers for windows 7

Has anyone used Epson OPOS ADK for .NET for windows 7. i tried to install windows vista drivers on windows 7, since there are none available for windows 7, but it did not work. Please share any suggestions or ideas that might have worked for you. I am using a TM-88IV receipt printer ...

Corporate developers: Do you feel your code is adding value to the company?

I'm going through a phase where I'm not being productive at all. I find it hard to justify to myself getting paid six figures to sit in front of my computer and act busy. Management is completely disengaged, and the users as well. What do you do in this type of situation? I've taken to learning some deeper aspects of .Net and softwar...

.NET WCF service references use server name rather than IP address causing issues when consuming...

So, I'm a newbie to WCF... I created my ServiceLibrary and web-site project that consumed the ServiceLibrary. I am able to access the service by creating a proxy class from the WSDL that was generated using svcutil.exe and then used this class to access the methods in my service. All of this was fine on my local machine. I then moved t...

Reorder the wsdl:definitions in an ASP.NET web service

I am creating an ASP.NET web service that implements a specific existing WSDL. There are a couple minor differences that are probably not a big deal, but I would like to get as close of a match as possible. I am starting to think this isn't even possible. This first difference is the wsdl:definitions are in a different order, and have...

implement INotifyProperty changed on Static Property in WPF and Silverlight

The question is how to implement INotifyPropertyChanged on a static property because the event you implement is not static, and cannot be called by a static property. Also, you cannot bind to a static property in silverlight. I've seen this question pop up an a few forums with a variety of solutions, none of which were very satisfying. ...

GEO Location Database Updating Ambiguity

Hello. I have a staging database which stores the GEO location as the following structure : Countries Regions Cities Postal Code Longtitude Latitude I am getting the data from a vendor. The name is not relevant. The data comes in a CSV file, the columns are Start IP End IP Country Region City Postal Code Longtitude Latitude The fac...

.Net Error(The data area passed to a system call is too small)

Hi Am trying to execute ssis package using dtexec utility from c# app(Creating New Process, assign arguments to Info and finally Process.start(),while processing have come accross "The data area passed to a system call is too small" Error. System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) ** Note:it is fai...

Why should I use WPF over Winforms? Any examples of WPF outperforming Winforms?

There is a similar question at http://stackoverflow.com/questions/202079/wpf-versus-winforms which has some good information but in my personal experience I see no reason to use WPF over Winforms. With WPF initially there was lots of talk about it's multi-threaded functionality but in use I see no benefits. I have two applications that ...

C# RichTextBox Color parts of a string different colors

I'm trying to color parts of a string to be appended to a RichTextBox. I have a string built from different strings. string temp = "[" + DateTime.Now.ToShortTimeString() + "] " + userid + " " + message + Environment.NewLine; This is what the message would look like once it is constructed. [9:23pm] User: ...

Alternative to Thead.Sleep? in C#

I have another thread polling user input. This thread is the main thread and can sleep minutes at a time. If the user hits wants to quit it may be 2+ minutes before the console window shuts down which may feel not responsive. How can i make this thread wake up from Thread.Sleep? Do i need to use another function to sleep and pass in a b...

Why .NET code compiles to MSIL?

Hi All,First .NET code compiles to MSIL and then JIT convert it to machine dependent code. Can any one tell me what all benifits get because of the 2 step compilation.Thanks ...

Is there any method for making intermediate code of application platform independent?

I just want to convert my .NET application to linux application is it possible that the MSIL is converted to any machine code like apple intel etc. or can be executed on any os independent of architechture. ...

Capture multiple lines using Regular Expression (.Net)

I am trying to write a regular expression that can parse the text between < p >< /p > tags. There will be up to 3 lines of text in a row. I thought this might be possible using the (?= search ahead feature. The code that I am currently using to get one line is as follows. <p>([^']*?)<[/]p Is it possible to have one regular expressi...

PictureBox.Refresh() is slow when drawing in a PictureBox

I have a Windows Form Application in Visual Studio 2008 - PictureBox.Refesh() method causes a delay when drawing on a PictureBox. Is there any method that gives the same result without delay? ...

choosing a diagramming library for .Net

Hello, I have a customer who needs to convert a diagramming application (which was developed in MFC a long time ago) to C#. The application displays large networks (lots of graphical elements), and lets the user edit/manipulate the data through a graphical ui. I decided that it would be best to use a library rather than to develop all ...

Easiest Way to get id or link and updated date from a RSS feed?

I tried to use linq but failed because i have no xml knowledge. What is the easiest way to get the id or link and updated from an rss feed? (an example feed -> http://stackoverflow.com/feeds/question/1926343) I have no idea how to skip all elements until the first entry element. I also dont know how to pull each link and data from each...

Sharpsvn diff method is not working

I am trying to implement diff method using sharpsvn. My code snippet as follows private void Diff(string pSourcePath) { Uri UriSCPath = new Uri(pstrSourcePath); SvnClient DPISVN_Clnt = new SvnClient(); DPISVN_Clnt.Authentication.DefaultCredentials = new NetworkCredential("Biju","Biju"); try { ...

Null Entry Error

I have this code in my view: <%=Html.ActionLink("Approve", "NewsApprove", New With {ID}, DBNull.Value)%> in my controller: Function NewsApprove(ByVal dID As Integer) As ActionResult dTempNews.ApproveNews(dID) Return RedirectToAction("Administrator") End Function My problem is that it always return an error that says: The pa...