|
I'm pretty sure Crystal Reports supports XML asa data source, although I have not use it for serveal years so I may be wrong
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thanks for your reply.
I will try it.
|
|
|
|
|
Hi,
Do you have any example or link that will help for this?
And if I am using xml, then can I fire queries on that data?
Also can I show data from Variables into reports?
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Hai,
I saw the fisheye for list items in your forum. How to do same thing
for images..?
|
|
|
|
|
You seem to be confused. This forum is not for talking to the people who write the site, but to the whole community. I have a series of articles on image processing, not sure if any of them create fish eye images, although I've written code to unfisheye images before. What did you see and what do you want to do ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i have problems to count the black pixel in the image. That image must be splitted in 4 zone and i must calculate each zone's balck pixel.. can anyone help me with your skills in c#. please..thanks in advance...
|
|
|
|
|
Read my first image processing article for how to do this, it's pretty straightforward. It's here on CP
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
VS 2008.
I have the following code in the SelectedIndexChanged event of a combo box.
<br />
DataRowView drv; <br />
drv = (DataRowView) this.bsRedialedNumbers.Current;<br />
<br />
if (!drv.Row.IsNull("Number"))<br />
{<br />
phoneNumber = drv["Number"].ToString();<br />
name = drv["Name"].ToString();<br />
}
I have the combo box and a button. The user will select a name from the comb box and click a button to do something with that name. However, I have noticed that when I click to change an item in the combo box the event will fire once. Which is correct. However, when I click the button, this event will fire twice.
When the event fires for the second time it will give a -1 for the row. Which is not what I expect. As an item has been selected.
To do a quick fix for this problem I check for IsNull on the number column. Which works. However, I would like to find a complete solution for this problem. At the moment I haven't found one.
The reason I think the event fires twice when the button is click, is because the combo box has lost focus. But cannot see why this would fire the combo box. And why it would return a -1 for the row.
Many thanks for any suggestions and help,
Steve
|
|
|
|
|
Yes, a lot of events are like this, a radio button's check changed is another - it fires twice because a deselect fires, as a select does. I guess a deselect occurs as part of the sequence, hence the -1.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi
I have an object which contains members, I use the GetMember(name) to retrieve my MemberInfo. How do I get a reference to this member object?
David.
|
|
|
|
|
I have a bound DataGridView on a form with the CausesValidation property set to true (as I want). The CausesValidation property of the form is false. When I click on the Control Box 'x' to close the form, the 'RowValidating' event of the DataGridView fires, and even if I execute a Cancel in that event, the FormClosing event still fires. Ideally I would like to either have the Control Box 'x' not cause the 'RowValidating' event of the DataGridView to fire, or have the Cancel in the 'RowValidating' event prevent 'FormClosing' from firing. Does anyone know if either of my preferred "solutions" is feasible when the DataGridView has its CausesValidation property set to true?
Thank you...
|
|
|
|
|
Hello
I want to know if is it possible to avoid the pop-up of a contextmenustrip (below mentionned as ctxs)
Explaination :
In a Picture Box I've defined a ctxs
Mousedown right doesn't display it
Mouseup right display it
I want to avoid the display if during the mouse down the user made a signifiant mouse move
Any idea ?
|
|
|
|
|
Hi baranils,
Here is my suggestion(please point out if i misunderstanding your question)..Get the mouse down location and compare the mouse up location, if there are different, don't display the contexmenustrip. Below is sample code:
private int x,y;
private void Form1_MouseDown(object sender, MouseEventArgs e)
{
x =e.X;
y =e.Y;
}
private void Form1_MouseUp(object sender, MouseEventArgs e)
{
if (x == e.X && y == e.Y)
{
contextMenuStrip1.Show(this, e.X, e.Y);
}
}
Hope this help
|
|
|
|
|
Thank you !
But this is not the solution
My problem is not in the logic to apply
My problem is HOW to control the AUTOMATIC popup of a contextmenustrip !
|
|
|
|
|
baranils wrote: HOW to control the AUTOMATIC popup of a contextmenustrip
I dun understand it?
|
|
|
|
|
Hello
If a define a contextmenu strip
I assign it to the control I need (a picture box in this case)
That's all !
After that I normaly have no control on the display
It shows up automaticaly on the MouseUp event
So my question is not how to manage the logic between event but how to avoid the automatic pop-up if needed !
|
|
|
|
|
hi baranils,
I am not sure that,normally i am using event handler to control pop up contexmenustrip. Or i will add the code like this.contexmenustrip = this.contexmenustrip1 in form.designer (this will automate the pop up of contexmenustrip),Or there have a properties call autoclosed to control pop up.
Sorry that if i cant help you
|
|
|
|
|
Hello
FYI
This is the solution
In my form, I declare a bool attribute : DisableCtx;
Set to true or false depending the context
And I use the opening event
ctxmnuPB.Opening += delegate(object sender, CancelEventArgs args)
{
args.Cancel = DisableCtx;
};
|
|
|
|
|
Hi,
Thanks for sharing your knowledge
|
|
|
|
|
Hi everybody,
I'm feeling a bit dumb here - right now I'm learning some of the nice features of C# 3.0 and can't get this code to compile:
public class Customer
{
public int Id { get; set; }
public string Name { get; set; }
public string City { get; set; }
public Customer() { }
}
List<Customer> listOfCustomers =
new List<Customer> {
{ Id = 1, Name="Dave", City="Sarasota" },
{ Id = 2, Name="John", City="Tampa" },
{ Id = 3, Name="Abe", City="Miami" }
};
Errors are, for each item in the array:
The name 'Id' does not exist in the current context
The name 'City' does not exist in the current context
What's wrong with this code? I've taken the example code from this site[^]
I'm using VS 2008 with .NET 3.5 as target platform.
regards
modified on Tuesday, May 13, 2008 3:11 PM
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg,
Are you trying to build a List of Customers?
public Customer(int id, string name, string city)
{
Id = id;
Name = name;
City = city;
}
List<Customer> new List<Customer> {
new Customer(1, "Dave", "Sarasota"),
new Customer(2, "John", "Tampa"),
new Customer(3, "Abe", "Miami")
};
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
Gareth H wrote: Are you trying to build a List of Customers?
Argh, I forgot to replace the < and > signs with their html code.
Yeah, I want to create a list of customers.
But the example on the site I mentioned does create this list without using new Customer() at all, and this does not compile on my machine.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Greeeg,
Am not sure. Seems this is a compile setting, I have never seen it before.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
He's got himself all confused to put it bluntly. You can initialise collections using the new expressions, however you have to do as Gareth H pointed out, i.e.:
var customers = new List<Customer>()
{
new Customer() { Id = 0, Name = "Dave", City = "Sarasota" },
}; Where he's got mixed up is with the anonymous types, you could if you don't need to use the customers outside your existing method do the following:
var customers = new[]
{
new { Id = 0, Name = "Dave", City = "Sarasota" },
new { Id = 1, Name = "Ed", City = "London" },
};
foreach (var customer in customers)
{
Console.WriteLine("{0} [{1}]", customer.Name, customer.City);
} Which means you don't have to explicitly create a class to hold the data. However as I mentioned you cannot pass this data (directly) to another class or even function within the same class. What the compiler does is generate a "random" new class automatically (something like <>A_$72832$ for example, which is illegal in anything but IL).
But you can't mix the two, although it would save a little typing.
I doubt it. If it isn't intuitive then we need to fix it. - Chris Maunder
|
|
|
|
|
Thanks. Seems like the author of the article didn't even check the code he was writing
regards
modified 12-Sep-18 21:01pm.
|
|
|
|