|
N a v a n e e t h,
Thank you very much for your help and sorry for my not clear question
The MsWord process is running on server and it has openned some doc file, and now I'am try to interact with the MsWord process in my ASP.NET application. So I tried to use GetActiveObject to get a objec reference to the MsWord process. But it just throwed a exception.
And the GetActiveObject()can work well in a C# WINFORM application, while not in an ASP.NET application.
I think the discuss thread I mentioned above in my question may gave the possible reason of this quesion. Here is the abstract of the post:
---------------------------------------------
Hello,
Based on my research, GetActiveObject obtains a running instance of an
object from the running object table (ROT). Each WinStation has it's own
ROT. The interactive desktop is one WinStation and has it's own ROT and
that is where the desktop application will have registered the running
object. The ASP.NET process is running under a seperate account and exists
in a non-interactive WinStation with its own ROT. That is why it fails.
I think the only way for this to work would be to launch the third party
application process from ASP.NET so it exists in the same WinStation. Of
course the application will then not be visible and the user cannot
interact with it.
--------------------------------------------
Thanks a lot
|
|
|
|
|
sorry, I think I didn't express myself clear again at the end of my last post just now ----
I think the discuss thread I mentioned above in my question may gave the possible reason of this quesion, but it didn't give a way to solve the problem
|
|
|
|
|
Thanks for the explanation.
Michael Tang wrote: The ASP.NET process is running under a seperate account and exists
in a non-interactive WinStation with its own ROT. That is why it fails.
This could be the reason why it is failing. BTW, whatever you are trying looks odd to me. If you can tell us why you are doing this and what is the expected behavior, there may be better solutions.
|
|
|
|
|
Navaneeth,
Thank you so much for your help and sorry for my late reply now.
Actually, I'm not really need to let my ASP.NET app to interact with "MsWord", instead, it's an ole server we developed by VC++ by ourselves. Due to my poor English and to express the question here easily, I used "MsWord".
The ole server's duty is doing some special tasks on our server, let's call it "MY-OLE-SERVER" below. MY-OLE-SERVER is running as a sperate process. And we have an another C# WINSERVICE app to comunicate with it. This is not the problem, it's ok for the WINSERVICE app to use Marshal.GetActiveObject() to get reference with MY-OLE-SERVER. But at the same time, our ASP.NET app need to make some deal with MY-OLE-SERVER also and as you know, it's just not running ok.
So do you have any good suggestion for our problem?
Thank you again
|
|
|
|
|
Hi,
When the session is timed out if I click on any of the child menu nodes of the tree control in asp.net then it is not responding,corresponding page is not getting displayed and not redirecting to login page. Plz do reply if any of you have idea about this problem
with regards,
kiran
|
|
|
|
|
Kiran 2671048 wrote: Plz do reply if any of you have idea about this problem
You haven't provided enough information to answer. Explain your question in detail with relevant code snippets if you wish to get help.
|
|
|
|
|
Hi,
Thank you for your reply, here below I have given my problem
I have one treeview based menu control. In showtree(). I am am adding all parent menus to tree view control. In Tree_TreeNodePopulate(), i am calling childs(). In childs(), i am adding child nodes to the parent menus. everythig is working fine. but my problem is when the session is timed out, if i click on child nodes control, it is not redirecting to login page. I tried the following code also but it is not working.
if (Session["UserInfo"] != null)
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "window", "window.location.href='Logout.aspx'", true);
}
|
|
|
|
|
Well, the code you have provided works only when Session["UserInfo"] has value. When session timed out, how are you expecting it will have some value?
Looks like you need to change the condition
if (Session["UserInfo"] == null)
{
Response.Redirect("Logout.aspx");
} Does that solve your problem?
|
|
|
|
|
Hi,
I tried to use this code but i am getting the following error:
Response.Redirect cannot be called in a Page callback.
with regards,
Kiran
|
|
|
|
|
characteristics of foreign key
|
|
|
|
|
Forgot to type your question? As you are new to CP, I suggest to read the forum guidelines before you post. You can try this[^] as well to ask better questions.
|
|
|
|
|
how to clear all item from list box
|
|
|
|
|
|
Listboxid.items.clear()
Er. Jagwinder Singh
|
|
|
|
|
hi friends
i need to Pass the value code behind to xslt file
example:
String str="test"
i pass this value in Myxslt.XLST difilr
Known Is Drop.Unknown Is Ocean
|
|
|
|
|
Hello Everybody
I have put a Button name btnDelete into Template Field also I put AJAX Confirm button extender. What I want to do is when I click btnDelete then it will ask whether I want to delete that row or not.
How Can I do it?
If you have any example then it will be really greatful
Thanks in Advance
Sarfaraj
Sarfarj Ahmed
|
|
|
|
|
No worries!
Just done it.
Thanks
Sarfarj Ahmed
|
|
|
|
|
Hi,
I want to clear all the above mentioned controls in a web form in the click of a Cancel Button.
Plz Help.
|
|
|
|
|
there are two ways to achieve this..
1) you will have to manually put controlname.text= "";
or programmatically
2)
public static void EmptyTextBoxes(Control parent, TextBox tb)
{
foreach (Control c in parent.Controls) {
if (c.GetType() == typeof(TextBox)) {
((TextBox)(c)).Text = string.Empty;
tb.Focus();
} else if (c.GetType == typeof(DropDownList)) {
((DropDownList)(c)).SelectedIndex = 0;
}
if (c.HasControls) {
EmptyTextBoxes(c, tb);
}
}
}
Government Dyal Singh College Lahore.
|
|
|
|
|
How to send GridViewRowEventArgs to OnCheckedChanged? It's not possible to just replace EventArgs with GridViewRowEventArgs.
void columnsList_SelectedIndexChanged(object sender, EventArgs e)
{
}
|
|
|
|
|
naveen attri wrote: How to send GridViewRowEventArgs to OnCheckedChanged? It's not possible to just replace EventArgs with GridViewRowEventArgs.
void columnsList_SelectedIndexChanged(object sender, EventArgs e)
{
}
Are you talking about change the Grid Template Field (CheckBox) Check / UnCheck changed event?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi
I am having trouble with the Object tag, which I would like to use to show word documents. Unfortunately, when it opens it doesn't show the document? Can someone please tell me what I am doing:
<object id="showword" width="300" height="200" type="application/msword">
<param name="src" value="file:///C:/mydoc" />
<param name="readonly" value="true" />
Further, I would like someone to advise me whether the following param names are correct for turning off right click, cut, copy, save and print:
<param name="save" value="false" />
<param name="cut" value="false" />
<param name="print" value="false" />
<param name="copy" value="false" />
<param name="enablecontextmenu" value="false" />
Thanks
|
|
|
|
|
pleas can any one help me i cant write code to view photo from database ongraidview or datalist pleas give me code
|
|
|
|
|
Do you mean ASP or ASP.NET ? I guess ASP.NET. If you can't work out how to do this, or how to use google to find an example, then you should probably never use a computer again, except perhaps to check your mail.
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
Hi
Can i convert an SQL Server 2005 bank file to SQL Server 2000?
|
|
|
|