|
SelvaKr wrote: Do we have any default IP address control in VS2008 or 2010?
No. There's not one supplied by default.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
|
Hello Everyone,
I have been using Crystal Report for at least 7 years, but I never got this below exception before, when I wanted to set report data-source :
Parameter Count Mismatch.
Note that, I converted my project from VS 2008 to 2010. I didn't have any problem like this in VS 2008 before everything was working fine. After conversion and change appropriate crystal report references, It doesn't work anymore.
Below is my code :
private void PrintInvoice(int accountId)
{
List<vwSalesModel> invoiceMdl = GetInvoiceInformationByAccountId(accountId);
if (invoiceMdl == null)
return;
using (frmReportViewer frmReport = new frmReportViewer())
{
rptInvoice invoiceReport = new rptInvoice();
frmReport.crystalReportViewer.ReportSource = invoiceReport;
invoiceReport.SetDataSource(invoiceMdl);
frmReport.ShowDialog();
}
}
Any Advice will be helpful.
Regards
SABER.
http://codeprojects.wordpress.com
|
|
|
|
|
Hi to all,
I write below code to create backup
but it doesn't work
ServerConnection connection = new ServerConnection(".");
Server srv = new Server(connection);
SaveFileDialog sfd = new SaveFileDialog();
if (sfd.ShowDialog() == DialogResult.OK)
{
Backup bkpDatabase = new Backup();
bkpDatabase.Action = BackupActionType.Database;
bkpDatabase.Database = txtDBName.Text;
BackupDeviceItem bkpDevice = new BackupDeviceItem(sfd.FileName, DeviceType.File);
bkpDatabase.Devices.Add(bkpDevice);
bkpDatabase.SqlBackup(srv);
}
|
|
|
|
|
I think you need to clarify with some more detail... your given code snippets is not enough to figure out what is wrong.
Thanks
Md. Marufuzzaman
I will not say I have failed 1000 times; I will say that I have discovered 1000 ways that can cause failure – Thomas Edison.
|
|
|
|
|
|
Better, but still needs some more.
What is the error message and which line of code generates it.
If you have no errors then you need to look into the event logs on the server to see if there are any messages from SQL Server.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
"One notable quirk occurs when you use the standard pass-by-value mechanism. In this
e, pass-by-value doesn’t create a copy of the object, but a copy of the reference. This refer-
e still points to the same in-memory object. This means that if you pass a Product object t
ethod, for example, the method will be able to alter your Product object, regardless of
ther you use pass-by-value or pass-by-reference."
Beginning ASP.NET 3.5 in C# 2008 (ISBN-13 (pbk): 978-1-59059-891-7) P.69
Can anyone provide a code snippet to demonstrate the above? If the above were a valid statement, wouldn't this be a bug in the .NET 3.5 framework?
Jon
|
|
|
|
|
It's true for strings and primitives. What are they passing?
|
|
|
|
|
I haven't tried it as yet, that's why I asked for a code sample, because I want to understand.
Jon
|
|
|
|
|
Pass by value and pass by reference:
Passing mechanisms decide how changes made to the parameter affect the caller.
Consider the following code snippet
Ex:
class MyClass {
public int value;
}
class Program {
..void funcPassbyValue(MyClass obj) {
obj.value = 10;
obj = new MyClass();
obj.value = 5;
}
..void func2PassbyRef(ref MyClass obj) {
obj.value = 10;
obj = new MyClass();
obj.value = 5;
}
.. Main() {
MyClass passedObj = new MyClass();
funcPassbyValue(passedObj );
Console.WriteLine(passedObj .value); //Outputs 10
func2PassbyRef(ref passedObj );
Console.WriteLine(passedObj .value); //Outputs 5
}
}
You can see both the methods funcPassbyValue && func2PassbyRef differ only in their signature.
Things which happen in common to both the methods: Any changes made to the argument to the method will be reflected back (condition is the changes are done while the parameter - in this case obj - is not changed to refer other object).
what does funcPassbyValue do differently: any changes made to the parameter (obj) will be local within the method and will not change (change here means to make it refer other object) the passedObj to refer other object.
Hope this clears your doublt.
what does func2PassbyRefdo differently: any changes made to the parameter (obj) will be reflected back to the caller in this case passedObj is changed to refer to the new object created inside the method.
|
|
|
|
|
|
Sorry but I don't think that is going to be acceptable. You expect someone to download your code (could be malicious for all we know) and run it to find out why it does not work. That's your job, when you have identified the problem area or have an error message then come back with the details.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi all,
I search on CP how to have new posts on a message board emailed to me without success (obviously).
Yes, I know that this may get the "what does this have to do with C#", etc., but it's somewhat related. Essentially, since I have asked enough dumb C# questions, maybe now I'm beginning to have the answers to some of the other dumb C# questions that are asked and therefore I could assist. However, the bigger reason may be I don't want to miss out when someone asks a really dumb question. (of course this could be one of those
Anyway, the RSS feed option doesn't work for my present situation and email would be nice, if possible.
Thanks.
|
|
|
|
|
There are three reasons you can get an e-mail that originated in a forum:
1.
you post a message and someone posts a reply to it;
2.
you post a message, with the "Allow private email replies to this message" checkbox checked, so the "Email" widget next to the "Reply" widget is present; when pressed by someone, the reply is not published, it is emailed to you.
3.
someone posts a message on your personal blog/forum, the one on your profile page.
Conclusion: when not on your profile page, a new thread will not result in an e-mail to you. If you want to know what goes on on a forum, you have to browse the forums.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Thanks. I've been on a couple of forums in the past where you could at least get a daily email indicating new posts for the previous day.
Oh well......
|
|
|
|
|
Since there are a large number of forums on this site (there are 25 programming forums alone!) most of which receive at least one post a day, and some of which receive hundreds of posts a day, I for one am glad we don't get an auto email each day (or worse each post) to say that the forum has changed. I would never have time to read my real emails!
What about QA? Should we get am email when anything is posted there as well?
Just note the numbers in the top left: 7 Million members, 21,000 online. Notification on change is all very well with a quiet site, but here? No thanks...
Did you know:
That by counting the rings on a tree trunk, you can tell how many other trees it has slept with.
|
|
|
|
|
If someone wanted to inflict themselves with a daily single email per forum that shows 100+ lines of titles for new threads, does that sound so bad?
I know my boss gets probably 25+ emails a day for enlargement techniques.
While he may continue to be frustrated, which I cannot help, I know that if I could get a single email from the C# forum I could conceivably prevent frustration.
But alas, I am also fine with searching through the threads. Just am doing it typically with a decent amount of leadtime.
|
|
|
|
|
mprice214 wrote: If someone wanted to inflict themselves with a daily single email per forum that shows 100+ lines of titles for new threads, does that sound so bad?
For that individual no.
For the poor Hamsters having to organize the Emails for, lets say 10,000, members - not so good.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
Why do programmers often confuse Halloween and Christmas?
Because 31 Oct = 25 Dec.
|
|
|
|
|
I figured the hamsters were all the silicon gates that open and close, depending on what the software guys tell them what to do.
I don't think the question was that perverse
It stems from having participated in other forums and is not a unique brain child of mine .
|
|
|
|
|
So, you get 7,000,000+ emails going out, potentially with 1000 lines of titles here (some of the forums are very active). That's a lot of infrastructure needed there. Chris and the team have enough on their plate right now (BTW - if you want to discuss something like this, you should choose the Suggestions forum).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Uncle!
I understand it's not a "flick of the switch".
I'm not suggesting that they do that either. I initially asked how and if it could be done, that was all. Just because I had come across this functionality on other forums doesn't mean that I think CP should be shut down until it does have it.
It's not worth it to me to suggest it on the Suggestion forum.
If Luc wouldn't get all over me about removing messages, I probably would.
|
|
|
|
|
Oi. I suggest you stop this thread here and now; it has been answered and dealt with. No need to add or remove anything.
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|