|
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
|
|
|
|
|
Wow!!
Justin Timberlake has had enough with music and now he's trying to cut it as a programmer.
|
|
|
|
|
I think coding is far more interesting than music..
|
|
|
|
|
How is using XmlDocument resource consuming? You mean execution time, memory usage or what else?
|
|
|
|
|
http://www.codeproject.com/soap/myXPath.asp
plz read point of interest
|
|
|
|
|
http://www.codeproject.com/soap/myXPath.asp
scroll down and plz read point of interest
|
|
|
|
|
Scroll down to the bottom of the page, at the Reference section. Follow the link that says "Improving XML performance". That article deals with many things starting with X, including XPath:
If your application contains large amounts of intensive XPath or XSLT code, use XPathDocument, instead of XmlDataDocument or XmlDocument, to process XPath statements.
In your case, with the 3-4 MB files I don't think you have to worry about performance.
|
|
|
|
|
thanx for the suggestion really appreciated that but i got it wrong my xml file can be 30-40mb will it still work. so what if i have to scan a file withing a minute
|
|
|
|