|
Justin Perez wrote: my project manager has told me this is not possible.
Your project manager is wrong. I've used nUnit for quite some time now with Visual C# Express...
|
|
|
|
|
How can i serialize and generate an xml file of the derived class in c# that consists the 5 properties in that 3 are datasets and 2 are class objects.
and i am using c#.net 2005 and sqlserver 2005
can any one help me please
Thanks
Ksrs
raja
|
|
|
|
|
|
Hi Satips,
Thanks for sending the link.
Let me see, If i have any doubt can i ask you?
Thanks
Raja
|
|
|
|
|
Glad to Help Always
Regards,
Satips.
|
|
|
|
|
Hi Satips,
I did the xml serialization but i got a xml file with default xml schema.
because the class having the properties as dataset. if i use the xmlignore attribute i didn't get the default schema with xml file and also i didn't get the data.
so can u please help me how can i remove the default schema at the time of serialization.
Thanks
raja
|
|
|
|
|
|
One way to do this to override the base class serilization with your one implementation. By this you can very well use the default serilization dataset and then for the two class objects call the serilisation method implemented for their class.
|
|
|
|
|
Hi Jaiprakash,
I did the xml serialization but i got a xml file with default xml schema.
because the class having the properties as dataset. if i use the xmlignore attribute i didn't get the default schema with xml file and also i didn't get the data.
and we don't have writes to change base class.
so can u please help me how can i remove the default schema at the time of serialization.
Thanks
raja
|
|
|
|
|
hi all ,
I want to make a mulitple form application using C#. It is something like An event on 1 form should initialize the other form and or it should invoke the other form. I do not want an MDI applicaion. Can any1 help me out with that?
Thanks in advance
Sankalp Verma
|
|
|
|
|
Its a multiple form Windows application.
Sankalp Verma
|
|
|
|
|
This is all you need to get another forum up
MyOtherForm otherForm = new MyOtherForm();
otherForm.Show();
What you do for initialisation is up to you.
|
|
|
|
|
Thanks a lot .....i just needed that 1 step ......thanks a lot
Sankalp Verma
|
|
|
|
|
I am working on a application which uses MS office components Excel,Word, Outlook. i have used Interop Assemblies of office 2003. i have made sure that all of the required assemblies are registered in GAC.
I have also included the special folder (Global assembly cache Folder) in the deployment project build was successful and working fine with the operating system where Office 2003 is installed. but when i brought the setup to some other system where there is no office or office is installed other then 2003. it generates the following error:
Unable to cast COM object of type "Microsoft.Office.Interop.Word.ApplicationClass" to interface type "Microsoft.Office.Interop.Word._Application"............
i have made sure that interops which goes with my setup.exe have been registered successfully with the GAC.
i am unable to understand what is the problem.
Kindly help me, thanking you all in advance.
regards
Xprt
|
|
|
|
|
I have had some issues, where if office was installed before the .net framework, the hooks into office weren't installed. If you re-run the office setup you will see a new option to install the .net developer stuff. Check that box and install those items. Then it should work.
Hope that helps.
Ben
|
|
|
|
|
Yes you are absolutly right but i am saying that when we distribute the setup that contains some interaction with MS Office in that case what should i do to avoid this exception.
Case: i have developed an application that uses MS Word. ii worked just fine on the machine where i have developed but when i takes it to some other mache where there is only .net frame work is installed and no MS office or some other version is installed. at that time it gives the previously mentioned error.
regards
Is there any way that we are able to detect on run time, what version of office is installed and according to that application will load MS Office component.
|
|
|
|
|
You need to have Office installed in the client computer also. And it needs to be the same or a compatible version. Just because you add the interop files to your setup and GAC does not mean that it'll work out of it. Remember it still is a wrapper only. Also, when you try to instantiate any Office application, it uses a lot more than the lone dll which you've included. It'll look for registry entries, components, support files and the whole office framework.
SG
|
|
|
|
|
I think there is a way that the setup app can detect the dependancies, but I don't think that adding the auto install of office will be all the easy. There are license keys to worry about and making sure the .net hooks were checked when office is installed. So there will be a bit of manual set up on the PC. At least that has been my experience.
Ben
|
|
|
|
|
Thanks alot SimulationofSai , Ben & all others who tried to help me
Yes you are right but the stuff that i am looking for was bit different. please view my article
Dynamic binding with Microsoft Word (Mail Merge)
at code project.
if you think that is there any thing else that can be added to help out other peoples, feel free to comment.
regards
|
|
|
|
|
OracleConnection oraCONNECTION;
OracleDataAdapter oraADAPTER;
string strCommand;
private void rdIndicators_CheckedChanged(object sender, EventArgs e)
{
if (rdIndicators.Checked)
{
dataGrid1.CaptionText = "Population Indicators";
strCommand = @"SELECT * FROM PPL_INDICATORS";
popDGrid();
}
}
private void rdInst_CheckedChanged(object sender, EventArgs e)
{
if (rdInst.Checked)
{
dataGrid1.CaptionText = "Institutional Structure";
strCommand = @"SELECT * FROM INS_STRUCT";
popDGrid();
}
}
private void popDGrid()
{
oraCONNECTION = new OracleConnection(@"Data Source=orcl; Persist Security Info=True;User ID=DLDSP; Password=DLDSP;Unicode=True");
oraADAPTER = new OracleDataAdapter(strCommand, oraCONNECTION);
DSet.Clear();
oraADAPTER.Fill(DSet);
dataGrid1.DataSource = DSet.Tables[0];
dataGrid1.Refresh();
this.Refresh();
}
Why do I get both tables columns every time I'm firing one of the above events??
Many thanks
ps. Hi Christian
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: ps. Hi Christian
LOL !!!
Have you traced through the code ? What is the SQL going in ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, I thought I need to refresh, re-draw, re-load, re-something the DataGrid/DataGridView //I tried both and end up with the same result.
Really blind to see where's the problem
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Again, have you set breakpoints ? What code is running ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Muammar© wrote: OracleConnection oraCONNECTION;
OracleDataAdapter oraADAPTER;
Just out of curiosity. What components/providers are you using to connect to your Oracle DB?
|
|
|
|
|
blackjack2150 wrote: components/providers
I think I'm just using .Net regular classes
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|