|
Need Help...
I am using Visual Studio .Net 2003 for developing the application.
I included Microsoft Word 9.0 Object Library through Add Reference - COM tab -& then selecting it.
But still i could not use the .Office namespace. The intellisense was detecting only the default namespaces for Microsoft. ie CSharp,Win32,VisualBasic.
When i declared an object as
<pre>
Microsoft.Office.Interop.Word.Application wordApp =
new Microsoft.Office.Interop.Word.Application(); </pre>
and when compiled, it was giving a syntax error as
The type or namespace name 'Office' does not exist in the class or namespace
'Microsoft' (are you missing an assembly reference ? )
Still i could define an object as
<pre> Word.ApplicationClass oWordApp = new Word.ApplicationClass(); </pre>
and it was compiling successfully.
If any body could tell me why i am not able to access the Office namespace even after adding the reference to the assembly...i will be really grateful...
jij
|
|
|
|
|
There is an option when you install office to include the .net hooks. If you had office installed on the PC before the .net framework was loaded these hooks will not be set. If you open your office install you will see some new options for installing the .net pieces of office.
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben.But when i removed and reinstalled office 2000 a dialog box came up which said that
Your Web Server's configuration will allow anyone to author pages on your web server once the extensions are installed.
To fix this, stop installing the extensions now, reconfigure IIS to use an NTFS partition and then use the Front page Server administrator tool to install the extensions.
Are you sure that you want to install the extensions ?
Well i gave no to that and proceeded with the installation.
Can any body tell me how to reconfigure IIS to use an NTFS partition and then use Front page Server administrator tool to install the extensions.
If any body could give me some hints i'll be grateful....
jij
|
|
|
|
|
hi all, i m using textbox control with multiline in asp.net website in visual studio 2003,its size(length n width) is changed from one what i see on IE, size is shorten n look very smaller(basically its Comments section textbox),i tried to increaes it size but was not successful any idea.
Regards.
Tasleem Arif
|
|
|
|
|
What properties exactly are you setting?
|
|
|
|
|
here is the code.
<table border="0" cellspacing="0" cellpadding="0"><br />
<tr><br />
<td width="337" class="blue11b">Create message using your own words (optional)<br />
</td><br />
</tr><br />
<tr><br />
<td><asp:TextBox ID="Body" TextMode="MultiLine" Width="525" Height="250" MaxLength="1000" Runat="server"><br />
This is your invitation to create your own account. I've been using and really enjoying its simplicity, storage and security... for FREE.Also, check out all the cool things that Card provides for FREE. This finally is the "Web Your Way".<br />
</asp:TextBox><br />
</td></tr><br />
</table>
Regards.
Tasleem Arif
|
|
|
|
|
i had modified and tried different option but was not success ful.
Regards.
Tasleem Arif
|
|
|
|
|
Maybe its just me but I don't see a textbox in there?
|
|
|
|
|
that line was present but shown so i removed < > symbols.
asp:TextBox ID="Body" TextMode="MultiLine" Width="525" Height="250" MaxLength="1000" Runat="server"
that line was missing above the text long text
Regards.
Tasleem Arif
|
|
|
|
|
|
Hi,
Can somebody tell me, how to call method from web service in xml-rcp command style?
|
|
|
|
|
HI all,
Please help me How to provide sorting order for a datagrid in code behind,and every time on page load one specific column has to be in ascending order.
Thanks in advance
Have a Nice Day Dudes
|
|
|
|
|
|
|
i have made small web application using C# ,asp.net (VIsual Basic 2005). when i am runing in intranet. i faced following error.
Please Help
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
regards
imran khan
|
|
|
|
|
yes , put this tag into your web.config file
<customerrors mode="Off"> in between
<system.web> tag .
then it will show you errors in your site.
Naveed Kamboh
Complexity kills, Write easy code for your self.
isolutionteam
|
|
|
|
|
Change your web.config file so that you get an error message. Or use some error handling in your code.
|
|
|
|
|
Firsts, enable the details of errors by write this in Web.config:
<customErrors mode="Off"/>
So, write the full details of the error so that we can help you.
Bye,
Carmine,
Webmaster of: www.thetotalsite.it
My web blog: blog.thetotalsite.it
|
|
|
|
|
Actually..
<customErrors mode="Off"/>
Should correct the problem.
I also had a LOT of trouble with this...
I had to change the customErrors tag to
<customErrors mode="Off"/>
And remove the <authentication/> (or something) completely.
MulleDK13 (http://www.splintercell3.treesoft.dk)
|
|
|
|
|
how to run a .reg file using asp.net
Dotnet
|
|
|
|
|
Why would you run a reg file on the client?
|
|
|
|
|
Doesn't that change the registry ? You can't, I hope. Why would you want to, except for reasons that are less than pure ?
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 )
|
|
|
|
|
Hi,
I am trying to do the following, it seems like it should work
Dim IE As InternetExplorer
IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
Dim proxyObject As New System.Net.WebProxy("http://148.244.150.57:80/", True)
IE.Proxy = proxyObject
IE.Navigate("http://www.whatismyip.com")
basically when it goes to whatismyip.com it should show me the same address as the proxy, currently what is happening is that ie is starting up but then it sort of freezes and no page loads, any ideas how to fix this? (Also is there a way to set the proxy in the ie through vb or c#?)
Dotnet
Dotnet
|
|
|
|
|
How to Change String to Date.
I use the following but there was error.
startDate = ctype(txtDate.Text,Date)
also i tried
startDate = cDate(txtDate.Text)
Both gives error.
I use ASP.NET with VB.NET
Thanks in Advance.
|
|
|
|
|
it depends on the date format u accept from the user...
i mean....what is the string u get from the user in txtDate.Text??
if it is of type say....July 24, 1983 then cDate(txtDate.Text) works fine....
check it out.....
mareers
|
|
|
|