MWatts's Q&A profile
Software Development for Windows Vista Firing a custom event in a workflow
How can I fire I custom event in a workflow. What I need to achieve is that, at some point in the workflow, I need to fire an event that has to be captured by the presentation layer. I have tried definig an event but I cannot subscribe to it. I would like to do somethink like the following: workflowRuntime.InvalidTokenDetected += delegate ( object s, InvalidTokenDetected EventArgs ex) Any idea how I can achieve this, or where I could find some sample or documentation.... Thanks, Marko Vuksanovic. You can't add an event to the runtime class itself, but you can create your own service which raises events and add that to the runtime. It would go something like this: Create an interface ...Show All
SharePoint Products and Technologies Multilanguage Forms
Hi, what is the best way, to develop multi language browser based InfoPath forms I did find some information about the Multilanguage possibilities of MOSS 2007. But I did not find any information about Multilanguage in InfoPath forms. I could create two different forms one in English and one in German. But as I understand, I cannot assign this form to the same form library, can't I So I would end up in two different form libraries and when I go to the English library the data is opened with the English form and in the German library I have completely different data but of course this is show with the German form. But I don't want to end up with two different libraries. Is there a possibility to configure a form library for mult ...Show All
Smart Device Development Setting the parent of a form raises exception in NET CF 2.0
Hello, I just ported an application from NET CF 1.0 to NET CF 2.0 (SP1) and I get the error System.ArgumentException: Value does not fall within the expected range. at Microsoft.AGL.Common.MISC.HandleAr() at System.Windows.Forms.Control._SetParent() at System.Windows.Forms.Control.set_Parent() at com.incahellas.FormHelper.PrepareForm() at com.incahellas.FormHelper.ShowForm() at pocketerp.Form1.MainWorkA() at pocketerp.Form1.set_Func() at pocketerp.Form1.Form1_Load() at System.Windows.Forms.Form.OnLoad() at System.Windows.Forms.Form._SetVisibleNotify() at System.Windows.Forms.Control.set_Visible() at System.Windows.Forms.Application.Run() at pocketerp.MainClass.Main() } whenever I try to set the parent of a form. Does anybody kn ...Show All
Visual Basic Cystal report loading time
I use vs.net 2005, I developed vb.net project with crystal report but its take time for loading compare than vb 6.0 data report. If any hot fix there. ...Show All
Windows Forms Small accounting application Big headache (SAAB-H)
Hello, This is part of a small database EntryForm. 9 TextBoxes: 1,2,3,Sum1 (all decimal(6,1), -- V1, V2, V3, EA, VTotal (all smallmoney) , --- EA (smallmoney). Three calculations: Sum1=1+2+3, V1=EA*1, Vtotal=V1+V2+V3. The order of the TextBoxes is 1-EA-Value1, 2-Value2, 3-Value3, Sum1-ValueTotal. The Sum1 and ValueTotal should be always updated regardless in which field the user choose to start entering data. The reason for the If, Else or If ElseIf statements is to always have some values in the TextBoxes. Note: All the TextBoxes.Text was stripped away to see better (1 is 1TextBox.Text, etc) Questions: How to initialize the Form without Fill (it always brings up the first record -eve ...Show All
Visual Studio Team System Test appears to hang on submitting a requrest
I've been recording web tests and using a MS SQL database to drive the data into the tests. However, when the test gets to around the eleventh data set it appears to just hang, and state that it's "submitting...". I've modified the timeout setting but this doesn't seem to make any difference. Does anyone have any ideas Olly ...Show All
.NET Development Checking if database is online
I am writing an application that retrieves information from one of two databases. My primary database is a Progress database which I use an ODBC driver to connect to and my second database is a SQL 2000 Server. I would like my application to always use the Progress database first and if it is not available then it should use the SQL database. My problem is that when I try to open the ODBC connection when the Progress database is offline my application hangs till I get an exception. How can I write a procedure to try to open the connection and then timeout if it has not opened in a given number of seconds or is there a quick way to check whether the databases are online. I need to do this for the ODBC and SQL connections. Any help would be ...Show All
SQL Server REport definitions
hi, I have created a report in RS 2005 but i want to use in RS2003 how i change the report definitions in the current report to make it compatable in RS 2003 Thanks in advance, Regards, Somu You can manually convert RS 2005 RDLs so that they can be published to the RS 2000 report server by editing the RDL and: 1. Change the overall RDL namespace Replace <Report xmlns=" http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition " ... > With <Report xmlns=" http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefinition " ... > 2. Remove the following elements entirely if present in the RDL file: <InteractiveWidth>21cm</I ...Show All
Visual Studio 2008 (Pre-release) Trying to run unit tests on a WinCE 5.0 device gives deployment errors.
Thanks to all the blogs and forum posts, I have managed to successfully: 1) Install a Virtual PC deployment of Orcas CTP (Jan 2007). 2) Connect to my WinCE 5.0 device from within VS9. 3) Create a simple app, deploy it and even debug it on the target. However... the whole reason for going through all this process was to see if I could get Unit Tests to run on the target successfully. I have been following Sriram Krishnan's blog post ( http://blogs.msdn.com/vsdteam/archive/2006/11/12/unit-testing-for-net-compact-framework.aspx ) at the very useful " Visual Studio For Devices " which covers the necessary steps for "Unit Testing for .Net Compact Framework". All seems to go to plan, until "Click on 'Run Checked Tests'&q ...Show All
Visual C# Create newline in text box?
Is there a way to create a newline in a text box I have tried "\n" but this doen't work in a text box. Thanks, Make sure that the TextBox’s Multiline property is set to true before trying to add new line characters. As for the newline character(s) themselves... in Windows \r\n is the proper string however you should think about using Environment.NewLine as it is a little more... platform independent. ...Show All
.NET Development difference between int.TryParse and Convert.ToInt32?
Hi experts can anybody tell.. Is there any difference between int.TryParse method and Convert.ToInt32 method Thanks in advacance Some differences: One can throw FormatException, the other doesn't (TryParse). One assumes (TryParse) there can be input errors and doesn't use exceptions for logic to handle data validation. ...Show All
Internet Explorer Development Create Word Documents from IE
I have a series of HTML input forms designed to create a form letter to be opened in MS Word. How is this typically accomplished I would like to also set the default directory, filename, and document type (.doc). Hi, Can you provide more details of from where you are trying to do this. If you need to write to the user's file system then you may need to use an extension such as an ActiveX control. Thanks -Dave ...Show All
Visual C++ Measuring Internet Explorer page load time and amount of data
Hi, Can anyone give any ideas on how to measure the time it takes to load a page and the amount of data transferred Any kind of ideas are welcome. What I want to do is: 1. Clear IE cache (i already know how to do this.) 2. Request IE to open a page 3. Get indication when the operation is complete (all available files downloaded). 4. Get to know the amount of data transferred ( and maybe number of files, etc..) I am planning to develop using visual C++. Can i somehow use WinInet to do this I also should be able to view the page in IE. Thanks, - Janne_K Please use the newsgroups at http://msdn.microsoft.com/newsgroups for such issue. OTP Thanks, Ayman Shoukry VC++ ...Show All
SQL Server visibility for a field
I have a field on a report where on occasion, will display 'PR'. We need to have this field hidden if that is the value of the field. I wrote an expression for visibility like: iif(Fields!ThisName.Value="'PR'", false, true), however it still diplays. Is there something else that I need to do here Thanks for the information I think I did find the problem. The data is being pulled from an AS/400 database through SSIS, but there are trailing spaces. So now I tried this =cstr(Fields!ThisName.Value).TrimEnd="'PR'"; however now I am getting "The hidden expression for the textbox "TTLNAME" contains an error: Object reference not set to an instance of an object." ...Show All
SQL Server SQL Backup hangs, server freezes
We have SQL 2000 running on Server 2003. The server has 4 GB RAM, RAID 1 and has the /3GB switch in Boot.ini. We have 6 databases, the largest is about 14 GB. Until recently I could use Enterprise Manager to perform database backups to a folder on the same server but now the operation fails. After selecting the location for the backup and clicking OK, the hard drive light comes on but goes out after 15 - 30 seconds. The progress bar does not move. I've waited and waited but nothing further happens and the server doesn't respond. The only solution is to push the power button and let the server re-boot. Very occasionally the backup will run for a minute or two and the progress bar might get to about one third of the way across, (in which cas ...Show All
