|
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)
(><)
|
|
|
|
|
You're right. I've never used Oracle with .NET before and I didn't know these classes even existed. Nice surprise. I remember one guy's signature who compared .NET with a box of never ending treasures.
|
|
|
|
|
Hi.
I'm in the progress of making a messenger client that uses the dotmsn library, I figured it would be a good idea to make the application plugin aware, so I started some research on the subject.
What I have come up with so far is that the .NET 3.5 framework contains a plugin architecture that sound like it's the best choice for me, but I have some questions about the way the plugin architecture is supposed to work.
1) How do i expose events and custom classes from the dotmsn library without forcing the plugin developer to include the dotmsn library in his project? I figure this would be impossible, but i ask anyway.
2) When developing my application plugin API (My exposed functionality to the plugin developers), do i create a wrapper that contains some events like Message_Received, that i call from my application, or do i just expose the existing events from the dotmsn library. (Literally building a plugin architecture to the dotmsn library instead of my client).
Anyone that can shed some light on this subject is welcome. I have btw read all articles on the subject here on codeproject.com.
Thanks!
|
|
|
|
|
Can any one point me to a tutorial on how to catch the stand by/Hibernate event on windows application.
Regards
Shajeel
|
|
|
|
|
|
|
np
|
|
|
|
|
xmldocument is resource consuming but i have to use XPathNavigator how can i use it with xmlTextReader.
If I use some thing like this
XmlTextReader reader = new XmlTextReader(strUrl);
XmlDocument xdoc= new XmlDocument();
xdoc.Load(reader);
reader.Close();
will it still consume resource.
I just want To use XPathNavigator with out using too much of resource my xml file can be upto 3-4mb. plz do help me
|
|
|
|