gameprix1's Q&A profile
Visual Studio Parameters / credentials?
Hi, I'm getting an "A parameter or data source credential is missing a value. Prompting for this value has been disabled. Supply a value or enable prompting." error when I try to show a report in a Windows Form with Local Processing. The "ShowParametersPrompt" and "ShowCredentialsPrompt" are turned on, but maybe the problem is I don't have a way to "link" the datasource parameters (its a stored procedure tableadapter) with Report Parameters in the report designer, as there is no DataSource pane in the .rdlc designer Also, I had to change to a filesystem path for the LocalReport property ...Show All
SQL Server Authentication an application using Windows Integrated Authentication
Hi all, My work is using a shared application which accesses a MSSQL 2000 database. To access the application, the folder on the Windows 2003 Server is shared and users can access the folder through a shared drive. For the application to access the database, it uses an ODBC connection to the MSSQL server which originally used the SA password. We have recently switched to using Windows Integrated Authentication because we believe it offers a higher level of security. However the only way in which we have been able to enable this is to add the windows users to the SQL server. The problem with this is that t ...Show All
Visual C++ Detecting compile in Studio 2005 vs. Studio 2003 or 6.0
I share common source code with several other projects that compile in Studio 2003, Studio 6.0, Borland, or (gasp) an embedded Green Hills compiler. Is there a #define I can look for so that I can fix all the deprecated CRT functions when I use the code in Studio 2005 (and so I can leave the old unchanged version in place for all the other folks) Something like #ifdef STUDIO_2005 strcpy_s(DestString, sizeof(DestString), SourceString); errno_t err = fopen_s(&fp, Filename, "r"); #else // for older compilers strcpy_s(DestString, sizeof(DestString), SourceString); &n ...Show All
Visual Studio Express Editions Adding Excel as reference
Hi, I just tried my program which references Excel 11.0 Object Library on a computer that has windows2000 and got a Runtime error. The computer that I programmed has windows2003. Am I correct to assume that this excel library is the problem I also see Excel 5.0 object library on my computer. Should I reference this instead I just want to make sure before I fix my code. Thanks you need to make sure that excel is installed on the target computer...and yes you must also reference the correct library version to match the installed version of xl ...Show All
Smart Device Development Opening xml file
Hi, I have an xml file in the form: < xml version="1.0" encoding="ISO-8859-1" standalone="yes" > <root xmlns:dt="urn:schemas-microsoft-com:datatypes"> <MyData> <MyOrders> <orders orderid="1"></orders> </MyOrders> <MyData> </root> It opens correctly in IE6, but when I try to load the file on a device by doing the following: moRecipes = New Xml.XmlDocument moRecipes.Load( "\My Documents\Personal\pmb.xml" ) I get the this error: XmlException XmlTextReader::Throw+0x32 XmlTextReader::Throw+0x32 XmlT ...Show All
Visual C++ make button invisible?
Hello I am trying to make a button invisible by using this->button1->Visible(false); this does not work - how should I do this Perhaps someone could explain why I am wrong in expecting the above to work! Cheers Geoff NNTP User wrote: You can't do this in C# either. Visible is a Control property so you use a setter to set it's value. C# Button1.Visible = true; Willy, My mistake - I should have said Java! Geoff C++/CLI Button1->Visible = true; Willy. < geoffacox@discussions..microsoft.com > wrote ...Show All
Visual Studio Tools for Office InfoPath - Explicit call to webservice in .NET code only works in debugging mode
I'm trying to make a call to a webservice in the FormCode of the InfoPath project. I have made a web reference in the project and call the webservice to retrieve some data. When I open the InfoPath form from the solution and preview the form everything works fine. When I publish the InfoPath in a local directory on my machine the webservice call is not executed but I don't receive an error message either. The webservices configured as an InfoPath datasource work correctly. Does anyone have any suggestions about why this doesn't work Thanks Daren, I configured the form with full trust and signed it, de ...Show All
Visual Studio vb and crystal report
hi, plesae i wanna know how can i change my source (to my database) connection to my crystal report in vb, not in crystal report; with oledb;i don't want to make a connection to my database from crystal but from vb because i have many database and i want to connect to them from vb dynamiclly and thank you a lot ...Show All
Visual Basic I don't know how to describe this problem
I have a tabcontrol that has tabs added to it when a menu item is clicked. Each of these tabs has their own set of controls. Each tab allows a file to be opened (via FileOpenDialog). When a file is opened, some of it's data is inserted into certain controls on the tab. Each tab has a button that is used to close the tab (using the Remove method). When the tab is closed and re-opened, the file is still loaded and the file's data is still present in it's respective controls. It might be useful to know that the file is stored as a byte array. (stored in b ) What I want is when I close a tab, then I re-open it, it is displayed as if no fi ...Show All
SQL Server Cannot connect to named analysis service
I am trying to use SQL Server Management Studio to connect to a named analysis service running on a local machine (XP Pro). The studio can see the analysis service because the dialogbox of "Browse for Servers" shows the correct analysis service name, but it just cannot connect to it. I stopped and restarted the service, rebooted the machine, uninstalled and reinstalled the analysis service. Nothing works so far. I can connect the database engine server or reporting service on the same machine without any problem. Could anyone offer any type of hint for me to address this problem Thanks in advance! H ...Show All
Visual Studio Express Editions Install a database..
Can I install a database in windows xp home edition ... I don't see any reason why you couldn't. http://msdn.microsoft.com/vstudio/express/sql/download/default.aspx The SQL Express download page just says XP, so I assume you'd be fine. Is this what you mean by a database Do you have a programming language such as C# or VB.NET installed to write code to interact with the database ...Show All
Visual Studio Tools for Office Wrap VSTO Projects in other Projects?
I am looking for suggestions or direction on a project. I have come across a couple of samples that relate to Office Projects that I want to wrap inside of a large VS.Net project. My problem is this, from what I can see, Office Projects connect to one document each, but in my case I have one dataset that feeds and builds 8-12 different document templates. I am using the WordReadWriteadoVB Sample as my framework, but need to be able to use several document templates with the same codebase. Any Suggestions or other places I can look for docs Thanks; Daivd That makes sense, but where I am going is that the client will be deli ...Show All
Visual C++ cannot find file "msvcr80.dll
When I run Norton it says it cannot find mscr80.dll and cannnot fix it. Tells me to reinstall it. so how do I do this In all missing 11 files that say I need "mscr80.dll. Than You Debbie Debbie M wrote: When I run Norton it says it cannot find mscr80.dll and cannnot fix it. Tells me to reinstall it. so how do I do this In all missing 11 files that say I need "mscr80.dll. Than You Debbie Whicn Norton product are you talking about ...Show All
.NET Development Multi tables in database programming and exception handling
Im trying to code a system together via database programming with vb.net 2 questions: 1 - my system has several tables within the database. at the moment i am at the adding phase. i want to add customers to the customer table but havent yet dictated the fact that i want it to go into the customer table. surely i must do this and if so how 2 - When i run the system at the monent it comes up with the following error: Unhandled exception of type 'systems.data.olddb.oledbexception occured in systems.data.dll this happens as it gets to the ObjInsertNewCusDetails.ExecuteNonQuery() as emboldened ...Show All
.NET Development Storing and Retrieving Connection Strings
There is an article on msdn2 ... see http://msdn2.microsoft.com/en-us/library/ms254494.aspx which suggests that you can add this for the app.config file: <connectionStrings> <add name="DatabaseConnection" connectionString="Persist Security Info=False;Integrated Security=SSPI;database=Northwind;server=(local);" providerName="System.Data.SqlClient" /> </connectionStrings> and this in the code Option Explicit On Option Strict On Imports System.Configuration Module Module1 Sub Main() Dim settings As ConnectionStringSettings settings = _ ConfigurationManager.C ...Show All
