Zadoras's Q&A profile
Visual C++ Application not running on test machine despite providing redists
I am encountering a strange error. I am trying to run an application in a test machine(VS2005 is NOT installed on it).I am getting error " This application has failed to start because the application configuration is incorrect " The application was built in release mode. I am using MFC as a shared dll and The application folder includes redists -- mfcm80.dll;mfc80.dll;msvcm80.dll;msvcp80.dll;msvcr80.dll;Microsoft.VC80.MFC.manifest;Microsoft.VC80.CRT.manifest I am using functions from msi.lib in my applications. This application runs fine on my machine (has VS2005 installed). Why is this happening http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802& ...Show All
.NET Development Connecting vb.net to Access form
I want to be able to connect vb.net to an access db I have variables with values from vb.net that I need to use I created a form in access of textboxes, all individually labeled. is there a way I can connect to Access and be able to fill this form's fields and "hit" the submit button to populate this DB Thanks in advance!! ok i guess it would. I just need to be able to ensure that I can get specific variables into specific fields in the DB. Which i'm sure is possible. How would I go about connecting to Access and inserting the proper variables inot their respective fields I've never connected to Access and have done very little with it due to being a college student. (IT major) The most I have done is conne ...Show All
Visual Studio Express Editions Copy, Cut and Paste Functions in VS2005
Hello-- I am trying to implement the copy, cut and paste functions in my program. However, it does not appear that Visual Studio 2005 supports getting the selected text by using the ActiveControl object like VB.NET 2003 did. Is there an easy way to copy the selected text of any control to the clipboard Thank you for your help, Dave Hello I am after the same information - how in the world to Cut / Copy and Paste. I have an MDI application , and many controls on the forms. I want to be able to cut the selected / copy the selected or paste into the selected text. Does any one know how to do this ..in VB NET 2.0 (vs2005) Also I have this Code Dim AnMDI As Form = ActiveForm.ActiveMdiChild AnM ...Show All
SQL Server Using Back Button in PrintLayout mode causes crash
I'm using a number of drill-through reports, which are working great. However, if I have drilled through to another report (enabling the back button) and then go into print layout mode, and click the back button while in print layout mode, the report viewer becomes completely unresponsive. It's easy enough for me to simply not push the button, but if users encounter this error they'll have no choice but to end-task (crashing the viewer and the application that called it), which could result in loss of unsaved data. Has anyone else run into this problem/discovered a fix for it Thank you, Jeff On further searching for a fix for this issue, I turned up two other threads that seem to be exactly th ...Show All
.NET Development Logon failu unknown user name or bad password
Hello, Using VS 2005 Beta (VB) I would like to read a network share in the form of: \\192.168.1.10\c$\ - Using the DirectoryInfo object. However when I try that I get the error: Logon failure: unknown user name or bad password How can I either popup a box for the user to type in the username or password or embed it into the program Hi Vikram, I am trying to save file from one system to another system (connected in lan). Actually I am taking database backup through my application (.net).The database backup file will be stored in the system (in specified folder) where the SQL server is. Now I have to store the database backup file in another system connectend in LAN . While I am trying to do the same using File.copy("",&qu ...Show All
SQL Server About @@ERROR in SQL 2005 online book
Here http://msdn2.microsoft.com/en-us/library/ms190193.aspx it is explained that @@ERROR will be cleared and reset. But here: http://msdn2.microsoft.com/en-us/library/ms190248.aspx http://msdn2.microsoft.com/en-us/library/ms187009.aspx we still see: IF (@@ERROR <> 0) SET @ErrorSave = @@ERROR Chester Is there a question here I assume you are asking if @@Error is reset during the IF statement. If you read the first link, it says NO. http://msdn2.microsoft.com/en-us/library/ms190193.aspx @@Error is reset by the next TSQL command. IF is a conditional statement and does not reset the flag. ...Show All
Visual Studio Tools for Office Filtering programatically an existing PivotTable
Hello experts. I have an Excel worksheet that has a Pivot Table, what I need is to use VSTO 2005 to filter the data. Is there any way to acomplish this Thanks! Hi, The following shows the basic way to filter an existing PT: Friend Sub Filter_PT() Dim p_wbBook As Excel.Workbook = Globals.ThisAddIn.Application.ActiveWorkbook Dim p_wsSheet As Excel.Worksheet = p_wbBook.Worksheets( "PT" ) Dim p_ptTable As Excel.PivotTable = p_wsSheet.PivotTables( "PTTest" ) With p_ptTable .PivotFields( "CategoryName" ).CurrentPage = "(All)" With .PivotFields( "CategoryName" ) .PivotItems( "Condiments" ).Visible = False ...Show All
SQL Server How do you hide items in the Report Explorer Web Part?
Does anyone know if it is possible to hide a report in the report explorer web part in sharepoint. I have a report that can't be run by itself. It can only be run when you click on a detail line from another report. Thanks. Yes that option hides items in the list view but not in the detail view. But it only does this in the report manager page. We are using the Report Explorer Web Part. Users run reports from a wss site not from the report manager page. ...Show All
SQL Server Internal error using TimeSeries
Revenue 4 GB (4086 MB) Partitioned into 12 partitions (about 340 MB each) The count of records : almost 16.8 millions Each partition has approximately 1.4 million records Algorithm chosen : TimeSeries Time Key : Period (6 digits integer with values range from 200501 to 200512, integer values) (Non-time) Key : Telephone number, variable-length string/text, max 15 char Input-and-predicted column1 : SLI007 Input-and-predicted column2 : SLI008 I have set the value for PERIODICITY_HINT to {12}. I created the project 3 times in 3 machines. All fail. The error message is the same : Internal error : An unexpected exception occured. Internal error: An unexpected error occurred (file 'dmtimeseries.cpp', line 646, function 'DMTimeSeries::ProcessCase ...Show All
Visual Studio Express Editions how some help fix my code?
'Create a new MailMessage object and specify the"From" and "To" addresses Dim Email As New System.Net.Mail.MailMessage(" From@abc.com ", " To@abc.com ") Email.Subject = "test subject" Email.Body = "this is a test" Dim mailClient As New System.Net.Mail.SmtpClient() 'This object stores the authentication values Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential("username", "password") 'Put your own, or your ISPs, mail server name onthis next line mailClient.Host = "Mail.RemoteMailServer.com" mailClient.UseDefaultCredentials = False mailClient.Credentials = basicAuthenticationInfo ...Show All
SQL Server Unable to connect
I am unable to connect SQL Server Management Studio to any of the databases on my computer. At this stage I am simply starting the Management Studio and asking it to connect to a database I made a few months ago before this connection trouble arose. I'm specifying the server name "BENCHLAP" which is the name of My Computer, using Windows Authentication. The error I get is: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) The client is local. At least, it is if I unders ...Show All
SQL Server Using customly created RDLC Files - Please help with this
Hello, Could someone please help me on this, I desperately need an answer, thanks :) The current situation is as follows: I have an application that generates reports. These reports are built into the system. So they compile with the system into the exe. Amongst these reports are sub reports. Now I would like to create a custom report during runtime, manually, from scratch, using an XmlTextWriter. This I've acheived. However, I would like to access the built in reports as subreports from this customly created report. I've tried various solutions, but it seems that the customly created report needs to be in the same directory as the subreports. I've looked at various threads, and websites for this but there isn't a clear solution anywhere. ...Show All
Windows Forms Combobox in DataGridView Cell problem
Hi all, I hope this is a simple problem that someone can help with. I have a windows application with a DataGridView. The last three columns of this grid contain combo boxes in each cell linking to three different lookup tables on our SQL server. When a useris using the application and they select one of the options from the drop down list it displays no problem, they can then click a button to save changes. The problem lies if the user makes a mistake with the drop down choice. If i want to leave the field as a null value there is no way they can delete the choice in the combobox. To try and get round this i created a null entry in the lookup database but this created a different problem. With this in place when a user selects the values ...Show All
.NET Development How do I insert DATE into an ODBC database?
Hi everyone, I am writing a collection of functions to allow access to an ODBC database. I am able to read and write most things, but I am struggling with the following. I am trying to write a function that will allow me to Insert a DateTime object into an Access database. The field MyDate in the Access database is set as type Date/Time. My code is as follows: public static void dbInsertField( string Table , string Title, DateTime Date, int Index) { // Build INSERT command string string InsertString = "Insert into " + Table + " ( " + Title + " ) values ( " + Date + " ) where Index = " + Index; OdbcConnection MyConnection = new OdbcConnection (conne ...Show All
Windows Forms this.Close not working but this.Hide is working
Dear All, First I have a login page upon verification of the user name and password I will take me to my main form. Currently this how my code works upon verification UserName.Text = "" ; Password.Text = "" ; this .Hide(); Form formMain = new Form (); formMain = new fMain (); formMain.Show(); Then I notice that I should not be using this.Hide cause it uses up my memory and my program is always appearing in my task list of my computer. So I decided to replace this.Hide() with this.Close(). Once I replace my formMain.Show() doesnt show up can some one help me pls. Thanks. I assume your login form is your startup form. When you close it, your pr ...Show All
