Is it possible that capabilities of Microsoft Excel be leveraged for offering an end-to-end professional quality reporting solution? Assuming we use processing capabilities on the server side and rendering capabilities on the client side, can such a combination be used to replace popular commercial reporting solutions?
I will appreciat...
I've only been able to find a couple of people online mentioning this, and it seems to be as simple for them as adding the service reference.
However, when I attempt to add a service reference for my WCF service (which works correctly in a regular console app, so I have ruled the WCF out as the problem) I receive a host of errors.
War...
Suppose you have an array of 1000 random integer numbers and you need to loop over it to find the number 68 for example.
Using the new Parallel.For on a quad core CPU would improve speed considerably, making each core to work only 250 array items.
The question is: is it possible to interrupt the Parallel.For loop when the following con...
Hi all,
I have a WebBrowser control that is automatically logging me into a website and attempting to download CSV data automatically. Everything is working fine, except, when it tries to download the CSV data, it is popping up a dialog box, asking if I want to save the file or open it (just like in IE). What I am trying to do is automa...
I have an entity with a surrogate Id and a composite NaturalId mapped with FluentNHibernate. I make the natural id mutable marking it "Not.ReadOnly()". Something like:
public class EntityMap: ClassMap<Entity>
{
public EntityMap()
{
Id(x => x.Id);
NaturalId().Not.ReadOnly()
...
Hi I'd like to use System.Windows.Data.IValueConverter, but when I try to add a reference to System.Windows.Data in VS2010, I only see System.Windows.Forms and System.Windows.Presentation. What am I missing? I'm using .NET 3.5 (not the client version), and I think the library should exist for that version. Switching my project to .NET...
Hello,
I have an .Net app and it runs fast through about 2000 records that starts to go really slow. I'm trying to find the bottleneck and I was wondering if there is a good, possibly free but it doesn't have to be, tool or a way to find the bottleneck. I'm trying to find a list that isn't cleared out but I don't see it yet. I have VS ...
Hello everyone,
I need to remove (or at least change) the default gestures associated with the wpf standard commands.
Here's my problem :
I have a Datagrid (XamDataGrid from infragistics) to which i have associated a custom command I've created. That command uses the "ctrl-delete" gesture.
That works as long as I'm not editing the v...
How to receive strings from C# in Visual-C++ based .net DLL?
In C++ (using clr) I have this code:
#include "stdafx.h"
##include <Windows.h>
#include <string>
#include <windows.h>
namespace NSST
{
public ref class Wrapper
{
public:
Wrapper() {}
static void init_1(std::string a, std::string b){}
static void init_2(){}...
The more I see ref used in production code, the more misuse I encounter and the more pain it causes me. I have come to hate this keyword, because from a framework-building standpoint, it seems silly. When would it be a good idea to communicate to users of your code the notion of maybe changing an object reference/value out from beneath t...
So i work in clr, creating .net dll in visual c++.
I tru such code:
static bool InitFile(System::String^ fileName, System::String^ container)
{
return enc.InitFile(std::string(fileName), std::string(container));
}
having encoder that normaly resives std::string. but here the compiler (visual studio) gives me C2664 error if I str...
Right now I am porting a VB6 project over to C# and keep getting this error. Can't seem to fix it in the namespace.
Problem:
//Expected class, delegate, enum, interface, or struct
public string GetHostByAddress(long addr)
{
dynamic phe = null;
dynamic Ret = null;
HOSTENT heDestHost = default(HOSTENT);
dynamic hostname =...
In .NET, are private methods and properties enforced by the runtime or just by the compiler?
If you try to call another object's private methods, the compiler will throw an access exception. What if you manually manipulate the IL or try to call via reflection -- will you be able to? Also, does it vary by runtime version (1.1 vs. 2.0 vs....
Data stored in relation database with data constraints (for example maximum string property length). Clients use Data Access Library (DAL) to manage the data in ORM manner (repositories + data domain classes)
Where would you personally implement constraints?
For example:
Data domain classes:
class Person
{
private string _name;
publ...
I'd like to know if there is any simple way of running with MSTests a certain category of tests. I currently have some Unit and Integration tests. Generally, I just want to run Unit-Tests.
I know you can tag each test method with a category, but from what I've seen it seems like it is only useful if you want to create different tests li...
Hi there,
what are the differences between 32 and 64Bit .NET (4) applications? Often 32Bit applications have problems running on 64bit machines and conversely. I know I can declare an integer as int32 and int64(certainly int64 on 32Bit systems make problems). Are there other differences between programming an 32 OR 64Bit or a both 32 AN...
public void show()
{
ds = new DataSet();
ada = new SqlDataAdapter("select * from sys.tables", conn);
//ada = new SqlDataAdapter("select * from emp", conn);
//ds = new DataSet();
ada.Fill(ds);
}
private void Form1_Load(object sender, EventArgs e)
{
conn = new SqlConnection(@"Data Sourc...
Possible Duplicate:
Good linear programming library for C# ?
Is there any free open source .Net linear programming library available?
...
Let's suppose I have such "helper" methods used by some object.
private int MatchRegex(string regex, string input)
{
var match = Regex.Match(input, regex);
return match.Success ? Convert.ToInt32(match.Groups[1].Value) : 0;
}
private string Exec(string arguments, string path = "", bool oneLine = false)
...
I'm trying to find a file inside the system directory.
The problem is that when using
Environment.SystemDirectory
On a x64 machine, i'm still getting the System32 directory, instead of the Systemwow64 directory.
I need to get the "System32" directory on x86 machines, and "SystemWow64" directory on x64
Any ideas?
EDIT:
To find the S...