Answer Questions
devilforger34 LaunchDebugTargets2 error code -1989083115 (0x89710015)
Hi, I'm trying to launch a custom debugger from a toolbar item in C# as specified at http://blogs.msdn.com/dr._ex/archive/2004/04/21/117770.aspx . IVsDebugger2 debug = (IVsDebugger2) GetService( typeof( SVsShellDebugger ) ); VsDebugTargetInfo2[] targets = new VsDebugTargetInfo2[1]; targets[ 0 ].bstrArg = ""; targets[ 0 ].bstrCurDir = "c:/some/path"; targets[ 0 ].bstrEnv = ""; targets[ 0 ].bstrExe = "test.exe"; targets[ 0 ].bstrOptions = null; targets[ 0 ].bstrPortName = null; targets[ 0 ].bstrRemoteMachine = null; targets[ 0 ].dlo = (uint)DEBUG_LAUNCH_OPERATION.DLO_CreateProcess; targets[ 0 ].LaunchFlags = (uint) __VSDBGLAUNCHFLAGS.DBG ...Show All
awsiv How to save and retrieve data entered in the Custom PropertyPage in Outlook using VSTO?
Hello, I have created a custom PropertyPage that shows up in the Tools/Options form. The custom control has various UI controls (e.g. text box, dropdown etc.). When a user enters these values and clicks on 'Apply', how and where do I save the data (without requiring any special security access on the client machine) so that next time when Outlook starts, I can restored the data Also, if I need to retrieve these values of PropetyPage from some other form, how can I access these Options values thanks in advance, -Bijal Bijal, There's no built-in mechanism in Outlook to store these settings. You can use the registry (HKEY_CURRENT_USER) or you could write to a configuration fil ...Show All
StephenMas Running .NET 1.1 apps w/ Crystal Reports in ASP.NET 2.0
I have been having some issues attempting to run .NET 1.1 compiled applications that use Crystal Reports IX when they are referenced in an ASP.NET 2.0 application. My 2.0 application references a number of DLLs that were compiled in .NET 1.1 and uses CR for the bulk of its work, but whenever I call the code that loads the reports, I get an exception "Load report failed". It does not seem to matter whether I load the reports from a server location or from a location on my machine and it does not appear to be an access-related issue since I am able to read from the directory where the reports are located using simple System.IO commands. This is happening both on my local machine and on the server that will be hosting the website. ...Show All
gourmete Suspending the Word background repagination
Hi, How can I suspend the Word 2003 background repagination while I update a document. Suspending this is necessary because of the amount of changes on the document. I have found the Word.Application.ScreenUpdating property setting to false, it's ok but still not enough, this does not disable the background repagination. Thanks in advance: Kazi My phone is 77p-979-8811 and email is sandy.luttrell@hp.com Hi, You need to use the Pagination property on Options. If you are calling from inside of ThisDocument, the following code will work for you: this .Application.Options.Pagination = false ; Sincerely, Geoff Darst Microsoft VSTO Team ...Show All
StarRrr Drag and drop in XBAP
Hi May I know whether the XBAP applications can support drag and drop When I tried drag and drop in a custom control I got SecurityException upon hosting in XBAP appln. Detials: Request for the permission of type Permissions.UIPermission failed. on line DataObject do=new DataObject("Item",this); which resides as follows. class MyControl :ContentControl{ override MouseDown(..){ on line DataObject do=new DataObject("Item",this); //Uses this do obj to call method DoDragDrop() later } } Please let me know ,how to avoid this.Are there any other good practices to do the same Thanks in Advance Joy Hi Joy, According to this article: http://msdn2.microsoft.com/en-us/libr ...Show All
Bander ALSHARFI How do I do a Copy task to do "xcopy dira\*.dll dirb"?
Hi; I think I read somewhere about <ItemGroup> is resolved before any tasks run and so will not include files created during a build. So how do I do the equivilent of "xcopy dira\*.dll dirb" thanks - dave ps - and why doesn't the Copy task support syntax that simple: <Copy SourceFiles='dira\*.dll' DestinationFolder='dirb'/> You've asked the same question before http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1002281&SiteID=1 ..I guess it has to do with that this way it is more "strongly typed" and you can pass along various metadata with the individual items if need be ...Show All
Kaos Where to start with sessions
Hi I am reading the WCF doc for RC1 at the moment. I try to figure out how I may handle sessions. My first problem is that I do not know if I understand the same meaning for "session" as WCF do. For me a session is for example: A database client connects to a database. With the connection a session will be established, which will be closed if the client wil shut down or the user logs out. A windows forms application connects to a windows service to do some work. A session will be established and hold as long as the client application is connected (session is secured with user credentials) So far about my understanding about sessions :) Now I am looking for a possibility to manage sessions via WCF. I have 2 service contracts (IM ...Show All
coachdunlop Listview: dynamic loading content possible?
I've got a listview containing a GridView. I'd like to fill the content of this listview dynamically. So, instead of loading all my items (could be thousands) into an observablecollection I'd like to give the ListView the count of items, and just load those items that are displayed right now. To get this data from the database is no problem, but I need a way to know which lines I need to load to be displayed right now, need to know when scrolling, resizing or similar is changing these. Is there any known way to achieve this Thanks, Sam Listview be default uses VirtualizingStackPanel. If you set breakpoints you'll see that even if you bind a collection of 1000 items to Listview, only the visib ...Show All
Sundaar Error: Mapping not found in workspace
I just start a new model from a simple database and receive this error when I try manipulate some data: The mapping for Entity Container 'ADONextLib.ADONext' was not found in Workspace. The samples from the CTP is working properly. There is a connectionstring in a .config file called "ADONextLib.ADONext" In order to better answer your question it would help if you could share with us your .csdl file and the code where you setup and try to use the context. In general what this message is saying is that the system was unable to find some of the metadata it needs in order to be able to interact with your database. - Danny Occurred that in sometime I clicked in SSDL, CSDL ans MSL files and exclude from pr ...Show All
Mitesh Shah923 Smart Tag dependency on .Net 1.1
We are targeting Office 2003 with Framework 2.0 only on the machines. This presents a scenario where the Smart Tags does not load even when the CASPOL is set for Framework 2.0. We have applied the solution as defined at http://support.microsoft.com/kb/908002 however this does not seem to have any effect. I was however able to make the same code built on Framework 2.0 work in Office 2007/Vista using the new PIA's for Office 2007. I have noticed a few posts indicating the solution is to have Frmaework 1.1 deployed, this presents another issue as each framework is about 26 MB and Change Management Solutions used to deploy these will have to pull it all over the network. Does anyone have an answer or any ideas, thi ...Show All
Redfox72 Bug? ToDataTable has some trouble with some public properties
Been messing with ToDataTable for about 3 hours tonight. In Andrew Conrad's description of the ToDataTable method here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=504990&SiteID=1 He basically says the method creates a DataColumn for each public property. Some public properties cause problems. Here are some issues where it has problems: 1. Public properties with no get method throws an exception (which I reported in another post). 2. I believe it has problems with public properties that are indexers..I guess, such as the String classes' Chars public property. Here is some code demonstrating the problem: string[] names = { "Alan", "Bryan", "Charlie" }; DataTable dataTable = names.To ...Show All
Frederick_France Full multi-tier ASP.NET code generator recommendations?
A bit off topic but ...I'm thinking that many people who are interesting in ADO.NET vNext/MS EDM will also have experience with some of the better ASP.NET code generators on the market. Any recommendations ...for a full multi-tier code generation solution Thank you, Michael. Deklarit is good and quite interesting. You can declare your "model" if you will and the database and ASP.NET can be generated. You can also choose to use an existing database or mix existing tables with newly generated ones. The generated applications are fully templated and include ASP.NET, Winforms and Mobile apps. Check it out: http://www.deklarit.com -Trevor Anyone looked at Iron Speed Designer ...Show All
Dan Rooney How to adjust layout properties of UserControl in code?
I try to add a tabitem in code: TabItem item = new TabItem(); Button btn = new Button(); item.Content = btn; Then I find the new created button fill the TabItem. Now I modify the code: TabItem item = new TabItem(); MyUserControl btn = new MyUserControl ();//MyUserControl inherited from UserControl item.Content = btn; I find the size of MyUserControl is fixed no matter how I adjust its width and height. What's the difference try setting HorizontalContentAlignment and VerticalContentAlignment of the usercontrol to stretch Remove the width and height settings in UserControl should be ok. Thanks. ...Show All
pdurbha WDP, WMP or HDP -- which is it?
Okay, let me get this straight: WDP (Windows Digital Photo), WMP (Windows Media Photo) and HDP (High Def Photo) are the same thing. Correct The webpage leading to the specifications ( http://www.microsoft.com/whdc/xps/wmphoto.mspx ) says WMP has been renamed to HDP. So okay, we should call it HDP. But the specifications itself says HDP is also called WMP. But then again, the only working file extension at least under Windows XP is .wdp. This is seriously frustrating because when I write the file format anywhere (in an open file dialog for instance), I have to write all three names to be clear. Sooner or later this has to change. So do we call it WDP, WMP or HDP Please say HDP by the way, because WDP and WMP have no chanc ...Show All
Abhishek Chadha Multithreaded in Per session
I should 2 thread in the same proxy. i have one Service object per client proxy. there is no real soultion to the problem i can not simultaneously access the service with two thread If you set ConcurrencyMode on ServiceBehaviorAttribute to Multiple in your service, you can have multiple threads using the same instance concurrently on the server. mjm With PerSession, each client proxy will have its own Service Instance and the instance will hold state for that client. In your case, you are using the a single proxy (on two different threads) which means there will be only one Service Instance and that's probably why you seeing the Reentrant behavior. So,Iam not sure if t ...Show All
