hendrik swanepoel's Q&A profile
SQL Server Export to a Text file in SQL Server Express
I have a table in a database has the same filed with a text file: RBW_AR_BOT_REC Size Comment Justification Padding record_id 1 'R' None None date 6 MMDDYY None None time 4 HHMM (24 hour time) None None cust_num 8 1 - 9999999 Right Zero odometer 6 0 - 999999 Right Zero receipt 8 1 - 99999999 Right Zero exception_customer 1 '0' = No '1' = Yes None None valid_void 1 '0' = valid 'v' = void None None Justification Padding ...Show All
Visual J# Have Exception.Message display Exception.getMessage()
Hi; When our J# code thows an exception that is derived from java.lang.Exception, then in C# it is a System.Exception and the Exception.Message is "Exception of type 'net.windward.tags.TagException' was thrown." It would be a lot more valuable for us if System.Message was the string returned by TagException.getMessage(). Is there a way to do this thanks - dave Hi, I assume that you want to display System.Exception.get_Message() instead of java.lang.Exception.getMessage(). To acheive this you can Catch exception of type System.Exception and extend your ExceptionClass from System.exception. Sample code: public class Class1 { public static void main( String as[]) { try { i ...Show All
SQL Server Alerting operators for all jobs
Hi there, I'm not sure which section this really comes under and I think 'availability/disaster recovery' is probably the most applicable, sorry if it isn't. I have SQL Server 2005 set-up and about 50 jobs listed, now, these jobs were configured before an operators with alerting by email was set-up... so, none of the jobs when fail alert an operator. Is there any way I can automate a solution so if any job fails a designated/or default operator will be emailed and told what happened Or would I need to edit each job manually to set this Thanks Ed ...Show All
Visual Studio Viewing reports hosted on report server 2005 from asp.net 1.1.4322
Is there a ReportViewer Server Control that can be used to view reports from a 1.1.4322 ASP.NET web application, where the reports are hosted on ReportServer 2005. The sample report viewer that shipped with Report Server 2000 is very different from the Report Viewer control that ships with Visual Studio and doesn't support nearly the same level of integration with your application. But it does view reports published on a report server, so it certainly can work for some scenarios. Report Server 2005 continues to support the 2000 soap endpoint, so there should be no problem using the sample as is with a 2005 report server. What problems are you running into when you use it directly ...Show All
Visual Studio 2008 (Pre-release) Forms , XAML , Events
Hi Just to get started I created an new WPF project. . I want to add an event to an button I drop to the form (Designer shows me it is the XAML file) The button is shown in the designer and the code in the XAML is generated. But first tehres no context menue on any Form or its components. So I show it manually via the VS Menu. But there no events From one point of view this is correct because XAML is only an "Designer Format" but so how can I create an Click event to the button In the Code file theres no reference to the button of the form. The Second thing is that I want to show in a really fast way some text. Which method is the most performant in .NET 3.0 to draw text by myself Thanks for your help Boas ...Show All
Software Development for Windows Vista Amazon has started shipping "Essential Windows Workflow Foundation" by Dharma Shukla and Bob Schmidt
Checkout http://www.amazon.com/gp/product/0321399838/701-4039502-0810749 ie=UTF8 Update: Mine arrived today - Oct. 18. Update: As Don Box mentions in the Foreward to this book: "Something big is about to happen". I believe WF represents a dramatic shift in how we will think about application design and implementation ...as dramatic as the shift from MS-DOS to Windows. Here's some quotations from the Preface: "[WF] is a general-purpose programming framework for creating reactive programs that act in response to stimulus from external activities. The basic characteristics of reactive programs is that they pause during their execution, for unknown amounts of time, awaiting input." "The WF runtime is a meta-runtime that build ...Show All
Software Development for Windows Vista Selection rectangles
Hi, I have an activity designer based on "Workflow designer rehosting sample", but I can't remove some features, wich I don't want to have. This are the followings: 1. rectangles with dots on the corner around the selected activities 2. dots on the and of the selected connector lines 3. the name of the activity class, wich follows the dragged activities inside the designer 4. "Print preview", "Zoom level" and "Pan" icons under the right toolbar Does sombody know, how to remove these things I tied to ovewrite the OnMouseDown and the OnProcessMessage of the ActivityDesigner in case of point 1., but it didn't help. Best regards : Laszlo Hi, Thanks, it works really, the ...Show All
Visual Basic Using Enter To Tab Forward Through User Entry Fields
Does anyone know how to incorporate the enter key to tab through entry fields instead of using buttons My code is below. I want the user to press the enter key to move from one field to the next and at the same time, have the code perform the same action(s) as if it were a button handle event. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim file As System.IO.StreamWriter Dim aString As String = CStr (TextBox1.Text) Dim TestLen1 As Integer = Len(aString) If TestLen1 <> 5 Then aString = "a c" file = My .Computer.FileSystem.OpenTextFileWriter( "C\:record.tx ...Show All
Microsoft ISV Community Center Forums worksheet_change and data validation
Hi there I have an Excel spreadsheet in which one column has data validation set. So the cells in this column have drop-down lists with the pre-set allowed values. Now I want the cell in the neighboring column to be set to some default value when the user selects an item from the drop-down list. This seemed like it would be easy, using the Worksheet_Change event handler. When a cell in the first column is changed, it initiates a function which sets the value in the neighboring column to some default value: Target.Offset(0,1).Value = "default". The problem is that it doesn't work when using the drop-down list. If the user types in the value manually, or if a cell in the first column is deleted, it DOES fil ...Show All
Visual Studio SP 1 Beta - Should I install ??
Just saw the download. As a light duty developer, is it stable enough for me to install, or should I wait for release Advice welcome Thank you completely up to you. However its advised always by Microsoft, and by myself, to not install it on a production environment for obvious reasons. Try it out on a test machine before applying it on your main machine and see what happens. There are still a known few issues but generally should be ok. Again, test it on a machine before applying it to your main machine just in case ...Show All
Visual C# how to delete a row in both listbox and database
Hi every body I have a table in sql server2000 database with 2 field table1(id integer primary key, name char(10)); then I load this table into dataset and show it by a listbox ( the list box has only field " name" ) My problem now that I dont know how to delete a record in database when I click a row in my listbox and click button "Delete"; Could you give me an advice in this problem thank you very much. DongMT Thank Shivam I know about ADO.net but it is not my problem my problem is how to delete a record in databse with a list box ( not contain key field) and a Delete button thank for reply ...Show All
Visual Basic Making WithEvents Global in all Classes and Subs
First off, you guys are doing an awesome job on these help questions. I know you can solve my little problem easily. I am trying to save some coding by making WithEvents more global. See attached code. I am trying to eliminate the highlighted areas. I have to reference and pass those event variables thousands of times in the code. It is messy. Old Code (Main Class) Public Class LineClass Dim WithEvents ELink1 As EVOLib.elinkClass Dim WithEvents EVO As eurovoiceObjects.EVOVoice End Class Public Class NewUserClass Inherits LineClass Public Sub NewUser( ByRef EVO As eurovoiceObjects.EVOVoice, ByRef ELink1 As EVOLib.elink ) EVO.PlayFile(VoxFile( "boygirl" , EVO , ELink1 )) ' If you ...Show All
Visual Studio 2008 (Pre-release) Install Problem - VS 2005 Step
I am having an Orcas install issue I have not seen in the forums yet. At the end of the install there is a step that seems to launch VS.2005 in the background and eventually it crashes and I get the "Relaunch VS.2005 - Send Error to Microsoft" dialog. After that the Orcas install rolls back. I ran the Microsoft .Net 3.0 Uninstaller before attempting the .NET FX RC1 install and have uninstalled / reinstalled VS.2005. .Net FX 3.0 apps do run fine on this machine (Microsoft Max and other programming samples) Any ideas or install switches I can try Adam Hill VS 2005 Professional from MSDN DVD's VS 2005 had been/is still working fine on this machine. I can launch the ID ...Show All
.NET Development how to connect programatically to another workstation?
Hi everyone, I was wondering how to connect programatically to another workstation of my own domain. I've got an ASP .Net page which might retrieve all the services in each workstation. Now I'm seeing those are mine. Any fast sample or link related would be very appreciated (either vb or c#) In fact, I'm trying to replicate the same behaviour when you're going to 'Computer Management' and choose 'connecto to another computer' Thanks in advance for your input and comments, Yes, You can do it but not purely from ASP.Net but you need to use Windows Controls and Embed it in the Web page and do all your work in that. This is quite easy but running this is a bit tricky, you need to work with Security settings! Please Hav ...Show All
Windows Forms Usercontrol inheritance stopped working in designer (VS 2005)
Hi all.. I am creating an application that uses UserControl inheritance. I declared the base UserControl as abstract and derived from it 5 forms exist. When I used the designer, I could see visually all of the inherited controls. Until now. I don't know what happened but when I try to see any inherited control in the designer, the following error is shown : The designer must create an instance of type 'Gama.Tablas.Maestras' but it cannot because the type is declared as abstract. I haven't done any code change to the inherited forms. I tried by exiting VS and running it again, and the same happens. Any help would be greatly appreciated. I think it is unuseful to post the code, because it is the same code VS creates when a new ...Show All
