microsoft

WF, WCF and Declarative Services (or: What does Microsoft mean by "declarative"?)

I've made this Community Wiki because some may think it's open to debate and others might think it's a question of using words to mean what they really mean (in other words, it's a matter of opinion whether it's a matter of opinion). There's a general question on SO about declarative programming, which has some great answers. But I'm a...

Trying to use the "Use Specific Printer" option in Access 2007

I am trying to set a report to use a specific printer. I go into design mode, click on the page setup ribbon, click the page setup bottun, go into the page tabt, click the option to choose a specific printer, and then click the printer button to choose the printer I want to use. I save the steps and exit out of the report, but it sti...

How can you add vertical line for data point in the new Microsoft Charting Control

So I am using this fancy new charting control. More info here I have data displayed already. What I want to do is add a line seperator that is there every year. Basically vertical red line on every jan, 1st? Any ideas??? Data points do not exist for each day in the year. It can be anywhere from 365 to 1 data point in between two year s...

Way to default the name of the generated XPS file?

If a user prints a report, and they happen to be using the Microsoft XPS printer, i would like the default the filename to something meaningful. i would have thought that the XPS printer would take the name of the print job, and use that as the default filename - but it doesn't. Is there some other, programatic, way to default the name...

Microsoft Sync Framework Alternatives

What do you use for data synchronization? I have been working with Microsoft Sync Framework for a couple months now and I'm not sure if I like it. The concept is great but I've had trouble with remote sync. There is no remote file sync provider, but I did manage to write one with a lot of trouble. There is also no way to show progress t...

Opinions on Microsoft Solver Foundation?

I looking into options for a linear and non-linear programming (optimization) framework. Requirements are: Support linear and non-linear programming problems with approx. 100-1000 variables and up to about 1000 constraints (I gather that is pretty simple). The non-linear problems have constraints involving multiplication or division ...

Program crashes when leaving a c++ function....What do you think it is?

Hi, I have a c++ code, I use MSC9 to compile it. It keeps crashing randomly. For example it crashes if it is called from Perl using `` but it does not crash when It is called from command line or from Ultimate++. I mean calling it from perl eg. f.exe arg1 arg2 arg3 Stack trace does not show much. Tracing the program line by line proved...

IR_TRANSMIT_PARAMS.TransmitPortMask values?

I have look around everywhere and cannot find any documentation about the values to put in TransmitPortMask of IR_TRANSMIT_PARAMS structure for use with IOCTL_IR_TRANSMIT. All the documentation says is that it is "A bitmask that contains ports to transmit on". Thus, I first tried: PORT1 = 0x1 PORT2 = 0x2 It did not work! Then, on ...

How do I find out what volume a given NTFS path is on when using mount points?

I have an Exchange server with lots of mountpoints. Given the path to the database files is there a way to find out what volume they are on? The problem is that they are typically not at the volume mount point, but further down the tree. I'm using Powershell, so I need a solution preferably using WMI but could also use any .NET or COM...

Get List of Files checked-out in Visual Source Safe 6.0

On a weekly basis, I need to generate a List of Files from my Visual Source Safe 6.0 server, which are in Checked-out State. The list should provide the Filename and the User ID which has checked-out the file. Is there any command-line program which I can use to achieve the above objective? Or is there any external tool/utility to do ...

csharp code to remove all extraneous microsoft html formatting

is there any way to programatically remove all microsoft html formatting that gets put on and simply render it as regular html. i want to remove all the extra tags as i am trying to load it into tinymce but tinymce doesn't seem to be able to render it. ...

OCX Build File Rule?

In my quest to use an OCX file as a resource in my project, I initially started to use Visual Studio C++ Express Edition which easily allowed me to add the OCX file as a resource and view/utilize its functions. However, upon upgrading to Visual Studio 2008, whenever I try to use the OCX file as a resource (in C++ mode) it asks for a bui...

grouping with order?

In WPF, I can group, but the default is group with ascending. One of my need to to be able to control the sorting of the group (Ascending or descending). For example: group 1 item 1.1 item 1.2 item 1.3 group 2 item 2.1 item 2.2 and also be able to switch to: group 2 item 2.1 item 2.2 group 1 item 1.1 item 1.2 item...

Sql statement teaser...

ok so this is what I am trying to achieve is to have two SELECT statements and then join results of each so I have something like this SELECT table.ID, tst.Value FROM blah AS table JOIN results AS tst ON tst.RUNID = table.RUNID WHERE table.RUNID IN ( ...// nothing important but in the end i get my tst.Value ) second statement is ...

Reading Microsoft tags

Hi, You guys are probably aware of Microsoft Tags. We have a barcode gun in our office and I would like to read these tags using C#. Any idea how I can go about doing this? Thanks ...

ASP.NET / C# Equivalent of Microsoft Source Code Analyzer for SQL Injection (MSSCASI_ASP)?

Microsoft Source Code Analyzer for SQL Injection (MSSCASI_ASP) is a static code analyzer for classic ASP VBScript code that can help identify pages that might have a sql injection vulnerability. That tool seems to only support vbscript ("The tool understands only ASP code that is written in VBScript"), and I think it only supports Class...

Microsoft Search Server Express - how to move all the databases?

I have just installed the excellent Search Server Express 2008 onto one of our servers. As a default all the databases created are put into locations on the c: drive. Does anyone know where all the databases are located and how they can be safely moved. ...

Filtering MS Sync Framework

hello been said filtering works with latest Microsoft Sync Framework version. so I used filter passing from client to server on server(sqlServer08 with change tracking enabled) I have SqlParameter filterParameter = new SqlParameter("@Institution_ID", SqlDbType.UniqueIdentifier); string customerFilterClause = "Institution_ID=@Inst...

How do I change the background color of an ASP.NET chart control?

When the chart control is rendered, the background color of the image is white. How can I make it another color (or transparent)? The area I am referring to is the white area between the black border and the chart background, as indicated in the following screenshot: ...

.NET and Microsoft Excel

Hi, I have developed an application which imports data into Microsoft Excel. Am using VS2005 + .NET 2.0 and Microsoft Office 2007 is installed on my machine (Office 12). The compiled application works fine if I run it in my machine, but when I deploy the application to other machines say those using lower versions (Office 2000), I am g...