|
That would be a question for whoever maintains that server
|
|
|
|
|
Hi Iam using VS2010 Widows Applications. rdlc reports, reportviewer control.
With my report, I have a textBox Value like the below
=FormatNumber(First(Fields!inv_grand_total.Value, "DataSet1"),2)
It's showing the output like
10,368,785.44
But I wish to have
1,03,68,785.44
Is it possible..? Thanks
|
|
|
|
|
You could try writing your own FormatProvider as in this example.
The good thing about pessimism is, that you are always either right or pleasently surprised.
|
|
|
|
|
Try setting the Language property of your report to "hi-IN".
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I want to algorithm is filtering to send by the server in format text in a single line that contains lasted of calls number calls and calling and taxation of calls and other fields; I want to do a filtering and I take as some fields that need and classify it in a table; and the flue periodically send by the server to your pc
|
|
|
|
|
|
Sure! And what we all want here are some developpers who dare to think about their requirements, and start coding according to these requirements, instead of thinking anyone would accept to do their job for free.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
Have a lull at work and heard cool things about Rx, so I started looking into it. I've only spent a few hours, but I don't get the point. I get that its "push" and "observable" "streams" of data... and I'm seeing there are kind of cool ways to process the streams (batches, timeouts, etc), but what are you guys using it for in the real world apps? All the samples I'm seeing are pretty much stock tickers and auto-complete text boxes.
|
|
|
|
|
Probably the biggest thing I use it for in my codebase right now are watching model changes raised via INPC so that I can trigger dependent operations happening. I also have places that I'm using it for message filtering (not throttling), so I can have messages coming into one location which is injected into other models or ViewModels, and those classes can then pick out the messages they are interested in via the subscription. This gives me the option to easily do things like add logging for certain messages while ignoring others, and it's handled all in one place.
|
|
|
|
|
You mean something like:
SomeViewModel : ViewModelBase
{
string SomeProp { get ... set ... }
}
and watching SomeProp from within SomeViewModel? Wouldn't you just add code to the setter? I guess breaking out the dependent task from the setter is "cleaner"... maybe?
I do use an event aggregator for sending messages between VMs. Rx would provide some nifty features built in for batching, etc.
I dunno, I write mostly business apps, so I'm having trouble wrapping my head around what a real world "stream" would be. Aside from stock tickers and auto complete lol.
For logging, I just wrote something similiar to nLog that plays nice with my custom MVVM framework.
Could you maybe describe a specific example from one of your apps where you were just like "Dang.. Rx was born to solve this"?
|
|
|
|
|
The scenario is this. We have one feed of data that contains many different types of messages in it. Each of these messages is handled by a different ViewModel because of the way that the screens work. So, each ViewModel "subscribes" to the appropriate message in the model via RX (it's the same model across all of the VMs), and picks out the messages it needs. We have extended RX slightly so that we can shape the data as well - some of the VMs actually take moving aggregates out of the underlying model data. And yes, "dang, RX was born to solve this".
|
|
|
|
|
Are you "allowed" to say what type of data it is / business domain? That's the part I'm trying to figure out LOL. Aside from the shaping, what you described above is event aggregator. Everybody always uses the stock ticker to explain RX. That you might get 20 ticks / sec, but for display purposes, you only need 5 / sec or whatever. So yeah, RX will help you out there... I guess I'm just trying to find some real examples besides the stock ticker. One example I found yesterday was for throttling emails. That's all well and good, but you don't generally throttle emails in the real world. Maybe getting a data feed from a hardware device but I don't work with hardware...
|
|
|
|
|
It's data for the emergency services. Typically, we could see about 40 to 50K messages every 10 seconds. Different parts of the application suite need different parts of these messages.
|
|
|
|
|
je veut algorithme fait filtrage de donner envoyer par le serveur en format document texte en un seul ligne qui contient duré d'appelle nummero appellle et appellant et taxation d'appelle et des autre champs ;je veux faire un filtrage et je prend que quelque champs que le besoin et classer ce donner dans un tableau ;et ce flue envoyer périodiquement par le serveur a ton pc ;
|
|
|
|
|
This is an English speaking site.
Translated:
I want to algorithm is filtering to send by the server in format text in a single line that contains lasted of calls number calls and calling and taxation of calls and other fields; I want to do a filtering and I take as some fields that need and classify it in a table; and the flue periodically send by the server to your pc
|
|
|
|
|
That's the translated version?
|
|
|
|
|
Yeah, I was thinking the same thing.
|
|
|
|
|
|
Hello,
I'm new to c# but I have lots of programing experience, mostly with Delphi, and C.
so what I am trying to do is simple
take this string "1/32" ..
look for the "/" .. everything before that is the numerator, everything after is the denominator..
so I can't seem to get this simple code to work! What on earth am I doing wrong? Any help understand what is causing the out of bounds exception for the denominator would be most appreciated.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ScaleCalc.scaletoolsutility
{
class testScaleCalcUtils1
{
static void Main()
{
string stw;
string st1 = "1/32";
stw = st1.Substring(1,st1.length -1);
stw = st1.Substring(2, 3);
Console.WriteLine(stw);
}
}
}
modified 18-Mar-15 23:04pm.
|
|
|
|
|
Indices in strings are zero-based.
So, when you write stw = st1.SubString(1, st1.Length - 1); , you get "/32" (this line compiles well for me, btw).
But, when you write stw = st1.SubString(2, 3); , you are trying to get 3 characters from st1 starting from "3", which obviously leads you towards the end of the string.
You may use String.Split() instead:
string st1 = "1/32";
string[] parts = st1.Split(new char[] { '/' });
int numerator, denominator;
if (!int.TryParse(parts[0], out numerator)) {
}
if (!int.TryParse(parts[1], out denominator)) {
}
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
Great info - thanks so much!
|
|
|
|
|
You're welcome
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
I wish to be able to detect when a device is connected to a serial port, and if I have many serial port devices, I wish to detect the last device connected to a serial port.
Can someone please tell me how can I do this?
Any sample code will be greatly appreciated.
Thanks.
|
|
|
|
|
|