converter

Tool to help write Excel formulas and IF statements?

This is an Excel formula with nested IF statements: =IF((B2="East"),4,IF((B2="West"),3,IF((B2="North"),2,IF((B2="South"),1,"")))) To essentially accomplish this: If cell B2 = "East" return "4" ElseIf cell B2 = "West" return "3" ElseIf cell B2 = "North" return "2" ElseIf cell B2 = "South" return "1" Else return "" ...

WPF: how to use 2 converters in 1 binding?

I have a control that I want to show/hide, depending on the value of a boolean. I have a NegatedBooleanConverter (switches true to false and vice versa) and I need to run this converter first. I have a BooleanToVisibilityConverter and I need to run this converter after the NegatedBoolConverter. How can I fix this problem? I want to do ...

Silverlight XAML Binding -- Decimal to Double

I've got some Columns in a DataGridView that have their Binding property set to something like the following: Binding="{Binding NetPrice}" The problem is that this NetPrice field is a Decimal type and I would like to convert it to Double inside the DataGrid. Is there some way to do this? ...

Silverlight 3 ProgressBar Template

Hi All, I am trying to retemplate a Silverlight3 progress bar, to show the "Value" in a TextBlock within the ProgressBarIndicator, and the "Maximum" in another textblock in the ProgressBarTrack. I think that using TemplateBinding on the Value and Maximum properties would do this, but it isn't working. FYI the template I have so far i...

WPF binding with explicit conversion.

Hello everyone, My question may be a repeat of other conversion question but I feel mine is different. Here goes... [simplified example]. public class DataWrapper<T> { public T DataValue{ get; set; } public DataWrapper(T value) { DataValue = value; } public static explicit operator DataWrapper<T> (T value...

How to Convert &amp;&amp;++&#37;&#37 in html page to normal string?

I working in MFC and get the following code in html : &amp;&amp;++&#37;&#37 actually it is &&++%% here is a table of specialcharacters, is there any API's to convert this special character string into normal ones? http://www.degraeve.com/reference/specialcharacters.php Writting such code myself seems not safe enough. I thinks ther...

J2ME to WinMo Converters

I am interested in a J2ME to native WinMo converter (6.x, optionally 5.x). I have a working LWUIT application, using the following J2ME APIS: MIDP 2.0, CLDC 1.1, Optional (=runs also if JSR not supported, dynamic discovery): JSR 179 Location Personal Information Management (75) FileConnection (75) Wireless Messaging API (120), Mobil...

ppt/pptx converter to html or other format

I'm just wondering if anybody knows an open source project devoted to convert ppt (or pptx) file to an easy-to-render format - html, jpg or other picture type, pdf... I've developed some code to start reading an office file (I'm talking about the Compound Binary File) and now I've started to crack on the internal ppt streams like Pictur...

CMD: Bat to Exe Converter - Temp directory problem

Hello, i am using 'Bat to Exe Converter' to convert my batch files to exe format. Now, i am running into some problems. Whenever i convert something, and i set 'Working Directory' to 'Current Directory', and i start my exe in echo on mode, this is what i end up with to check if there is a specific file in the directory of my exe: the ...

Window cmd in trascoding process

hello experts , i'm tryng to capture the data from a cmd process (read the last line of a trascoding process show in a window type comman line, to put the bitrate data into a vb6 form with this data build a remainnig time and the progress) the expert WQW send me a source code using the scripting host object model. with this line i can c...

How to show collection elements as items in selectManyListbox?

I have a bean: public ProjectServiceImpl { public List<Project> getAllProjects () { ... } } I want to list all these projects as items in <h:selectManyListbox>. When user selects one or more items and press submit button, selected items should be converted into projects. I'm confused a little about how to list items and how c...

XStream: Collapsing XML hierarchy as I parse

I have an XML document (generated by Adobe XFA forms), that contains data like the following: <Position> <PositionBorder> <Title/> <StartDate/> <EndDate/> </PositionBorder> </Position> Since this file is defined elsewhere, I am not at liberty to change the format of the XML that I get. In my Java code, I cr...

Is there an Excel Chart Object to System.Windows.Forms.DataVisualization.Charting converter around?

Does anyone know if there is a tool that allows you to convert an Excel Chart object to an System.Windows.Forms.DataVisualization.Charting object (aka ASP.NET Charts) e.g. in C# using System.Windows.Forms.DataVisualization.Charting; ... var xlChart = xlWorksheet.ChartObjects.FirstOrDefault(); Chart chart = SomeConverterLibrary.Conve...

WPF - Converting to multiple properties possible?

I have a textbox and a checkbox, i would like to set three properties on the textbox based on whether the checkbox is checked or not. I can bind the properties to the checkbox but then i need to know what property is being bound in the converter. For example, when unchecked i would like the textbox properties to be AcceptsReturn="False...

How to convert m-files to dlls?

Hello, i Heard that you can convert a matlab m-file to a .net assembly, does any one know how? ...

JSF converter property

I am trying to register different converter instances in the faces-config, using a standard converter class to which different parameters are passed. The code below registers two DateTimeConverters, the first one for dates including time and the second one for time only. But the pattern property never gets set. Can this be done? <conve...

SQL to LINQ converter required, any idea ?

We have LINQPad which is great for testing Linq expressions targeting database. Can any one recommend "free ware" tool, that could help us convert "Sql Queries" to LINQ expressions and why you recommend it? NOTE: Please keep in mind, we use c#. ...

c# Converter from html to pdf, xls

Hi i'm looking for a free asp.net library for converting html in pdf, xls formats? thanks ...

Noobie WPF namespace and converter problem

Hi All, Please forgive the noob question but I'm going round in circles and need answers... Anyway, I've been looking at this article WPF: How to bind RadioButtons to an enum? but I just can't get the convertor to be recognised within the XAML file. <Window x:Class="Widget.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/...

Cocoa CurrencyConverter sample app, adding Currency formatter to dollar field

The CurrencyConverter sample Cocoa application uses unformatted text fields in the interface, and pulls the values using floatValue in the controller. I added a formatter (to Currency) to the input dollar amount field, but this breaks the application. I'm just learning Cocoa, and am assuming "floatValue" cannot handle the $ sign at the...