huhu's Q&A profile
Visual C# C# .net 2005 to Excel 2003
Hi, I have an application wich runs ok on my pc (with VS.Net 2005 and full Excel 2003), but when I try it in another pc (with just .Net framework and limited version of Excel 2003) it gives me this error: Could somebody help me, please Thanks. ************** Exception Text ************** System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified. File name: 'Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' a ...Show All
Windows Forms How to use a windows form as active desktop?
How to use a windows form as active desktop I want my application to have a screen that behaves as or becomes active desktop. I would have buttons and other UI controls on it. User should be able to click the button. When user minimises all windows say using window+M button, my active desktop screen should be visible. Any reply would be appreciated -------------------------------- From: mani periasamy Oh yeah, and the registry entry is: HKLM\Software|Microsoft\Windows NT\CurrentVersion\Winlogon\Shell Just be carefult because you can hose up your computer fairly easily by messing around with settings under the Winlogon key. ...Show All
Windows Forms Aligning List View Item
Hi, How can I align a tiled backgroundimage with list view item. something like a chess board with each item in each box for a listview. Thank You Atheeque ...Show All
Visual Studio Publishing project with MSBUILD
I am running msbuild on our build server, the server has the .NET v2 beta 2 runtime and SDK installed, it does not have DEVENV installed on it. When I try to publish the project with msbuild from the command line on my local PC that has DEVENV installed it all seems to work. When I try running the some command on the build server I get: “C:\WINNT\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets : warning MSB3482: SignTool reported an error 'SignTool.exe not found.'.” The command line I am using is: %windir%\Microsoft.NET\Framework\v2.0.50215\MSBuild.exe StudentAllocator.sln /p:Configuration=Release /property:ApplicationVe ...Show All
SQL Server Problem with numeric formatting
I have a reports that use various sums to calculate totals. However if I enter this into the format field of textbox properties $#,###,###.##;($#,###,###.##) it gives unpredictable results. Some columns will format to 2 decimal places others will only format to the nearest dollar I though by explicitlty placing .## it would always go to 2 decimal places Cheers Damien maybe you can try just using C as the format string a capital C indicates to display the numeric in currency format. ...Show All
.NET Development Is it possible to inherit from XMLNode
I'm trying to create an application that stores and handles all it's data in XML. I was trying to inherit from XmlNode and I get the error message "The type 'System.Xml.XmlNode' has no constructors defined" I'm guessing this is because the constructor for XmlNode is private or internal. Is there a way to inherit from XmlNode. After taking sometime to look at the System.Xml in the object browser I was able to figure out that, if fact, you CANNOT inherit from XmlNode as ALL it's constructors are internal or private. You can on the other hand inherit from XmlElement. XmlElement has a protected int ...Show All
Visual C# Please help - Problem with FileSystemWatcher
Dear Experts, My application is a Windows Service that uses FileSystemWatcher to monitor the file status of a particular folder location. As you know, FileSystemWatcher supports the following file events: - Created - Deleted - Changed - Renamed That means, when a file is created, deleted, changed or renamed the FileSystemWatcher can detect and response. Now the problem is the following: 1) I shutted down the above Windows Service for maintenance; 2) At this moment, files are being placed into the folder; 3) I started up the Windows Service again but the files (that are just placed into the folder)cannot be detected. This is because no create ...Show All
Visual Studio Tools for Office Excel macro question - ref: sheets (hopefully a simple one!)
Trying to debug a macro in Excel and it has an odd line. Could someone explain it to me please. "Sheets("comparative_report.pl reportNam").Select As you can't have a question mark in the name of a sheet - what's this all about Sorry if I'm being a bit thick but this is new to me. Thanks Damian Hi Damian, given that this is a VBA related question and unrelated to VSTO, you'll probably have better luck getting an answer up no the Office.VBA newsgroup. Here's the link: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.developer.vba&lang=en&c ...Show All
.NET Development How to get the ip address of a printer?
Hi all, I have a network printer, how can I get the Printer Ip address from The Printer name is there any classes or functions to do this Thanks. Hi, thanks for your reply, but the question is get the Printer's IP address, not the ip address of the host which printer installed on. I install a network printer, which port is "ne4" and the port is TCP/IP standard Port, whose ip address is 192.168.0.2, My question is how to get the Ipaddress(192.168.0.2) of the Port Thanks all. :) ...Show All
Visual C# While Loops and Keyboard Events
In a class I have a while loop that sends out an event while test is true as follows: while(test) { PeriodFire( this , new PeriodEventArgs( true )); } In another class I consume the event and do some graphical work on it. this .timer1.PeriodFire += new ABIS.PeriodEventHandler( TimerOnTick); public void TimerOnTick () { .... Do some graphical work Application.DoEvents(); } I am also using the keyboard Events KeyDown() and KeyPress() to do some work. The problem I am having is that the keyboard events are not being fired. Or if they are, it is only once now a ...Show All
Visual Basic Access or SQL Which one is better
Hi I'm wondering, which one would be better, i'm creating 2 medical programs, that are going to be running on a local machine, I Use visual Basic 2005 express and don't know if I should develop with access or SQL 2005 express. Which one is better and faster Any suggestions or comments will come in handy. PS. Future versions might have network connections, like for a secretary or interoffice connections. So should i work on access or SQL express SQLE is *better* in that it does more. The real question is, which is the appropriate tool fo hte job. If you expect to run the database on a seperate ma ...Show All
SQL Server Replication Isues After upgrading subscriber to 2005
Hi There A while ago i migrated a 2000 database to a new instance of sql server 2005 and succesffully setup replication from a 2000 publisher. However to experiment i took an existing 2000 instance with a subscriber databases and upgraded the default instance to 2005. (Upgraded from 2000 Enterprise to 2005 Enterprise) After the upgrade the setup logs were all successful, i also run upgrade advisor before and made sure there were no issues. To see what happens i did not drop the subscription before upgrade (is this an absolute neccessity ) All i did was stop the distribution agent before upgrade, to see what would happen, i did ...Show All
SQL Server Execute SSIS package from asp.Net
Hi, I am a newbie to SSIS. I am trying to execute a simple package that I created from my ASP.Net application. I get the error 'DTSER_FAILURE'. Can anyone help Thanks Turn on logging, or supply an implementation of IDtsEvents interface to Execute() method to find out some information about the error. By the way, the most common problem: security, the package is executed under ASP.NET service account, not your domain account. ...Show All
Visual Basic oop question-refactoring and two classes communicating
So I had a complex class that seemed to be doing to much by itself. An order item class. So I refactored into two different classes. An order item class and an order size class. In an instance like this what do you think about the order size class maintaining a reference to the interface of the order item class. There are several properties of the order item class that I consistently need access to in the order size class. I know that a child is not supposed to know about the parent but what about in a case like this Thanks, Dean. It's tough to give detailed advice without seeing your object model, but my ...Show All
Visual Studio Team System Fxcop Custom Rule to check for Custom Controls
Hi, In my project we are using custom controls instead of normal ASP.NET controls. We have build an architecture on .NET and are using its controls. Example of custom control used in prj: xyz. ABC.WEB.CONTROLS.Label Now I need to write a custom rule to check for naming conventions like label name should start with lbl. Can anyone please help me out with code I hope the poblem is clear ..... in case of any further clarifications needed please let me know The FAQ on custom rules development has some useful pointers to sample code. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=66507&SiteID=1 ...Show All
