I'm going to convert an existing C# project, which writes an Excelfile with multiple tabs, to write ODS documents instead. I can open the existing Excel files in Open Office and convert them there, but this isn't a good solution in the long run.
Anybody know of any existing (preferably free/open source) API's that let you do this? Or if...
Hello everybody,
I'm working with big size images (for ex. 16000x9440 px) and cut some regions for other things. I'm getting an exception "Out of memory" when create a new Bitmap instance:
using (FileStream fileStream = new FileStream(mapFileResized, FileMode.Open))
{
byte[] data = new byte[fileStream.Length];
fileStream.Read(d...
This compiles:
class ReplicatedBaseType
{
}
class NewType: ReplicatedBaseType
{
}
class Document
{
ReplicatedBaseType BaseObject;
Document()
{
BaseObject = new NewType();
}
}
But this does not:
class DalBase<T> : where T: ReplicatedBaseType
{
}
class Document...
I attach to Outlook.Explorer.SelectionChange event. Event handler makes a call to an assembly that retrieves some data from web services. After one call to that assembly my event handler is no longer called when SelectionChange occurs.
Any ideas?
This seems to be somehow related to the assembly itself, not what it is doing. Simply cre...
Possible Duplicate:
What represents a double in sql server?
Is there an exact equivalent for the .NET Double type in SQL Server? Failing that, is there one which gives a good approximation?
EDIT: It looks like this link gives the most definitive answer:
Mapping CLR Parameter Data
...
There are a lot of good resources on how to set a password in Active Directory using .NET - but how would I do the same thing in Open Directory? Is there a way to programatically set a password in Open Directory using .NET?
...
I have a WCF service hosted in a windows service. This WCF service is only going to be used on the local machine so I have chosen named pipes for endpoint. However when I try to connect to WCF service from the client instantiated by JavaScript in IE, endpoint is not found.
However if I stop the windows service and run the executable (it...
Hello Everybody
Title explain my question exactly.I have no knowledge about Windows API and i always found it very very annoying.So is there native .net classes which will help us about global shortkeys determining ?
...
Hi,
I want to know the difference between self signed and certificate generated by certification authority.
I can easily create a self signed certificate for domain xyz.com then what is the difference between this certificate and the one generated by CA?
Scenario
Suppose a site xyz.com is secured with a certificate issued to xyz.com a...
I am trying to use a pair of Subject classes to fire away 2 sets of event sequences. The application is a drawing application, where one subject fires an onNext when the user clicks and the other subject fires an OnNext when the user doubleclicks. I have written GetClick & GetDoubleClick methods that return an observable for the above ca...
I'm using AutoMapper which is a great tool.
There's lots of examples converting from DataTable/IDataRead to DTO's but I can't seem to find any that convert the DTO back to a DataTable.
Is this possible? I've tried various things, but I think there's some difficulty with the creation of Rows - as you can't new them up.
...
Say I have some special class, WrappedDataTable, and I want to associate each WrappedDataTable with exactly one DataTable. Furthermore, I want there to be no more than one WrappedDataTable in existence for any given DataTable.
A colleague suggested I could cache my WrappedDataTable and use a factory method to access one, like this:
pub...
Good morning,
I'm shopping around for a dropdown list control that allows me to select multiple items. Something akin to the CheckedListbox, but in dropdown list form (I don't want it to take up a big chunk of the screen). At this point I'm pretty convinced there is no such control built-in .NET.
Note this is Winforms, not ASP.NET....
How can i convert to sql to linq . i don't understand nested select query. i need linq codes. Please help me:((((
SELECT @id=id FROM
(SELECT id,workorder AS workorderno ,CAST(jobseqno AS int) AS jobseqno FROM dbo.CTask
UNION ALL
SELECT id,workorderno,cardno AS jobseqno FROM dbo.NonRoutineCard
UNION ALL
SELECT i...
There seem to be cetain collection classes in System.Collections.ObjectModel as well. What is the difference between the collections under these two namespaces and in which scenario should we use System.Collections.ObjectModel ?
Thanks for your interest.
...
What is the most succint way of writing the GetMessages function with Rx:
static void Main()
{
Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
var messages = GetMessages(socket, IPAddress.Loopback, 4000);
messages.Subscribe(x => Console.WriteLine(x));
Console.ReadKey();
}
s...
Hi,
I'm trying to profile an app in c#, never done any kind of profiling before. I haven't been able to find much documentation on the profiler so far maybe someone here might know better.
I have an app that when I click a toolbar button, kicks off a background thread to fetch me some data. The data is then prepared and displayed on th...
This is more of a conceptual question than anything.
I have a base class called "RawReader".
It sets up the framework for classes to inherit it and read in specific data systems.
For example, I want an app read in a known format of FoxPro database, a CSV file, or a SQL database (there is about 8 more formats currently), then transfer ...
Hello,
I found a method for copying ntfs permissions information from one existing folder to a newly created one - I'm not sure if it's doing the work it should do. Maybe one can have a look at the method and give some comments:
private static void CopySecurityInformation(String source, String dest)
{
FileSecurity fileSecurity = Fi...