hostile1's Q&A profile
.NET Development .NET 2.0 Error Reporting, Can it be disabled?
I'm not looking for a system setting, I'm not looking for workarounds... I want a way to disable it on an application basis, programmtically, in code, the way it should be. To require all developers to workaround, write perfect code (who does this anymore anyways ), or make huge try...catch blocks is ludicrous. The fact that we got by just fine with .NET 1.x and the way that all exceptions were handled, and without it calling for a WER. I know that some Microsoft personel read this, and I refuse to believe (or at least won't take it nicely) that there's no VIABLE fix. I can't request of my clients to _not_ click the send error repor ...Show All
SQL Server How to access report parameters in custom code
Hi, Below is a custom code function for my report. At bottom is the expression that calls the custom function. When I run the report I get an error message: "There is an error on line 3 of custom code: Reference to a non-shared member requires an object reference." If I take out the lines that try to access the report parameters then there is no error. Can report parameter be set/read from the report's custom code Thanks! Public Function FormatColorFirstName(varFirstName) As String Select Case varFirstName Case "John" & ...Show All
Visual Studio Express Editions Login control failing
I'm having problems with the Login control. I'm testing using a new application with one "Default" page. I've enabled ASPNETDB using "ASP.NET configuration", and set a role and a user. The Login control works when I run it from within Visual Web Developer Express. When I run the app from IIS using IE and try to log in I get: Cannot open user default database. Login failed. Login failed for user 'xxx\ASPNET'. I attach ASPNETDB (in App_Data) in SQL Server Manager Studio Express. I Add the user xxx\ASPNET, make ASPNET the owner of the database, try various other security settings (setting aspnet_ FullAcceess mapping ...Show All
Microsoft ISV Community Center Forums Help required.....
Can someone help me please I am trying to create a VBA User form to open up individual Spreadsheets rather than having to have all the sheets open (as with a workspace). I have designed the user form and now need to code the command_buttons. However I am stuck with what code I need to use. If it helps, I need to program 7 buttons, 6 will open spreadsheets and one will open a MS Project file. This is fairly urgent as I have to have ready for this afternoon. I know that I am cutting it fine but you are my last hope. I can use the workspace method if I need to but as I am only using a laptop with limited memory, it slows it down to a s ...Show All
Visual Basic Mass Rename of Labels (Reflection?)
I have a form with 500 labels (I know, sounds crazy, but there is a reason). Is there some way to rename them programatically I was thinking of Reflection, but I don't know enough about it. Alternately, could I create a array (or other collection) of the labels That would really be a great solution as I could then manipulate the contents easily. Thanks Roger Control arrays is the way to go, if you ask me. There's a great reference to this right here, too! http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=471714&SiteID=1 Hope this is handy. ...Show All
SQL Server Making FTP Task retry until file shows up
If I want to download a file, but I don't know if it's available yet (actually positive it won't be available for some time), how do I make FTP Task retry/wait until file shows up in the ftp folder You can have a loop that continues until you set a variable to a certain value to indicate success, In addition add a script task that has a line Thread.sleep(1000). That will sleep the package for 1second, you will need to add imports System.Threading to the Script task at the top. The other option is to schedule your package to run every minute or 5 minutes. This has the benefit in that you don't have a long run ...Show All
Visual Studio Tools for Office Named Ranges Events in Excel
When I use event handling on the change event of a named range it doesnt trigger if the change is made through a formula. Why i mean if a cell that has a change event and it has a formula the event doesnt trigger when the value is changed... please help..... Hello, This appears to be by design. Please note the following remarks from the reference topic for the NamedRange.Change event at http://msdn2.microsoft.com/en-us/library/microsoft.office.tools.excel.namedrange.change.aspx : "This event is raised if the NamedRange control is changed by either a programmatic modification or u ...Show All
Visual C# Ambiguity between methods ... Using method group?!
Why do I get the following message when I am trying to rebuild my solution ! Warning 1 Ambiguity between method 'Microsoft.Office.Interop.Word._Document.Close(ref object, ref object, ref object)' and non-method 'Microsoft.Office.Interop.Word.DocumentEvents2_Event.Close'. Using method group. C:\Documents and Settings\Charoite\My Documents\Visual Studio 2005\Projects\InteropProject\Microsoft\WordPrinter.cs 27 27 InteropProject Warning 2 Ambiguity between method 'Microsoft.Office.Interop.Word._Application.Quit(ref object, ref object, ref object)' and non-method 'Microsoft.Office.Interop.Word.Applic ...Show All
Visual Studio Express Editions Connecting to SQLExpress
I no it's bad form to cross post, however I posted this on the SQL forum and didn't get a response so thought I'd try. I'm sure this has been asked previously and serached the forum with no luck. I'm using vb05-express to connect. I create the db in the folder the program executes from. The connection string is as follows; Dim myCn As New SqlConnection myCn.ConnectionString = "Server=.\SQLExpress;Database=TestDb.mdf;" & _ &nb ...Show All
Visual Studio Dynamically Changing ConnectionString for reports' ObjectDatasource
Suppose that there is set of servers (in my case it is only one server, but I would prefer a more general solution), each with their own set of databases. All the databases have the same structure (for example, they are all editted copies of the Northwind DB), but contain different data. How can one write the report such that it can choose which database to use based on user-specified parameters When designing a report with VS 2005, the datasets are created and their connection is built and stored in web-config. At runtime, all related properties for these objects seem to be read-only. As such, I am unable to change ...Show All
Visual Studio Express Editions Network Applications with VB2005 Express a few simple questions????
Hi There, I know that this might sound like a foolish question but... I'm new to this programming so please bear with me Here Goes... If I want to develop a client/Server application, like say a front end to look at a large database and deploy it out to many clients across a LAN (not an Internet solution) then can I do this with VB 2005 Express edition I know that the SQL Express edition cannot be deployed on the network server but If I were to develop the APP in VB Express could I then use SQL 2005 Standard edition or would I have to rewrite my code to connect this app up... or to put it another way,&nb ...Show All
Windows Forms moving window with right mouse button
I'm using window without titlebar and I want to move it by dragging it with mouse. I tried: case WM_LBUTTONDOWN: SendMessage(hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0); break; case WM_RBUTTONDOWN:   ...Show All
Visual Studio Team System Reinstallation of Beta 3: Error 28704.Unable to connect to the Analysis server
Good afternoon, Yesterday I completed the installation of a single server instance of Beta 3. It worked (for the first time!!). The only problem, was that I couldn't see domain users from the Team Explorer. I put 2 and 2 together and realized that the problem was the service account. It was a local user, and didn't have rights to see the domain. So, I uninstalled TFS and STS. I deleted the DB's that got created, as well as the application pools and COM+ packages. And of course, an obgligatory reboot. After running through the setup a second time (and third and fourth :0) ), I hit a snag. I received a setup er ...Show All
Visual C# Writing a Graphic to file
Hi everyone, a graphics question for you: I have a graphic (not an image) and I'd like to write it to a file. The image class has a save method that takes a file name the graphic class has simply a save method (no paramters). I've tried casting my graphic to an image but it doesn't seem to like it, can anyone tell me how I can write my graphic to a given filename thanks in advance, Ed. Hi How can I put a Graphic in a Bitmap Thanks ...Show All
SQL Server RS 2005: Excessively Long String error when printing
I have a VB.NET 2003 WinForms application that contains a browser control to render reports within. I have a SQL Server 2005 Reporting Services instance - and through the RS site, the reports come up great, and print just fine. However, when pulling in the reports through the WinForms application, when trying to print - I receive an error. A message box pops up that says "An error occured trying to get the current window." The next message is: Line: 26; Char:4; Error: Marshaler restriction: Excessively long string. Code: 0; URL: http://svr-sqlreport1/ReportServer$QA/Reserved.ReportViewerWebControl.axd ...Show All
