|
What kind of device...Mouse...Scanner...Fridge??
A craft is an enemy if not well learned.
|
|
|
|
|
Lol21 wrote: Hey! i need to get input from a external device. how do i connect to that device to get the information?
Get the right kind of cable, plug it in (on both ends), and there you go...
|
|
|
|
|
OpenFileDialog ofd = new OpenFileDialog();
ofd.InitialDirectory = @" \\";
ofd.Filter = "Excel Files(*.xls)|*.xls|" + "All Text Files(*.*)|*.*";
ofd.FilterIndex = 1;
if (ofd.ShowDialog() == DialogResult.OK)
{
excelApp = new Excel.Application();
workBook = excelApp.Workbooks.Open(ofd.FileName, 0, true, 5,
"", "", true, Excel.XlPlatform.xlWindows, "\t", false, false,
0, true,1,0);
When i run this code i get an error as "Unable to cast COM object of type 'Excel.ApplicationClass' to interface type 'Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID ""
plz any one help me in this
Regards Ramya
|
|
|
|
|
use Excel.ApplicationClass() instead of Excel.Application() ..
|
|
|
|
|
This is a simplified information from the log file on a machine about an unsuccessful setup.
can you see what is wrong?
Please note that the setup does work on some other machines.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Documents and Settings\nguyent\Desktop\PricingAnalytics.application resulted in exception. Following failure messages were detected:
+ Downloading file:///C:/Documents and Settings/nxyz/Desktop/PricingAnalytics_1_0_0_11/PricingAnalytics.exe.manifest did not succeed.
+ Could not find a part of the path 'C:\Documents and Settings\nxyz\Desktop\PricingAnalytics_1_0_0_11\PricingAnalytics.exe.manifest'.
Thanks
|
|
|
|
|
Hello,
The first log shows that the activation was for user nguyent and the second log shows that the activation was for nxyz.
Can you please look into this and let me know if this does not resolve this issue.
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
<Payment>
<PaymentReference />
<PayFrom PFPayerName="TRANCENTRIX INC" PFAccountNickname="1470820787" PFBankName="U.S.BANK" PFRoutingCode="B042000013" />
<PayTo PTPayeeID="john1" PTPayeeName="TECHTRONICS INC" PTRoutingCodeType="1" PTRoutingCode="154325152" PTAccountType="22" PTAccountNumber="1" PTPaymentMethod="5" PTCurrencyCode="USD" PTAmount="161155.77" />
</Payment>
The above xml file node has so many child nodes named <payment></payment>.
I want the code for counting number of attributes in that node.
I counted the number of nodes in that file as
XmlDocument doc = new XmlDocument();
doc.Load("D:/SAMPLEXML.xml");
int count = doc.SelectSingleNode ("//Payments").ChildNodes.Count;
TextBox1.Text=count.ToString();
now i want to count the attributes in one node i.e payment
Ravi Shankar M
-- modified at 4:53 Friday 30th November, 2007
|
|
|
|
|
You need to check 'Ignore HTML tags in this message (good for code snippets)'
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at
|
|
|
|
|
|
you need to select each node, and do Attributes.Count ( or Attributes.Length perhaps ? ) on the node.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am currently trying to get Axis IP cameras to identify themselves via the network using C#.
I've captured the packets that Axis' own tool uses and I am trying to mimic them in .NET - without success : (
Apparently the Axis program sends out a Multicast UDP/TCP packet to 224.0.0.251:5353 with the message "_axis-video_tcplocal"
Here's what I captured:
224.0.0.251 MDNS Standard query PTR _axis-video._tcp.local, "QU" question
I've scoured the web looking for a method to do a Domain Name Pointer lookup without any luck.
Any pointers...?
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
Message Closed
modified 17-Jan-16 13:26pm.
|
|
|
|
|
Thanks!
I had forgotten about this one again, it's been five years .
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
How do I convert a string textbox to int?
|
|
|
|
|
int.Parse, int.TryParse or Convert.ToInt32
|
|
|
|
|
Convert.ToInt16(SomeTextBox.Text)
You always pass failure on the way to success.
|
|
|
|
|
Convert.ToInt16()
Convert.ToInt32()
Convert.ToInt64()
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
I don't say all of the answer you got above are wrong but they may be create
problem (Error) If any user input any text in the textbox I.e. instead of numbers any other input will throw an error.
So you have to make your own function...I also done this
please use
public static int ToInt(object obj)
{
string s = ToStr(obj);
return (s.Length > 0 ? int.Parse(s) : 0);
}
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
I don't see how this is going to work better than int.TryParse, which was suggested above.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
May be this is not a good solution but it won't give the error in the case of
non numeric value is entered by user.
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
TryParse returns a boolean value to check whether or not the conversion was successful.
It definitely isn't definatley
|
|
|
|
|
int.TryParse
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Consider a NumericUpDown instead.
|
|
|
|
|
Hi,
I have to parse MIB files. More precisely I need to list Traps and Notifications with all their information like oids, variables or objects. But, be able to get all information, will be the best.
Does anyone know libraries to do this or good way to parse MIB files?
Thank you in advance!
|
|
|
|
|