|
Hi Tridip,
I would start checking which account is running Reporting Services on your server ; then I would check this account has at least read-access to the D:\Tridip_BBA... directory.
By default, Reporting Services run under a restricted account which hasn't got necessarily access rights to the file system.
As far as I can see, you're trying to export some data to the file system (CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(...) ) ; if that really is the case, you should give the Reporting Services account read and write access to the directory.
Hope this will help.
Kind regards.
|
|
|
|
|
Hi, I want to send three strings or a combination of strings and a int to a wcf server from a wcf client. Current collection types like Dictionary,Hash,Sorted etc. doesn't help as they only accept two types and not accept duplicates. Is there a special type for what I need or should I create a special class for this? Thanks.
To make it more clear. Here is what I want to transfer
Drink Qty Price
Tea 2 1,5
Coffee 1 2,5
Coke 3 2,0
|
|
|
|
|
Create a class to encapsulate this. The items you have here represent "physical" items and not generalisations as supported by enumerable classes. Wrap the class in a list and you should be good to go.
|
|
|
|
|
|
Hi,
If you are using .NET Framework 4, you can use the Tuple object.
It is a generic class, in your case you could instanciate and use it this way :
Tuple<string, string, int> tuple = Tuple.Create("string1", "string2", 3);
Debug.WriteLine(tuple.Item1);
Debug.WriteLine(tuple.Item2);
Debug.WriteLine(tuple.Item3.ToString());
Hope this helps. Regards.
modified on Friday, December 17, 2010 8:13 AM
|
|
|
|
|
TupleWare to the rescue.
5!
|
|
|
|
|
I may start organizing some TupleWare meetings at home... Will give feedback
|
|
|
|
|
Yup, Good Answer.
Take a 5
|
|
|
|
|
Thanks to both of you
I discovered this object a few weeks ago and found it quite useful for situations where creating a custom class would have caused an unnecessary overhead.
|
|
|
|
|
IMHO using Tuple s is a bad practice, similarily to Func and Action delegates. Things should have name. I don't like LINQ extensions for that - I need to remember order of parameters in all these Func s.
Greetings - Jacek
|
|
|
|
|
If you're not using .NET 4, you might want to try Generics as an alternative;
class SomeValue<T>
{
public T FirstValue { get; set; }
}
class SomeValues<T, U>: SomeValue<T>
{
public U SecondValue { get; set; }
}
class TooMuchValues<T, U, V>: SomeValues<T, U>
{
public V ThirdValue { get; set; }
}
static void Main(string[] args)
{
TooMuchValues<String, Int32, String> record = new TooMuchValues<String, Int32, String> ()
{
FirstValue = "Hello",
SecondValue = 1,
ThirdValue = "World"
};
Console.WriteLine ("{0}{1}{2}", record.FirstValue, new String(' ', record.SecondValue), record.ThirdValue);
}
You could add them to a List and enumerate them. I wouldn't recommend it outside prototyping-code though, as it doesn't improve readability (read 'maintainability').
I are Troll
|
|
|
|
|
Hi,
Pattern: \d+(?:\.{0,1}\d+)?
I wrote the above pattern to validate the below data
100
100.
100.80
Its working fine with the above data. But it is accepting "100/80" and "100 80" also..
Please help to resolve this. Thanks in advance.
|
|
|
|
|
Use "^\d+(?:\.{0,1}\d+)?$ " Instead.
Because you haven't mentioned starting and ending of the string.
so for 100/80 there will be two match 100 and 80. So that it will be validated as a true.
Hope it solves.
|
|
|
|
|
It is not validating "100."
|
|
|
|
|
I hope you want regex is based on some sense.
Are you sure "100." is a valid decimal or It has any meaning ?
If you want to pass 100. any way then use "^\d+\.{0,1}(?:\d+)?$ ".
|
|
|
|
|
this might help
\d+[.]{0,1}\d*
|
|
|
|
|
Have you checked it by value 100/12 , That's the problem of OP.
In your case it will return 2 Matches, Just need to wrap Regex in ^Regex$ to solve the issue.
|
|
|
|
|
Below one solved the problem. Thanks alot Hiren and Ravi
"^\d+[.]{0,1}\d*$"
|
|
|
|
|
HaroldVish wrote: Thanks alot Hiren
You're welcome, You can always rate the answer which helped you, That encourages the person to give answer.
|
|
|
|
|
its validating "50-99"
But it shouldn't
|
|
|
|
|
You should have asked this in the regular expression forum. It needs more traffic.
|
|
|
|
|
Ok, I didn't notice Regular expression has separate forum
|
|
|
|
|
Nobody does. It's why I was trying to boost the traffic to it and not do the usual stamp down hard on the poster thing.
|
|
|
|
|
Hi,
I am trying to do a search in VSTO Word add-in 2007 from background thread or background worker. I'm getting an exception "External component has thrown an exception".
Range range = document.Content;
Find findSpell = range.Find;
findSpell.Text = "test";
It works when I invoke it directly from the same thread.
Is there any possibility to do this in background thread because this is lengthy operation?
PS
I'm trying to achieve similar functionality as spelling and grammar
|
|
|
|
|
How Can I Upload and Resize Image in PHP?
|
|
|
|