Answer Questions
markm75c NamedRange Binding
is it possible to bind a NamedRange spanning over multiple columns to a collection or datatable having several columns or properties. From what I read till now the binding of a namedrange is only to 1 field. NamedRange.Databinding.Add("Value2",datasource,"1column") can anyone help Hope this helps, if I am understanding you correctly. If nothing else it may enlighten you on how to do what you need.. In this code I take a dataset and paste it into Excel. The data has multiple colums. 1 Note TheSheet is a reference to the Excel Sheet. /// <summary>Take a dataset and load it into the sheet.</summary> /// <param name="ds">The target dataset.& ...Show All
lufa WinFx Runtime Components 3.0 Beta 2 install error
Hi! The installation of the mentioned distribution fails becouse of error, the log file is: [08/13/06,22:23:25] Windows Communication Foundation Beta 2: [2] Error: Installation failed for component Windows Communication Foundation Beta 2. MSI returned error code 1603 [08/13/06,22:23:43] WapUI: [2] DepCheck indicates WinFX Runtime Components 3.0 - Beta 2 was not attempted to be installed. I've tried the command: sc delete "InfoCard Service", but the answer is: [SC] OpenService FAILED 1060: The specified service does not exist as an installed service. It is a brand new installation of Windows XP SP2 with only Office and Visual Studio on it, so I haven't tried to install WinFx on it. Please help! ...Show All
Arun Manglick Questions about opening a new WPF window
Is it possible, when opening a new WPF window, from another winodw (for example window1 opens window2) to position the newely opened window in the centre of the window that did opening (window2 is in the center of window1). If yes, how can this be achieved Thanks in advance, Marko Vuksanovic. theres a windowstartup location property that you can use... ...Show All
lx Using the Hands-On labs with September CTP
Ok I figured out a few of the things I needed to change to make the InterceptorBinding code work in the advanced WCF hands on lab that initially targeted the June CTP. What I'm not able to figure out is this change to no longer use the "InnerChannelListener" from the ChannelListenerBase. I've found a handful of postings on using "GetProperty" to do it but I have not been able to implement it. This is confusing me a little, can someone explain this Below is my code for the InnerChannelListener property that does not like my setter because it's not setting an actual variable: public IChannelListener <TChannel> InnerChannelListener { get { return ( IChannelListener <TChannel>) base .GetProperty&l ...Show All
mikewo Executing Exe file in to ASP.Net
Hi, I want to execute a Exe file in ASP.Net when a button is pressed. Thanks, Kumaresh. Hi Kumaresh This forum is specific for questions concerning VSTO technology. It's not a general forum for asking questions about Office or anything else. For questions concerning working with Office applications, please see the "Please Read First" post at the top of this forum http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=174275&SiteID=1 In order to find out where to best ask questions concerning working with the .NET Framework and Visual Studio, ask here: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=881&SiteID=1&PageID=0 ...Show All
LearningVisualC2005 Pixel manipulation
How do I change pixels in a bitmap I've only seen examples of creating new bitmaps from an array of values, but I need to be able to set pixels in an existing bitmap without the overhead of re-creating it from scratch every time. Can I lock bitmaps like with System.Drawing.Bitmap and manipulate memory directly Not in XBAPs of course, but for desktop apps I think you want System.Windows.Media.Imaging.WriteableBitmap I've never personally used it so I can't give you much more advice than that. David *bump* Thanks, it looks like the way to go. Not very slick, feels almost like Win32 programming, but it should do the trick. ...Show All
rooooooodog Threading problem in WPF
I'm having a problem which I expect is by design, but I can't find any documentation on it. When I create an object on another thread and then try to databind to it from the UI thread I get a System.InvalidOperationException with the message "The calling thread cannot access this object because a different thread owns it." That seems to make sense. The object was created by another thread so access to it is restricted to avoid potential problems. It's just that owning thread has exited and I want to go on using the object. If the object has been stamped with the ID of the thread that created it, is there a way to change it Just out of interest, if I call Dispatcher.CheckAccess() before I databind the object it returns tr ...Show All
Richard Berg MSFT Deployment of VTSO solution developed in C#
Hi, I have been using Microsoft .Net 2003 (C#) and VBA to develop solutions for Microsoft Office 2003. Basically it is a user-template based solution. I want to migrate to Microsoft .Net 2005 and use VTSO to develop the solution for Microsoft Office (2003 and upwards....). It will be a Shared-Addins type of solution. (all the solution are for desktop-winforms) I want to know whether I need to deploy Office PIA to the user's machine when deploying the VTSO solution All the possible solutions are welcome. Also, Please suggest If there is a more better solution in VTSO other than Shared Addins Thanks Padmabhushan I recommend that you do not use the Shared Addins. Instead you need VSTO 2005 SE to create Addins ...Show All
Xtremer Which files are included in a .msm file?
Hello everyone, ich need to distribute a list of Visual Basic Runtime files. I downloaded the redistributable merge modules for Visual Basic 6, Service Pack 6. My problem is that i don't have a .msm file for every .dll file i need to distribute. For exampe i need to know, where is ASYCFILT.DLL included There are some more files that i need to know. Is there any webpage or tool that shows me which .msm file includes which .dll oder .tlb files Thank you for every hint or help you can give me. Best regards, Sven I found a way to see, whats inside a .msm file. For everyone who needs it too: http://www.hotan.biz/tools/msmfind.asp Its called " Merge Module Finder" and shows dependancies and include ...Show All
Visual C&#35; Novice Callback security question
Hi, I have a service with message security that uses a callback to send events with important data to client. My question is : Is true or false that a callback methods called by a secured service(message security) use the same security of service In term of performance and security for internet services what's the better : Transport or Message security Regards, Alexnaldo Santos Hello, The answer to the first question is yes; the same security settings apply in both directions. Thanks. See my comments in this thread for some data on the second question. As to the security aspect, transport security and message security offer different fe ...Show All
Chopta Where can I find resources or samples to configure a client and service properly?
Here is what I've done: 1. I created a service using VS. 2. The service endpoint is configured to communicate using wsHttpBinding 3. The service is hosted in a windows service 3. Created a client 4. Added the service reference using VS 5. After testing, both service and client work fine on the same machine 6. Move the service to a remote machine (out of LAN) 7. Added a service reference to that endpoint at the remote machine in the client application 8. The client is not able to connect to the service, however, I was able to get the test page and wsdl. What am I doing wrong Hello, What is the error in step #8 Thanks. Message: SOA ...Show All
George2 How to put new column into generated Listobject column
Hi, I got some serious problem stated following: Suppose I have Listobject bound with data and shown in excelsheet as: Col1 Col2 Col3 Col4 Col5 Col6 Col7 Here Col1, Col2,....... Col7 are generated columns into Listobject. Now I want to put two more columns (not generated automatically) into above excelsheet, so that now my above listobject has following columns: Col1 Col2 Col3 Col_new1 Col4 Col_new2 Col5 Col6 Col7 How can I make it possible. Thank you Ok great I will get to it right away. However, I wanted to inquire whether this has any relation with the way a ListObject is implemented i.e. whether my problem has something to do with ...Show All
kcchesnut .ForEach on Dlinq objects and Linq CTPs
In future version of LINQ will I be able to do a .ForEach directly on the Dlinq objects For example: var batches = from b in this.m_Database.Batches where b.EndTime == null select b; batches.ForEach(b => b.EndTime = DateTime.Now); Also will there be any other CTPs of Linq for Visual Studio 2005, or will I have to download the entire Orcas CTP if I want to use the newest features Thanks. Isn't that just the same as Select List<string> test = new List<string>(); List<string> result = test.Where(s => s.Contains("LINQ")).Select(s => s.ToLower()).ToList()); Also will we be able to .ForEach on a query For example: List<string&g ...Show All
Michael Dawson Reportviewer print dialog problem
My .NET version 2 application creates reports by calling a method from a dll (which I also wrote) which displays a form containing a user control which in turn contains a ReportViewer. I set the viewer's .ReportPath, .BindingSource, and .DataSource properties and call the .RefreshReport method. The viewer displays the report correctly. When I click the viewer's Print button, the Print dialog correctly appears, but I have to click the dialog's Print button twice to actually send the report to the printer. What could be causing this This should not be the case. I have contacted one of our support escalation engineers about this and he will contact you directly. I just need either your support case nu ...Show All
Jason Presley Styling Buttons using DependencyProperty
I want to create an ImageButton that uses three bitmaps for its various states. So I've created a 'ImageButtonStyle' that replaces its ControlTemplate with a custom ContentPresenter. I use triggers on this style to check for the button state. To determine which bitmap i have to use for which state, I've created a ButtonInfo class that can hold 3 Uri's (for each state) and some more info, like for example the text and the foreground color. An instance of this custom class gets created for each button and assigned to the content of the button. I then use binding (in the ImageButtonStyle) to access the properties of the content. So far so good: this works. I can see the button with the bitmap and caption. The problem is that I want to make t ...Show All
