.net

How can I use DOT files to export data's?

Hi, I need to export data into a word doc using ".dot" models, with an application written in asp.net. Can you give me some links to learn this trick? I'm sure is it possible without any external libraries. Thanks to the universal knowledge ;-) ...

Iterative Algorithm for Red-Black Tree

Can anyone please suggest me any pointer to an iterative algorithm for insertion and deletion into a Red-Black Tree? All the algorithms available in .Net/C# are based on recursion, which I can't trust for handling very large number of data (hence large number of recursion depth for insertion/deletion). Does anybody have one based on iter...

Why is this code consuming more and more ram?

public partial class Form1 : Form { bool AfterDocumentCompleted = false; int steps = 0; public Form1() { InitializeComponent(); webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(DocCompletedHandlerCopy); webBrowser1.ScriptErrorsSuppressed = true; } private void ...

Singlethreaded application shows race condition like behaviour

I have a big (~40mb) collection of XML data, split in many files which are not well formed, so i merge them, add a root node and load all the xml in a XmlDocument. Its basically a list of 3 different types which can be nested in a few different ways. This example should show most of the cases: <Root> <A> <A> <A></A> <A...

Access SAP R/3 data directly from VB.NET

We have an assignment to create some XML outputs from data in SAP R/3. We are using SAP .NET Connector, for doing this. The problem we are facing is that there are some fields which are not exposed by any standard BAPI. Unfortunately we cannot create customized BAPI on this particular system. We are therefore restricted to whatever stan...

COM+: NotImplementedException

I'm trying to instaniate my own COM+ component (running as a library application) without success. All I get is a NotImplementedException when I try to create it dim myComponent As New MyComponent() The stack trace is not of much help: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr ...

What are the advantages and disadvantages of using Quartz.net over the windows scheduler?

For daily tasks, such as converting csv files to excel files; creation of excel files (the contents of which are created using financial methods); moving and copying of files; calculation of daily financial and risk analysis metrics; and (this list will grow over time and will become more complex..) Is Quartz.Net more suitable when...

Running multiple C# Task Async

Hi normally I would do this with a Background Worker, but I would like to do it with C# Task instead, just to understand Task better. The thing is that I have a class with the following properties private int _number1; public int Number1 { get { return _number1; } set { _number1 = value; OnPropertyChanged("N...

CLS compliant types in P/Invoke helper assembly

Having a separate helper assembly containing only P/Invoke declarations for legacy 3rd party components, I wonder which of these two ways is The Better One™ if the assembly must be marked CLS compliant: Use Int32 in a public P/Invoke declaration where the unmanaged declaration has unsigned int. Use UInt32 in an internal P/Invoke declar...

Using Linq Aggregate to return array of values

I have something like this: long[] f = new long[4]{1,10,100,1000}; I want to divide 1000 by 100, 100 by 10 and 10 by 1 Is there a way to return results in an array with the results eg/ 10,10,10 UPDATE: This seems to confuse a few so here is another example long[] f = new long[3]{1,2,6}; I want to divide 6 by 2 and 2 by 1 with the ...

Compressing XML File

All, I have a requirement to Compress an XML file. At the moment I am using C# and the gzip algorithm in the .NET Classes. I does compress it but not at the rate I would like to. For example a 12MB file was compressed to a little less than 4MB. Is there any other way to compress it more than that? Speed of compression / decompression i...

Utilise Visual Studio Theme in Add-In

Is it possible to utilise the current Visual Studio theme within an Add-In? I'm using Visual Studio 2010 and want to use the dark and light blue colouring of the environment to colour certain controls within my addin. ...

Office 2003 interop with only Office 2010 installed

We have an application (.NET 2.0) that uses Outlook 2003 features (Microsoft Office 11.0 Object Library). My new computer has Windows 7 and Office 2010 installed, and the references don't work anymore (there's only Office 14 Object Library available). Is there any way to use Office 2003 dlls when Office 2010 is installed (I've heard th...

.NET Block Diagram Component

I'm looking for an affordable diagramming component for a C#/.NET (WinForms) application that will let users create diagrams like this one: What would you recommend to me? ...

Generate data bbase structure from classes

I am creating an applikation which shall run on different platform (pc, protable, web). The Basic data structure in this application is allways the same but as an asp site I would like to use an sql server data base, on portable device XML and on PC may be an acess data base. There for I created a basic data layer like the folowing Pers...

Determine what is blocking UI thread

Hi All I am working on a rather large .NET WPF real-time application. The application is working great and as expected, except for one BIG issue - UI Update is slow. This application is highly event driven, there are events raised all over for all sorts of things - through these events the UI is updated. One or many of these events is...

Forwarded Types in Microsoft Unity

How to use single component for multiple services in Unity Framework? In Windsor it is configured in the following way: var container = new WindsorContainer(); container.Register(Component.For<Service1, Service2>() .ImplementedBy<Component>()); var service1 = container.Resolve<Service1>(); var service2 = co...

Extension methods don't work on subclasses?

Apparently, extension methods don't work on subclasses, or is it just me? private class Parent { } private class Child { } public static class Extensions { public static void Method(this Parent parent) { } } //Test code var p = new Parent(); p.Method(); // <--- compiler like var c = new Child(); c.Metho...

Attaching .txt files in .NET

I am developing a desktop application in VB.NET 2005. I have a requirement whereby a user need to select a .txt file from his machine (client) and after clicking the save button, i need this file to be saved in the server into a specific folder. Similarly, i should be able to retrieve the file as well. Please help on this requireme...

difference between Debugger.Launch to Debugger.Break

what's the difference between Debugger.Launch(); Debugger.Break(); ? ...