Bill-R's Q&A profile
Visual Studio Displaying Mutiple Reports
Hi, I would like a sample of the coding required to display mutiple reports on one form. I have created four reports, have one form with the crystal reports viewer on it. The main report is linked to it, but I do not want to create a form and CRviewer for each report. Please show we the code needed to release a report and attach another. Most are using the same database... Just do CRviewer.ReportSource=<<The report name (including full path/ Object) you want to show>> That all it. ...Show All
Visual C++ Mixing ml64.exe and Win32 C++: is it possible?
I am currently running WinXP Pro on a dual AMD Opteron system. The development project I'm working on is a high-performance CAD/graphics program. The project is mostly Win32 C/C++, but we also have many specialized performance-critical subroutines hand written in assembler. These assembler files are part of the Visual C++ project and each has a custom build-step that uses ml.exe to compile. We would like to take advantage of the 64-bit registers in our hand-coded assembler routines. The use of the 64-bit registers would only be for mathematical computation, e.g., we don't need the full support of a 64-bit OS with 64-bit memory addressing. So ...Show All
Visual C# Registry
I was wondering if its possible to benchmark the registry Like total time to read each registry hive. If its possible any hints on where I can find out more information on how to implement this ...Show All
Visual Studio 2008 (Pre-release) Proper way to close from the AppStartup method
Is this correct void AppStartup(object sender, StartupEventArgs args) { Window1 mainWindow = new Window1(); mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; try { ContactList contactList = this.ReadContactsFromFile(); this.Properties["ContactList"] = contactList; mainWindow.Show(); } catch (Exception e) { MessageBox.Show(e.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); mainWindow.Close(); } } Specifically, I'm curious as to if I'm handling the catching of the exception correctly where I want to end the application if the data can not be read. (Seems odd ...Show All
SQL Server Command Line connect to SQL Server Database
I am trying to connect to the SQL Server database from the command line or from a cmd script on Windows - Is there a way to do this I am new to SQL Server and I am trying to create a script that can check to see if the database is up and then send me a message if it is down. osql.exe is command line client which allows you to establish a connection to SQL Server. Please try osql -E for trusted connection, or osql -U<login id> -P<password> -S<instance name> you can skip -S parameter if you have installed a default instance. In addition, use osql -U<login i ...Show All
Visual Studio Team System Web Deployment Project -> Team Build
Hi, We are having issues converting Web Deployment Project file as team build type. 1. We created a W.D.P file and successfully built using this in local machine. 2. In order to create a build type for web app, we created the W.D.P file and added to source control along with Team Build Types. 3. But in team explorer, we are not able to see the W.D.P file as a team build type, thus unable to build it. How can I do this Is there any changes to make manually in W.D.P file Even, any links to existing information would be helpful. Thanks, Praveen Praveen - you just have to treat wdp as any othe ...Show All
Windows Forms Error while accessing value of the control
Hi, I have two combobox filled with data in a window form. I also have one more window from in which I have declared two variables. Now my requirement is that how can we access selected value from the combobox in first form to the valiable declared into second form. How can we access selected value of the combobox from any place in the working application. If possibe please provide some example. Thank you Create properties on the form with your comboboxes and have those properties return the SelectedValue from the comboboxes. ...Show All
Visual Basic Updating underlying table
I have a form based on a BindingSource. The text controls' Data Source Update Mode are set to OnPropertyChanged. The FormClosing method (I almost said "event") has the line Me.nameBindingSource.EndEdit() Changes to the data in the fields on the form are not saved when the form is closed. How can I do this The BindingSource object allows binding and navigation of the underlying data. There should also be an associated TableAdapter object. You need to call the Update() method of the TableAdapter and pass it the updated data. (This is assuming you're bound to a database.  ...Show All
Windows Forms Problems with GetHicon method
I've a problem converting System.Drawing.Bitmap in System.Drawing.Icon using the GetHicon method. This is my code sample : private void pSetIco( int parNumImg) { System.Drawing.Bitmap b; b= new Bitmap( this .ilIcons.Images[parNumImg]); this .StartIcon.Icon = Icon.FromHandle(b.GetHicon()); } There are no runtime errors but the result icon is a black box. I've try to save the bitmap to a file and the file is ok. Can anyone help me I've fill the imagelist ilIcons by the form designer, I'm sure that the imagelist has the right images b ...Show All
Visual Studio Express Editions Is The OOP Microsoft.VisualBasic.IIf Equivalent To the Procedural If Then?
so I guess the thread was locked due to thinskinned vb'ers, unfortunately bronco has a fantastic question in his last post and it certainly warrants discussion. . . This Particular Microsoft.VisualBasic.IIf Is extremely important to me.... If Microsoft.VisualBasic.IIf is Equivalent to the Procedural "Classic" If then.... If it is Equivalent I can Transist to Pure OOP by using Descision Tables, Boolean Algebra and other CS techniques First, iif and If/Then have nothing to do with OO. Iif is a conditional assignment function . .. necessary because VB lacks a conditional assignment operator. if / then is typical ...Show All
Visual Studio Team System Team Project Creation Failed - TF30225: Error uploading report : Work Items
Howdy All, I can't work out why my Team Foundation Projects fail to create right at the end of the New Team Project Wizard. It appears to be a rights issue, but rights to what Report Server SQL Sharepoint Arrgh! Here is a log team project creation log: ------------------------------------------ .... 12/7/2005 11:47:45 AM | Module: WSS | Thread: 11 | Uploading file: Template Sample - Threat Model for Web Application.doc retry #: 0 12/7/2005 11:47:45 AM | Module: WSS | Thread: 11 | Setting the Work Item Tracking Query for file : Template Sample - Web Application Threat Model.doc 12/7/2005 11:47:45 AM | Module: WSS | Thread: 11 | Uploa ...Show All
SQL Server Doing a SELECT on a different field than the field in the GROUP BY
I'm using SQL Server 2005. I've got table tblSaleAddresses which looks something like this: AddressID SaleID Address1 Address2 ..... DateEffective ------------ ------- ------------------- --------------------- --------------- 1 100 Unit 20 100 Easy St &n ...Show All
Visual FoxPro Delete Printer Information from Reports
Dear Experts Out side Exe, I use following procedure to delete printer information from reports. lcPath = '' With Exe I do not distribute REPORTS Folder to clients. How is it possible to use following procedure in Exe, where there is no Reports Folder. Please Help LOCAL lnHand lcPath = "D:\GIN2006\REPORTS\" && modification is needed here in this line of lcPath lnFiles = Adir (laFiles,lcPath + '*.frx' , "A" , 1 ) lcMsg = '' FOR lnX = 1 To lnFiles IF Used (laFiles(lnX, 1 )) SELECT (laFiles(lnX, 1 )) USE ENDIF USE (lcPath + laFiles(lnX, 1 )) WAIT Window 'Processing : ' + Alias () Nowait GO Top REPLACE Tag With '' ...Show All
SQL Server Redimensionate parametervalue array
Hello, in reporting services I have to pass parameters as an arry, the problem is that I dont know the number of parameters that the user is going to select because one of those parameters is a multivalue parameter, So I used a constructor with a constant number of 10 for example, then I iterate through the checkboxlist to know which checkboxes the user selected, as I have 2 already know parameters, the number of parameters will be minimum 2 if the user doesnt select nothing on the checkboxlist, if the user selects 2 checkboxes list the parametervalue array will have 4 positions FILLED with data but the rest will be null, and I can send nul ...Show All
Visual Studio Default Printer
I'm trying to print a Crystal Report I created. I need to select the users default printer before I send the report to the printer. How do I do this in VS2005 ...Show All
