Answer Questions
Sachitha Binding Custom .Net Entities to WPF controls.
Hi, Need to know the changes to made to a .Net custom entity/ entity collection to make it bindable to a WPF control. Currently I have custom .Net classes with properties and that gets loaded in a collection and this collection would like to bind it to a wpf control. Need to know what are the changes that need to be made to make it bindable to a WPF control Thanks Sai you can use them as they are, no changes need to be made, if you dont want any notifications of property changes etc. you can just bind the collection and set Itemtemplate or something similar to display properties of the entity As said before, if you want to bind to your objects, and modify their values from your templates, ...Show All
JUANCARLOSR clipboard notification
Simple question: Is there a way to be notified when the content of the clipboard changes Tom ...Show All
TRID PrintLayout Problems
Hi, I'm currently experiencing a bug where the report is never finished rendering after switching to the PrintLayout mode for the second time from the normal mode. Here's how I get the bug to occur: 1. Start the ReportViewer (WinForm) control in Normal mode. 2. Switch to PrintLayout mode. 3. Switch to Normal mode. 4. Switch to Print Layout mode. The ReportViewer control displays the refresh spinner forever. You can press the refresh button to finally load the report, but is there a work around for this Thanks for any help or suggestions. Kevin Hi Keven, I tried to repro your issue but I couldn't. are you using s special report can you share more info about the repro ...Show All
Yosef Karasik Using a Setter in a DataTemplate's DataTrigger, to modify a Property of data object?
I have a DataTemplate for ListBoxItems, in this template I would like to use a DataTrigger that triggers on the ListBoxItem's "IsSelected" property beeing set to false, to change a property of that databound object. Is this possible with pure XAML (I.E instead of subscribing to the ListBox' SelectionChanged event, and from there change the property.) Josh Smith wrote: This blog post shows how to do that: http://www.infusionblogs.com/blogs/jsmith/archive/2006/08/09/699.aspx Unfortunatly this doesn't say anything how to set a property on the databound object. (The object that is the content of the listboxitem) Sam Bent - MSFT wrote: ...Show All
ACCOUNTINGONLINE.US WCF Client Behind ISA: HTTP Error 407
I am moving this thread to WCF from .NET Networking and Communication Situation: We have to connect to a 3rd party XML Web Service outside our LAN by adding a WCF Service Reference to a simple console application Problem: When attempting to invoke any of the generated client class methods, we recieve the following error: "The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. )." In old style ASMX Web Reference: TheServiceWse client = new TheServiceWse(); client. Proxy = new System . Net . WebProxy( "ISA Server Name" , 800 ); client . Proxy ...Show All
daviddou2006 Way to use interactive sort with "High" "Medium" "Low"?
I'm looking for an idea about how I can use the interactive sort to allow me to sort a column containing "High" "Medium" or "Low" so they will display in that particular order when sorted. With the default sorting it sorts alphabetically resulting in a "High", "Low" "Medium" or Descending "Medium", "Low", "High" Thanks in advance! I finally answered a question (even if it was my own) just incase anyone else runs into this: set up a formula in the interactive sort: =iif(Fields!Volume.Value ="High", 3, iif(fields!Volume.value= "Medium",2,1)) Works like a charm! ...Show All
Charlie Audritsh Variable to store a range of a document
Is it possible to take a selection and store it in a variable. I want to open a document select all the text in the document and store it in a variable. Then open another document and insert that selection multiple times through out the document. Ultimately I may have a number of variables with a selection that I will insert in various points of the application. Yes. Word.Selection mySelection = this.ActiveWindow.Selection; Thank You.... ...Show All
Preeteesh Basic setup project for VSTO includes primary DLL with document.
Question I am trying to create a install project for an Excel VSTO solution and following the Installer Walkthrough #2 example. Upon running into problems with the install, I decided to piecemeal the actions into step by step process in a new project to determine the failure point of the original setup project. When I created the new setup project to just install the primary output of my Excel VSTO project, I dutifully told it not to install support dlls by excluding them in the install project. When I ran the installer, it installed my Excel file and the primary VSTO dll which sits behind it as well as the config settings file. My question is this, “ Can one install only the Excel file using the Microsoft I ...Show All
railguns Release Images from process
I have an ASP.NET application to generate pages for a magazine. To generate this pages I use WPF, I call a new Thread with a STA Appartment. Thread call = new Thread(new ThreadStart(Generate)); call.SetApartmentState(ApartmentState.STA); call.Start(); In the magazine I'm generating I use some images that I can download from the web, after downloaded these images are stored in a server folder to be used later by WPF to generate the pages. The problem is that after generating the pages I want to delete the images, after the process is complete and the application process keeps locking the images. I've tried to terminate the process using the images, but it seems that it is the webserver using the images and the only way I f ...Show All
gon_no1 Session data or how to implement a client side transaction
I've got a three-tier-setup: 1) Client tier. Using WCF to communicate to tier 2 2) Middle tier. Listens to WCF and uses TSQL to communicate to tier 3 3) SQL Server 2005 as database tier. A client opens a client proxy, sends a command to the middle tier, and closes the client proxy after use. The middle tier, when called, opens a SqlConnection to the SQL Server, does its stuff, closes the SqlConnection and reply to the client using WCF. This is working nicely, transactions in the middle tier work nicely, but how do I start a transaction initiated from the client, across more than one WCF call For this I would need to keep the SqlConnection open and reuse it, but where do I store it How do I recognise the client aga ...Show All
giddy Can a Report have multiple subreports?
I'm trying to add two subreports for a main report. But I could not figure out how to have the event handlers for the two subreports. Is it possible to have two sub reports If so can someone shed some light on how to process them Thanks You can have multiple subreports in a report. The SubreportProcessing event will fire for each of the subreports each time it appears in the main report. There are samples for both the winforms and webforms viewer controls at www.gotreportviewer.com. ...Show All
Richard from Kent how to use "savefiledialog" in event handler "DocumentBeforeClose"
hi, I want save word file in my format, so I catch the Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeCloseEventHandler and implement it, but in the handler "savefiledialog" cannot be used--nothing shown on the window. Thank you very much. here is the part of code: ... Word.Application WordApp = new Word.ApplicationClass(); ... wordDoc = WordApp.Documents.Add(ref missing, ref missing, ref missing, ref missing); ... wordDoc.Application.DocumentBeforeClose += new Microsoft.Office.Interop.Word.ApplicationEvents4_DocumentBeforeCloseEventHandler(Application_DocumentBeforeClose); ... public void Application_DocumentBeforeClose(Word.Document doc, ref bool cancel) { &n ...Show All
bvanderw DataContext
What is the difference between DataContext="{Binding Source={StaticResource myDataSource}}" and DataContext="{StaticResource myDataSource}" where myDataSource is a DataProvider. I know this is a bit quite confusing, when you use StaticResource extension here, you will get caught by an exception, with Binding extension, it works properly, I think the MSDN documentation explains it very clearly: ObjectDataProvider allows you to instantiate your object in Extensible Application Markup Language (XAML) to be available as a binding source To put it simple, ObjectDataProvider is only used as binding source. Sheva Thank you Bea. You guys are absolutely in the right direction. Drew's comments ...Show All
lcj symbols are not loaded
I want to debug one file say temp.cs which is in C:\My Project\Src directory its projects dll are in C:\My Project\bin\debug folder Now my application is running from in d:\application\dlls..................in this folder both dlls and pdb are there.......... I want to debug my above temp.cs file.............but symbols are not getting loaded............. what may be the reason i want to know how debugger works Can anybody help me....... The PDB files do not match the DLL being loaded into the process. You could check the modules window to see where your DLL is loading from (and more importantly what the date/version is of the dll being loaded). You can also modify the symbol search path (U ...Show All
Michael Adams How to integrate AJAX with WPF?
Is it possible to do interoperability between AJAX and WPF If its possible ,plz tell me the way Are you talking about WPF or WPF/E If so you might want to check out this blog: http://weblogs.asp.net/mschwarz/default.aspx I don't see the suitability of using AJAX with WPF as it does not use the Javascript engine, which is what Ajax is all about. However you could easily make Web Service or WCF calls from your application, which are supported very well. Can you explain what you are trying to do ...Show All
