|
not VBscript but
try wmic (a built-in MS app )
start --> run --> cmd (with CTRL+SHIFT+ENTER = admin right!)
wmic:root\cli>QFE get
output to file using
wmic:root\cli>/output:C:\InstallList.txt QFE get
Also have u tried looking in the registry for list of installed app, or alternatively the uninstall listing
|
|
|
|
|
Hi all,
I have a dynamic menu in asp.net that its BackGround is an colory image that convert dark blue to light blue, but if my menu be longer, this image be repeat more and more...
Now how I can convert one color to another color with java script to height of menu? for example dark blue to light blue.
Thank You
Hoda
|
|
|
|
|
Don't use images, use background-color if possible. Otherwise it depends on your structure. Is the menu one element or is it made up of many elements? Are they table cells, divs, spans??? Could you set the dark blue image as 100% to cover the entire menu then position light blue element where necessary? A lot of ways to skin the cat.
only two letters away from being an asset
|
|
|
|
|
|
Hi all,
I have a gridview on my form with 5 columns. One of the field contains item name along with an small icon image. On mouseover of that image i have to show the specification of that item. The specification is in a hidden column of the gridview. For this i wrote the following code:
Dim specimg As System.Web.UI.WebControls.Image = CType(e.Row.FindControl("Item_Spec"), System.Web.UI.WebControls.Image)
specimg.Attributes.Add("onmouseover", "Show_ToolTip(event,'" + HttpUtility.HtmlDecode(msg.Replace("'", "\'")) + "')")
Javascript:
function Show_ToolTip(e,myString)
{
var regX = /\\n/g;
var replaceString = '<br> \\n';
myString=myString.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
myString=myString==""? "No Specification": myString;
text= myString.replace(regX, replaceString)
document.getElementById("Tip_Label").innerText=text;
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop ;
document.getElementById("Tool_Tip").style.display="block";
document.getElementById("Tool_Tip").style.left = x;
document.getElementById("Tool_Tip").style.top = y;
}
HTML:
<div id="Tool_Tip" style="position: absolute; z-index: 130" class="tip">
<label id="Tip_Label">
</label>
</div>
But when i hover over the image the tooltip doesn`t always appear below the image and some times appers very far away on the top of the page. What is it that i need to change so that my tooltip always appears just below the image ???
When you fail to plan, you are planning to fail.
|
|
|
|
|
Hi..
I am using Asp.net with c# in my project and want to generate MS word 2003 document dynamically.
And want to insert some text in the Header of newly generated word document.
Can anybody tell me how to execute this task from my webform.
thanks..
Hemant
By:
Hemant Thaker
|
|
|
|
|
You'll need to use Office Interop in your server side code.
only two letters away from being an asset
|
|
|
|
|
i am getting following error
Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Please help me out
Hemant
By:
Hemant Thaker
|
|
|
|
|
Have you verified all the assemblies are in place and are the correct versions?
only two letters away from being an asset
|
|
|
|
|
And you need the office app installed as well don't you? I mean the assemblies are dependent on the actual COM interfaces right?
|
|
|
|
|
Hi...thanks for your support
See this is my code..
///////////////////
using Microsoft.Office.Interop.Word ;
ApplicationClass oWordApp = new ApplicationClass();
object fileName = "c:\\myfile.doc";
object missing = System.Reflection.Missing.Value;
Document oWordDoc = oWordApp.Documents.Add(ref missing,
ref missing, ref missing, ref missing);
oWordDoc.Activate();
oWordApp.Selection.TypeText("This is the text");
oWordApp.Selection.TypeParagraph();
oWordDoc.SaveAs(ref fileName, ref missing, ref missing, ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
oWordApp.Application.Quit(ref missing, ref missing, ref missing);
/////////////////////////////////
I am using MS Word 2003, I have added reference of COM --> Microsoft word object library 11.0
Please tell me if i go wrong with this code..
thanks
Hemant
By:
Hemant Thaker
|
|
|
|
|
As led mike has said, Word should be available on the system you are trying to run this code on
only two letters away from being an asset
|
|
|
|
|
Your code worked fine for me without modification. I added your code to an existing project in Visual Studio 2008. I added a COM reference to the Microsoft Word 11.0 Object Library and kept your using directive for the Microsoft.Office.Interop.Word namepsace. I then placed your code into the CreateWordDoc() method, within the WordDoc class. When I then called the method, It created the Word file without any error.
using Microsoft.Office.Interop.Word;
public class WordDoc
{
public void CreateWordDoc()
{
ApplicationClass oWordApp = new ApplicationClass();
object fileName = "c:\\myfile.doc";
object missing = System.Reflection.Missing.Value;
Document oWordDoc = oWordApp.Documents.Add(ref missing,
ref missing, ref missing, ref missing);
oWordDoc.Activate();
oWordApp.Selection.TypeText("This is the text");
oWordApp.Selection.TypeParagraph();
oWordDoc.SaveAs(ref fileName, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
oWordApp.Application.Quit(ref missing, ref missing, ref missing);
}
}
Regards,
Gary
modified on Sunday, June 21, 2009 2:45 PM
|
|
|
|
|
Sir...
thanks for ur cooperation but i am still getting this error if i run it in vs 2008
Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
please guide me for this
thanks
Hemant
By:
Hemant Thaker
|
|
|
|
|
Hi..
Now i know how to create word document.
What i need to know is, how to create Header in particular word document and save it.
Please help me out of this
thanks
Hemant
By:
Hemant Thaker
|
|
|
|
|
|
Hi....
thank you very much... this worked fine...
Hemant
By:
Hemant Thaker
|
|
|
|
|
hi,
how to get the data of particular website (eg:www.orkut.com) by giving credentials such as Login username and password of the above site and get all those data to our website.
I mean how to get the other sites data to our site. I wanted to download the content of the other website(eg:orkut.com) to our website by giving credentials of other website from our website...
Can any one help me out in this............
Regards,
Ravi
|
|
|
|
|
|
How to use Jquery validation plugin in ajax update panel?
|
|
|
|
|
Hello.
I know many websites already discuss this, but I have yet to find a code that actually works correctly on our site. I would like a Facebook Icon, Twitter Icon, and LinkedIN Icon (NO text), that allows a user to click on either one of the three icons/widgets which allows users to Share our website on the widget they chose. I do not want to add the infamous "Add This Button" I want only those three widgets. Any advice/direction/coding will be accepted. Thank you.
|
|
|
|
|
|
|
|
Yes, very helpful, but I hope you do realize that the question spans many fields, and expert in any of them could have the answer.
|
|
|
|