Chhaya's Q&A profile
.NET Development How to Zip files within a folder?
In my application multiple reports are generated and saved on server. I want to zip all these reports and keep a link on webpage so that user can download this zip. But I am not able to figure out a way to zip the files programatically..Please help me...thanks in advance.. Hi, if you are using .Net 2.0 or above you can use the System.IO.Compression.GZipStream to compress/decompress your data, see: http://msdn2.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx Mark. ...Show All
Windows Forms ListBox hot tracking
Hi, I think this has to be often asked question, but.. how can I make the listbox to fire DrawItem event with DrawItemState.HotLight Thanks ...Show All
Visual Studio Team System Is there any way to make GetItems NOT to return itself as a child?
Hi, when I do a GetItems it returns the list of child Items for a particular path in TFS. However, it returns also itself. Is there a way for this NOT to happen Thanks Little tips like this one are unlikely to appear in the official docs. I'll tell you how I found it: I ran tf dir foo\* from a tf.exe window that had logging enabled, then looked at the SOAP call. The wildcard was passed directly to the server, so I knew it would work for the API too. ...Show All
.NET Development Possible to register a C# program to the R.O.T. for OLE automation?
Hi all, I was wondering if it was possible to "register" your own created c# program for OLE automation This would be the equivalent of accessing something in Excel via OLE. Like: Dim ExcelApp As Object ExcelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") Edit: and just to clarify, I understand how the GetActiveObject works (by looking up the object in the Running Object Table). I guess I need to know if it is possible to register a program with the Running Object Table. That probably is my problem then, because the Namespace and class are not listed under the COM tab. Corey Edit: I modified my code to: [ComVisible(true)] [Guid("{6C3CCB0E-8968-4724-A ...Show All
Visual C++ static const member variable initialization
Hi, I want to initialize a member variable of a class by calling RegisterWindowMessage and i want to keep this variable as static so that this variable is initialized only once during the execution of the program. When i declare the variable as static, i am getting an error which says that only const static variables can be initialized within a class. When i make the variable as static const, i get the following error - Error 11 error C2057: expected constant expression I think this is because the value i am assigning to the variable is the value which the function RegisterWindowMessage will return and this will not be a const value. Could anyone please suggest a way out of this. Thanks in Anticipation, With regards, ...Show All
Visual Studio Team System Share
Is there share capabilities in VSTS source control as in VSS If not, how does one deal with files shared between modules Eric, see if this helps: Managing Dependencies ...Show All
Visual Studio Express Editions Runtime requirements for published application
Hi! I am a newbie to VB.net and I am currently busy working on one of my first projects. As I am nearing the end, a few questions have dawned on me. One of them is what the requirements are when I want to distribute one of my applications. I have used a few .NET references in my application, therefore: is it neccessary for the user to install the complete .NET framework 2.0 for the application to work properly Is there perhaps a smaller, "run-time" package (or something like that), that I can include with my application Thanks Johannes The entire .net framework needs to be installed on target computers for your application to run....you can download the redistributable package here: http://www.microsoft.com/downloads/de ...Show All
Windows Search Technologies Enormous number of items to scan
My indexing status shows 25,000,000 items left to scan and 19,000 indexed so far. I have chosen to index Outlook and My Documents (nothing unusually large about either). Is there a way to troubleshoot this I've resolved the issue by uninstalling WDS. I found that the disk queue length was permanently high until I stopped searchindexer.exe. What is irritating is that I now cannot search in Outlook, nor can I load Lookout anymore in Outlook 2007. Maddening. ...Show All
Visual Studio Team System Problem opening Excel Attachments
I can open all types of work item attachments through the work item form without a problem, except for Excel. When I try to open an Excel attachment I get the following errors: " '<filename>.xls' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding" (I press cancel) "Cannot access 'AttachFileHandler.ashx'" (I press cancel) same as 1. The item finally opens in IE with Excel toolbars A dialog appears with a link to the Microsoft Office Excel File Repair Log showing the following Errors were detected in file 'C:\Documents and Settings\collingridger\Local Settings\Temporary Internet ...Show All
.NET Development Error while accessing MS ACCESS database via ASP
Hi. I have a problem while accessing MS ACCESS database using ASP script (ADOBD class). Code looks sth. like that: set rs_del = Server.CreateObject("ADODB.Recordset") rs_del.MaxRecords=0 sql = "SELECT * FROM Users WHERE Index IN ("&rem_str&");" rem_str consists numbers which has to be extracted from database. This string (sql) looks like that: SELECT * FROM Users WHERE Index IN (5, 7, 8) When I try to open record-set rs_del.Open sql, con, 2, 3 I get an error message: Microsoft JET Database Engine error '80040e10' No value given for one or more required parameters. What can be wrong Beagging.... Don't beat me :( The table name was the table from ...Show All
SQL Server EXECUTE AS , fatal exception
Hi There If i add a new sysadmin login and that login is a user in a DB. If i execute the command EXECUTE AS 'LoginName': I get the following error: SqlDumpExceptionHandler: Process 57 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process WHats up with this If my dbo for this db is linked to a sysadmin login i have no problem with EXECUTE as 'dbo'. WHy do i get fatal errors when trying to execute as a a login name that is sysadmin On the net all referencing to the fatal error have nothing to do with EXECUTE AS Thanx Thanx Raul I will try the execute as login. Yes this database was upgraded from 32bit sql server 2000 SP3 to S ...Show All
Windows Forms Microsoft Browser Component INCOMPATIBLE with Internet Explorer 7 In Certain Cases
I have a discovered another bug :( . Microsoft Browser COM component does not work with .swf files with IE7 installed. Two users of my program have complained that it hasn't work, they both have Internet Explorer 7. I don't use webbrowser becuase...ITS BUGGED TOO (stupid Windows bugs)....flash buttons dont work in webbrowser so I am forced to use Microsoft Browser... What can I do to fix the problem Embedded swf files do work, but the the swf file directly does not work... But it's not embedded! The .swf file is direct ex. www.microsoft.com/something.swf Going directly to a swf file works in the .NET browser but the buttons don't work, and going directly to a .swf file in Microsoft Browser works with IE6 installed but NOT with IE7 i ...Show All
Windows Forms Fake key press
Can I cause a form to simulate the tab key being pressed. And in faking this press will the focus switch and all the things that go along with it. Basically when I press the tab key the first time some things on the form change, such as UICues, etc ... and I want this to be done without the user actually having to press the key. Any suggestiongs, the RaiseKeyEvent does not do it. you *could* use SendKeys to send "keystrokes" to the application which has focus, so you could send the TAB key. http://msdn2.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx but this would send the keystroke to the application that has a foreground focus. when this tab key is pressed in your application, have you implement ...Show All
Visual Studio Express Editions Taking a Break
Decided to take a break from the program I've been working on a play around with something else for a while. What I have done is drawn a rectangle in the paint event of a picturebox, and now I want to place a picture on top of it that is transparent in certain areas so that you will only see the rectangle where the transparency is. Can this be done The following works for me, where d:\temp\gif1.gif is a gif with a transparent area. Public Class Form1 Dim PB As New PictureBox Dim B As New Bitmap(200, 200) Dim G As Graphics = Graphics.FromImage(B) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' draw a rectangle on the bitmap G.DrawR ...Show All
Windows Live Developer Forums Parsing SearchTags
I've just recently gotten into development with the Live Search web service. I've already encountered a problem. The Result.SearchTags property is documented as having individual tags delimited by a comma. But, if a search tag contains a comma, it's not escaped in any way; which blows parsing SearchTags right out of the the water. For example, there's a meta tag at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=542568&SiteID=1 in the form: <meta name="Search.MSForums.ThreadName" content="Process.BeginOutputReadLine() just fires events all at once, not in real-time! "> The comma causes anything parsing the tags to think "not in real-time! " is a tag all its own. ...Show All
