xkx32's Q&A profile
Visual Studio Tools for Office Need solution for Excel 2007 Data/View file format
Hi Guys! I need to create a solution where [1] Create a Excel template file [2] Define some kind of [content control] like we can do in Word 2007 [3]Should be able to just replace data file[xml] so that data can be filled This all things I want to do using Open XML format. no using OM. is there any one who has done this kind of solution or any suggestion I am looking for solution for power point 2007 also if any one has one. THanks Sharad Hi Sharad, Have you tried using a Named Range control Content controls are only in Word. You can then use the VS databinding features to bind the control to a data source. Rufus ...Show All
Windows Forms DataGridView Color swapping Problem
I am having a DataGridview in Windows Forms. I have created some comboBoxcolumns and TextBoxColumns in DataGridView by coding. whenver i am clicking on textbox column and then selecting some value from Comboboxcolumn then whole combobox column is getting displaying in inverted color i.e. background color of that combobox is coming black anbd forground color is coming as white. I have trapped comboBox selected event by this statement. DataGridViewComboBoxCell dgcb = (DataGridViewComboBoxCell)dgvEntry[dgvEntry.CurrentCell.ColumnIndex, dgvEntry.CurrentCell.RowIndex]; If i am commenting this statement no color swapping is there. ...Show All
Visual Studio 2008 (Pre-release) how to keep doc file in document viewer
hi, how to place word file in document viewer. can any body help me Thanx Ramakrishna. K You will find some info here http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=654959&SiteID=1 ...Show All
.NET Development computer name to ip address c# Activator.GetObject
Hello How do I get the ip address for computers in a workgroup General Context >>>>>>>> C# Programming Language Windows XP Yes Windows Workgroup .. No Domain Controller .. No Active Directory Network Connections Properties Client for Microsoft Networks .. F and P Sharing for MS Networks ... NetBUI Protocol... Internet Protocol (TCP/IP) Activator .GetObject(elided) works and remote call is successful on single computer and cross computer is successful as desired. Ping IP address is successful. And file sharing is successful between the computers. Connectivity exists. Cross Computer Activator .GetObject(elided) works ONLY with ip addresss of remote computer, not name. I walk to the other com ...Show All
Visual Studio Team System Defining groups of tests
Some of our automated tests take too long to run very frequently and some also need an interactive session/console. We want to define one set of tests that would get run frequently and another set that can be run optionally, from time to time. But we'd like to keep all the test code in a single assembly. There is a priority attribute on a TestMethod, which seems useful for this purpose, but I could not find how to tell MSTest to only run the tests with a given priority level. Any recommendations Thanks, Julien If you want to do that from the developer edition, the only solution (since you want to have all tests in the same .dll) is to use this third party Test Manager Add-In: http://www.ekobit.com/testmn ...Show All
Commerce Server Order Service Agent failed
I can no longer retrieve orders (this was working correctly till yesterday). I get this message in the Event Log. I am quite sure no proxy or URL information has changed. Creating the Order Service Agent failed for Commerce Server Orders Receive Adapter . Please check that you have a valid URL and that it is accessible. If the URL is valid, please check that you have configured your web proxy settings correctly . Message Index (zero based) must be greater than or equal to zero and less than the size of the argument list.. Stack at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at Microsoft. ...Show All
.NET Development OpenSSL and SslStream
Hello everyone: I have a question. Is it possible for a client written in OpenSSL (C) to talk with the server written in .NET (C# using SslStream class). Because afaik, SslStream has methods such as AutheticateAsServer and some others which do all the low level magic for you, but in case of OpenSSL you have to take care of establishing a connection, and exchaging CipherSpec data and all other stuff involved in the handshake and the subsequest data exchanges. Could you give me some pointers as to how to achieve this kind of interoperability Thanks, Santosh The thing is that I am not able to visualize how the corresponding code would look like. Now that I know it is supposed to work, I will try to come up with a mashup and get back to ...Show All
Visual Studio 2008 (Pre-release) Help, why wcf become very slowly after I refresh some times.
Hi, All: I need help now, thanks. we use wcf in our web project, yes, now it can work. But After we refresh web page some times, it will become very slowly and timeout at last. we do not kow the reason, and we want to know how we can fix this issue. Thanks. sample code: [DataContract(Namespace = "Company.Core.Services.Patient.PHR.Contracts")] public struct Allergy { private string _conceptCode; [DataMember] public string ConceptCode { get { return _conceptCode; } set { _conceptCode = value; } } ...... } [ServiceContract(Namespace = " http://Company.Core/Patient/PHR/Allergy ")] public interface IAllergy { [OperationContract] Allergies ListByEnvironmentFood(); ....... } ...Show All
Visual Studio 2008 (Pre-release) Package/ZipPackage: VERY BAD behavior with low disk space
I already posted this in the 'MSDN Connect' feedback center, but this is bad enough that I hope someone here can provide more immediate feedback. Essentially, ZipPackage.Close can fault in low disk space conditions meaning that you can't successfully Close ('Dispose') the Package. In turn, this leaves a FileStream instance lying around (internally owned by the ZipPackage), and that FileStream will throw an IOException (out of disk space) when the finalizer thread runs. Since the finalizer thread can run at any time, this means this un-Disposed Package (and its accompanying FileStream) is a time bomb waiting to happen! Here's the simple code sample. You'll need to compile it with a reference to WindowsBase (for packaging support), ...Show All
Visual C++ MSVCP70D.dll vs MSVCP80D.dll
Hello, I am having problem running a VC++ 8.0 project in DEBUG mode. The project uses a third-party DLL build with VC++ 7.0 for which I have the Debug and Release version. The project builds without any errors for both configurations Debug and Release. When I run the project in Release mode the application runs as expected without any run time exceptions but when I run the project in Debug mode I get the following run time exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Can someone help me with this issue I think that this error has something to do with the fact that the DEBUG version of the third-party library uses the MSVCP70.dll library and my project/appli ...Show All
Visual Studio Still not getting the ans. about VB 2005 Crystal Report XI R2 with MySQL 5
Dear All See this Code : Public Sub rptprint( ByVal rpttest As String ) Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument connmysql = New MySql.Data.MySqlClient.MySqlConnection connmysql.ConnectionString = ( "SERVER=server;DATABASE=database;USER=user;PASSWORD=majaz;PORT=3308" ) connmysql.Open() damysql = New MySql.Data.MySqlClient.MySqlDataAdapter( "Select * from asset,location" , connmysql) damysql.Fill(ds) crReportDocument.Load(Application.StartupPath & ( "\\Reports\\" & rpttest & ".rpt" )) crReportDocument.Database.Tables(0).SetDataSource(ds.Tables) CRTViewer.ReportSource = crReportDocument CRTView ...Show All
SQL Server Grant Database Access
I am setting up report services after I installed the report server add-ins on sharepoint 2007. at first step, Reporting services integration, I put report server web service URL -- http://ssrsdev1/reportserver authentication mode -- windows authentication it went OK. at second step, Grant Database Access, I put ssrsdev1 for server name (default instance) and then click OK and then I put the user name (a member of local admin group on ssrsdev1) and password, but I always got errors says: Unable to log on with the given username and password. what wrong here what should I check I am sure the user and password is right and I can log on to ssrsdev1 physically with admin right without any problem. thanks for any thought on this. zwp ...Show All
SQL Server SQL Server 2005 non-ansi joins: Any easy solutions?
My company wants me to research and flags or registry tricks that would allow non-ansi joins '=*' and '*=' in SQL Server 2005 with a compatiblity mode of 90 to be allowed. The way I understand the situation is that in SQL Server 2005 with the database compatiblity set to 90, non-ansi join SQL such as the following would not work. Select * from Customer, Sales Where Customer.CustomerID *= Sales.CustomerID To work, the SQL above would have to be converted to ansi join SQL such as the following: Select * from Customer LEFT OUTER JOIN Sales On Customer.CustomerID = Sales.CustomerID Many hours would be spent browsing through millions of lines of code to find the non-ansi SQL and have changes made. Does anyone know of any trace ...Show All
Visual C++ Can I Use C++ To Process HTML?
I really don't know any of the commands that deal with HTML in c++. Can anyone tell me if this is even possible Ok, say I know the URL of an HTML file from a website. I'll put this URL in the pointer URL. Now is there a way that C++ can get this HTML file that contains the code for a web page from it's URL Like if the URL was microsoft.com, could it grab the HTML document that creates that page If that is possible could it search through the HTML file for a specific string If this is possible, can someone please show me an example thanks, Mark As said previously, there are multiple solutions. I forget what most of them are. You should ask this question in an IE programming newsgroup; it is outside ...Show All
SQL Server SSIS Error with duplicate IDs of copied packages
Hi, I recently encountered an error when I created several copies of one package. It's always nearly the same package with small modifications. I call this packages from a parent package which is part of our datawarehouseing-framework. The problem is, when copying a packages or using a packages as template the packages' IDs and Task's-IDs are the same. And this isn't only an issue concerning logging!! : When the parent package calls one of the copied packages the first task is executed in every package parallely. Furthermore ... when I for example set a breakpoint on a data transformation task in one of the packages, the breakpoint is set in all packages on the same task! This is resulting in strange errors because the tasks-st ...Show All
