|
Thanks for the feedback, Chuck. I appreciate it.
|
|
|
|
|
I'm using a stored procedure (proc) for the SqlDataSource1 of my local report (rdlc). I've changed my proc to include an additional field. When I try to edit my local report to add the new field, it does not show up in the dataset or fields under the expression buider. How do I get the dataset to recognize my new field.

|
|
|
|
|
Yes.. this is really a problem with rdlc console.
I think you need to clear the existing dataset from the report to continue.
Right click on rdlc report -> Open With Xml Editor
After you open find <Dataset> and remove its content. Now open the report, add any field to the report, your dataset will be added again with all the fields. (You can also update the report xml with your new field)
Note: Before you do, backup your existing dataset to avoid corrupt of the report.
|
|
|
|
|
I edited the xml, which solved the problem. Your the best. Thank You very much. 
|
|
|
|
|
Thank you so much...
Cheers.
|
|
|
|
|
Hi there sorry to be a pain again, but is there any simple way of tracking the progress of a object deserialisation??
|
|
|
|
|
What do you mean ? Serialisation takes place in one step, AFAIK.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
yes i know serialisation takes place in one step what i need to know is how much of a file it has deserialised as i need to display the percentage to the user while it is deserialising the file (on a background thread)
|
|
|
|
|
Are you deserializing a huge file ??? Actually we deserialise objects which are smaller in size and it takes just a moment to deserilize. I dont know if there is any option as you are not reading the file in bytes. if you read it so, it would also take such a negligible time so that no progress is displayed over screen..
Why do you require such thing. Rather if you are deserializing a collection of objects, you can deserialize each of them, one by one and do generate one event to send percentagecomplete value.
|
|
|
|
|
private void btn_Next_Click(object sender, EventArgs e)
{
Plugin p = new Plugin();
nextImage = nextImage++;
string _Ext = p.Ext;
ass = Assembly.GetExecutingAssembly();
imageStream = ass.GetManifestResourceStream("NameSpace.Images." + nextImage + _Ext);
pictureBox1.Image = new Bitmap(imageStream);
this.btn_Previous.Enabled = true;
if (nextImage == p.End + 1)
{
this.btn_Next.Enabled = false;
}
}
I'm wondering how to write this to make it work, and make it clean, any suggestions?
|
|
|
|
|
DarkKitten wrote: nextImage = nextImage++;
Weird. You should buy a beginners C# book and read it.
DarkKitten wrote: I'm wondering how to write this to make it work, and make it clean, any suggestions?
When I've done this, I've wrapped the calls to getting resources from the application in a method so I pass in the name and get out the image. Beyond that, you could use useful variable names. What on earth is Plugin, and why do you create one every time ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: DarkKitten wrote:
nextImage = nextImage++;
Weird. You should buy a beginners C# book and read it.
hehehe, I can usualy write C# code.. I wrote a game emulator with C#..
This is my first attempt at writeing an image viewer and bam i'm having issues weird..
and plugin is the Class.cs that contains information, like the public int for what the Start Image number is, the Extention of the image, ect..
|
|
|
|
|
DarkKitten wrote: hehehe, I can usualy write C# code.. I wrote a game emulator with C#..
Then you wouldn't do nextImage = nextImage++; , you would just have nextImage++;
Furthermore, you stated (unless I misunderstood) that the Plugin instance you create each time the method is called contains the count for nextImage.
Fair, but then wouldn't you have
plugin p = new plugin();
p.nextImage++;
this.nextImage = p.nextImage;
Without seeing your code I think there might be some confusion as to variable scope, as well as class / object variable names. All in all this code is very hard to read, and impossible (for me) to figure out what it is you are trying to do.
I'd say go for that book.
|
|
|
|
|
DarkKitten wrote: I wrote a game emulator with C#..
I find that hard to believe. If that is true, you've learned some things, but missed some basics. Go back and buy that book.
DarkKitten wrote: and plugin is the Class.cs that contains information, like the public int for what the Start Image number is, the Extention of the image, ect..
So, it's reset to 0 every time because you create a new object. Again, buy a book.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi
How can i use a function in classes when that function exist in codebehind of a form ?
and :
I use -private void checkBox1_CheckedChanged(object sender, EventArgs e)- in codebehind;
Now i want to use checkBox1_CheckedChanged in another event again;
but compiler doesn't allow me and compiler error me that argument is necessary.
What should i do?
|
|
|
|
|
You must pass the correct argument to the method or of course you'll get compiler errors.
A better approach may be to create a method that can be called from the CheckChanged event
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Use checkBox1_CheckChanged(Methis, EventArgs.Empty); to call that method
As for
farokhian wrote: How can i use a function in classes when that function exist in codebehind of a form ?
Those are partial classes and can be called as any other function provided the form exists.
Edit: Sorry about the Me, it's been a long day.
modified on Tuesday, November 10, 2009 3:44 PM
|
|
|
|
|
Only ASP.NET has codebehind.
You should post code and the actual error message so we can work out what you mean. Use this and EventArgs.Empty to call an event, but I think it makes more sense to factor out the common code to a method.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi
after i unzip file and try to copy him, i get error process is used
by another program
what can be the problem ? (work on WinForm - C#)
ZipInputStream sampleInputStream = new ZipInputStream(File.OpenRead(UnZIP_ZipFile));
ZipEntry sampleFile = null;
string sampleOutputDirectoy = UnZIP_RegFile;
int sampleSize = 2048;
sampleInputStream.Password = "12345";
while ((sampleFile = sampleInputStream.GetNextEntry()) != null)
{
sampleSize = 2048;
if (Path.GetFileName(sampleFile.Name) != string.Empty)
{
string sampleFilePath = sampleOutputDirectoy + @"\" + sampleFile.Name;
FileStream sampleFileStream = File.Create(sampleFilePath);
byte[] sampleFileData = new byte[sampleSize];
while (true)
{
sampleSize = sampleInputStream.Read(sampleFileData, 0, sampleFileData.Length);
if (sampleSize > 0)
sampleFileStream.Write(sampleFileData, 0, sampleSize);
else
break;
}
sampleFileStream.Close();
sampleFileStream.Dispose();
}
}
sampleInputStream.Close();
sampleInputStream.Dispose();
MessageBox.Show(" ");
|
|
|
|
|
There is a problem in the first line. I leave it up to you to find and fix it.
BTW: "File in use by another program/process" isn't the best Windows message, it may well be (most often is) the same process causing the situation.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
I seem to be having trouble install these addins. I followed a tutorial on how to create a windows installer file for it (http://msdn.microsoft.com/en-us/library/cc563937.aspx[^])
Well when I install it, it installs but when you launch outlook you get an error about it not being able to find the vsto file. So I remove the addin from outlook because it isn't working, then I go to where it installed and double click that file to install it. Then it gives an error like this:
System.Net.WebException: Could not find file 'C:\Program Files\Arkansas Department of Emergency Management\ADEM Application - Outlook Plugin\OutlookPlugin.XmlSerializers.dll'
Now this plugin does use a web service but why is it giving this error?
Also on my computer it works fine when I right click on the setup project (in VS2008) and click install. Everything works great if I do that! But obviously I can't install VS2008 on everyones computer and install it that way LOL
Any help would be great.
BTW where is this XmlSerializers coming from? Why does it need it and why didn't VS2008 put it in there if it needed it?
|
|
|
|
|
This seems to be a common problem with deploying addins. It like it doesn't compile that? I tried the SGEN with no luck. The problem is because I'm using a web service. ANyone else have a idea?
|
|
|
|
|
Hello all,
i am trying to write develop file transfer using tftp protocol..
Can anyone share some of idea how to start with??
|
|
|
|
|
1) Open Visual Studio
2) Click File -> New Project
I know the language. I've read a book. - _Madmatt
|
|
|
|
|