Rob P's Q&A profile
SQL Server Programmatically Accessing Report Item Properties
Hello All, I have been racking my brains trying to figure out how to access the properties of the Report Items in a given report. I would appreciate any help in this direction. The task I am faced with is to break up a given string i fetch from the database and and distribute it over 3 different textboxes in a report. For this, I was thinking of creating a custom assembly with a function which takes in the string and size (width and height) of a textbox, the font information (family, size etc) to determine what substring will fit into the ...Show All
Visual Studio Express Editions Variable String and its textchanged event
Hi, I'd like to know if something like an event "textchanged" (such the event of a textbox) it's possible for a public string variable... for example: Public str As String Sub str_TextChanged(...) End Sub Now I use a timer, that every 0,1 second read the variable value and tell me if the value is changed. This method is not good when in a routine the value of the variable changes more times... Thanks Paolo You can't use it directly on a variable, but if that ...Show All
Visual C# how to insert a new line programmatically in a richtextbox control?
in my form load event i want to set \n newline rtb.Rtf = string1 + \n + string2 + \n + string3 the output should look like this: string1 string2 string3 i got it, i added these lines: if (i == 0) { toAppend = "\n\n" + rtb2.Text .ToString(); } else { toAppend = rtb2.Text .ToString(); } ...Show All
Windows Forms Can I suppress ValueChanged?
In my .NET2 (C++) application I have NumericUpDown boxes. I use the ValueChanged event to trigger commands which are then stored in an undo list. When an undo is requested, I query the command for the previous value and place this back into the Value field of the control. Now this then triggers a ValueChanged event which puts a command in the undo list -- not what I want! I can avoid this by setting a flag to say "don't add commands when an event arrives", but I was wondering if there was a better way to reset the value without triggering the event. The undo value is by construction valid since it was retrieved from a validat ...Show All
Smart Device Development problem with device emulator on platform builder for windows mobile 5.0
Hi , i have downloaded the image to a target device using platform builder for windows mobil 5.0. i navigated to target menu--connectivity options----kernal service map. In the Target Device box, i have selected "CE device" . in the download box , i have selected "device emulator" In the transport box, i have selected "Emulator". when i try to attach the device. am getting the error saying" Install virtual pc network driver". i installed virtual PC network driver. still am getting same message. cld u please let me know where the problem Thanx Venkatesh ...Show All
Visual Studio Team System State&Reason fields
hi, i am trying to populate my drop-down boxes on the web interface with the correct fields i.e. state - active,resolved, closed, reason-... the state and reason fields are linked in team system, is there a way to call any methods to populate the drop-down boxes with what it should be, or do i need to manually code all field values and link them thanks, Daz Tony's right - field's list of allowed values shows only items that are valid for the current state of the work item. I can suggest two things: - Use FieldDefinition.AllowedValues. However, in this case you'll get all states for all work item ...Show All
Visual Basic Very slow speed on displaying controls in a form
How to improve the display performance on dynamics create controls on form load event The following code is very slow. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Location = New Point(0, 300) Me .Size = New Size(800, 300) Me .Refresh() Dim but As Button Dim x As Integer Dim y As Integer Dim bHeight As Integer Dim bWidth As Integer bHeight = 48 bWidth = 48 Me .SuspendLayout() For y = 0 To 4 For x = 0 To 14 but = New Button but.Location = New Poin ...Show All
SQL Server FTP task fails when run as a scheduled job
I've created an SSIS package that retrieves a file from an FTP site. When I create an SQL Agent job to run the package on a regular basis, it fails. It seems that the password isn't kept (even though I set Remove Passwords to FALSE). I've looked at the connection string in SQL Agent, and it seems to be missing key information, like the user name and password, but it is unclear what the correct syntax should be. The error messages are completely unhelpful. Thanks, Warren The default security.protectionlevel property for packages is EncryptSensitiveWithUserKey. When SQL Agent calls a p ...Show All
Windows Forms Skinning resources
Anyone know any good skinning resources I'd like to make an app that is skinnable but don't quite know where to start lookin at how to design a skinnable interface for the app.... Thanks in advance! What the heck!! Sorry about that! Try <a href="http://www.msdn.microsoft.com/library/en-us/dnadvnet/html/vbnet01142003.asp frame=true">this one.</a> I guess with some& ...Show All
Visual Studio Express Editions Uses of VC++
What does it mean on the download/install page where it says: "You can use Visual C++ Express to build powerful .NET Framework applications immediately after installation. In order to use Visual C++ Express to build Win32 applications, you'll need to take just a few more steps." And is there a button to compile and run your C source code without messing around in a cmd window Hi! It's advertisement :) Visual Studio have "Run and Debug" button by default on toolbar (F5) and Ctrl+F5 used to "Run without Debug". It will compile source if necessary. ...Show All
Windows Forms Open HTML documents in Microsoft Word
Hi, I have to edit HTML files created in Word for an application im developing but im having a problem. When i open a HTML file, the file is opened in Read-Only mode. The code i am using is the folowing: oWord.Documents.Open(FileName:=_File.FullName, ReadOnly:=False) Im need a solution desperatly. Tks Ricardo Francisco try the FileInfo class Attributes property using ...Show All
Visual Studio "Load Report Failed" error CR10 .Net Windows service
I've been looking all over for an answer to this issue. Here's what I've done: Created a windows service in Visual Studio 2003 with VB.NET that is basically a task scheduler. It runs on a Windows 2003 server. Users can schedule a crystal report to run. When they do this, the service launches an excutable that tries to access the report on a different server. If I set up a test project on my dev machine, it works. If I install it as a windows service, then it's a no go. I'm guessing it's a permissions issue, and I've read a lot about people having this problem trying to access reports using ASP.NET (seems the solution in their case is usin ...Show All
Visual FoxPro Pageframe and Pages
I have a pageframe with 5 pages. Each page is linked to different table; the table each linked by unique field. I also have the wiztxtbtns at the bottom of the form outside the pageframe. This is what I want to achieve.When I run the form, all the pages should show details pertaining to the first record. Also, when adding a new record, I give the new key field number and it should accept details for that on all pages and when I hit Save, the details should get saved. The same has to happen when I use any of the keys like Next, Prev etc... If key field value is 1 on the first page, it should be the same on the o ...Show All
Windows Forms ToolStripMenuItem (image and text) disabled causing "Out of memory"
I have a context menu with menu items having images displayed next to the menu text. When I disabled one menuitem in runtime, the app. crashed with Out of memory exception. I could work around the exception by setting the toolstripmenuitem's image property to null before disabling it. However, I think this shouldn't be this way, could this be a bug or I did something wrong. Please help. Thanks. There's a wonderfully un-detailed MSKB article about "an OutOfMemoryException when you run a .NET Framework 2.0-based application". That's the only detail of the circumstances. Might be worth getting the ...Show All
SQL Server Possibly similar issue with launching Report Builder from client PC's
Hi, I got a working installation of reporting services 2005 up and running, Im able to create models and launch the Report Builder on the machine on which the server is installed, however if I try and run it from another machine on the network I get an error and Im able to view the following exception. Following errors were detected during this operation. * [04 Jul 2005 10:39:34 +01:00] System.Deployment.Application.DeploymentDownloadException (Unknown subtype) - Failed while downloading http://testserver/ReportServer/ReportBuilder/ReportBuilder.application - Source: System.Deployment - Stack tr ...Show All
