Answer Questions
Alexey Rokhin Problems launching Word from VS
Hi, I am new to VSTO. I bought myself the book ”Visual Studio Tools for Office using C#...” and simple copy-pasted a code-simple which should add a custom command bar in Word. When I click the “start debugging” button in Visual Studio (2005) and Word is launched, I get the following message: “Office document customization is not available The customization assembly could not be found or could not be loaded. You can still edit and save the document. Contact your administrator or the author of this document for further assistance.” How can I fix this problem I am using: - Office 2003 Professional with SP2 update - VS 2005 - VSTO 2005 And here is the beginning of t ...Show All
Jakein2006 Visual Studio .net 2003 Help does not work
Hi! I have found yet another problem. I am trying to read through the tutorials that came with this progam and sadly, it does not work either. I get a server not found error in what looks like a browser incorporated in the software. Another thing that was interesting, the registration for this software does not appear to work either. Is this why I am seein visual studio .net 2005 There is so many bugs in 2003 that they decided to release a new version as a cleanup 2 years later It doesn't give you a nice warm feeling. I am new to programming with the visual studio tools so if anyone could point me to a service pack or something that could fix these problems, that would be great. kalias :( ...Show All
lefnire Problems with DSL Tools Version 1
Hello I recently installed Visual Studio SDK September 06 which includes DSL Tools V1. The new features are really great and I was stunned what progress was made since the last version. But now I encountered two problems. A small one and a bigger one. Let's start with the bigger one: I created an language called ETDL. In the Debugging solution, when I create a new ETDL file, I'm able to open it in the designer and add shapes and connectors and stuff. But then, when I close the file and reopen it, I get an error saying "Cannot load xxx.etdl: An item with the same key has already been added." or the file is opened in the designer but the location of all shapes weren't saved. The second problem is a small one. I added some element ...Show All
shivali.sadavarte Capture Input Char
Hello! I need to capture user input char before it'll be displayed in TextBox. But the KeyDownEventArgs contain only Key value, and i have to get its char representation. The same control in Windows.Forms had KeyCode argument in KeyDown event, that returned exactly what i need. Is there any way to capture input char Or maybe to get char from Key value Thank you. I think that what you are looking for is the PreviewTextInput routed event... This will gives you access to a TextCompositionEventArgs... which in turns tells you what is the TextInput for the event... This will allow you pre-parsing, replacement, ... The TextInput contains actual text that goes into the TextBox... Therefore, hitting dead keys o ...Show All
Saroj K. Nanda Cant Pass a parameter into the ReportViewer of a web page.
Currently I have a page that has a report that loads the report getting the information from a stored procedure. I need to pass a date into the stored procedure for the report to display the results. If I eliminate the parameter from the stroed procedure and the report I can get the report to load on the web page. But I don't want to hard code values. I want the user to pass in the values for the criteria of the report. In this case a simple date range. Here is the code: Protected Sub Page_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Load Dim StartDate As New ReportParameter( "StartDate" , "3/1/2006" ) Dim p() As ReportParameter = {StartDate} R ...Show All
Radha Mukkai Creating artifacts
Hi, I been trying to figure out the best way to generate the code based on my model. I have 3 classes and there can be X amount of each in the diagram. I need to generate a class for each of these diagram elements. I have played around a little with text templates but I'm not sure what is the best way to accomplish this. I was reading this post on creating multiple artifacts from one template. http://forums.microsoft.com/msdn/showpost.aspx postid=18813&siteid=1 A lot of this is over my head at the moment. This is my first time doing this and if somebody could outline how this can be done for me to point me in the right direction it would be much appreciated! Thanks Stephen If you're new to it all, I ...Show All
MuscleHead IDispatchMessageInspector.BeforeSendReply - Accessing Service Variable is null
I have an operation that takes an XSL text as an input parameter which I store in a private variable for the Service. After the operation is complete and the reply is serialized, I want to access the service variable. When I do this the variable is always null . Here is what it looks like. Any thoughts on why the variable is always null and how to fix this are much appreciated. Dave I notice that you've implemented IMyService and IDispatchMessageInspector on the same class. It looks like you're expecting the runtime to use the same instance of MyService for both the operation invocation and message inspector, which isn't the case. Message inspectors are instantiated once, prior to the opening of the ServiceHost (they're ...Show All
osamaT Text Template questions
Hello, I have two questions about the text templates: 1. I've just scratched the surface of the DSL tools and architecture, but find them very interesting and am anxious to start using them. I am curious however, can i use them to implement a diagram designer that matches the usability of a Form designer. What i try to say is that i would really like to keep the model and sourcecode in sync. It is not a problem that it is one, way, but i really don't want the end-developers to continually have to re-generate the code whenever a model has changed. If possible, i wouldn't even want them to see the text templates, but just the model they design and the resulting sourcecode (Like the Form designer). Is this possible 2. How can i use text tem ...Show All
&#169&#59; Ţĩмό Şąļσмāĸ Concatenate doesn't work
Any reason why below code doesn't work string[] names = {"MSFT","IBM","CSCO","GOOG"}; //Get a list var msft = from s in names where s == "MSFT" select s; //Get all symbols from global list except microsoft var msft1= msft.Concatenate(names); //Gives compile-time error Thanks in advance As Steve Eichert said,"Concat" will work for you: var msft1 = msft.Concat(names); Based on your comment in the code, "Get all symbols from global list except microsoft", you might want to use the method "Except": var msft1 = names.Except(msft); Are you looking for Concat ...Show All
AlucardHellSing Setup of Visual Studio 2005 on Citrix
Hi all: I would like to install Visual Studio 2005 for a group of developers on our Citrix server. I do recall seeing during the installation of this that it needs to use the C drive to install to. Unfortuantely Citirx servers do not have C drives per se but have W as the main drive. Can this still be installed to this type of server so I can publish Visual Studio applications for the developers to access Any tips for this will be greatly appreciated. Jeff We installed Visual Studio 2005 on a Citrix server. We installed it on the remapped system partition W as you describe. The application runs. The only problem is that Visual Studio 2005 wants new projects to be stored on the local drive. We c ...Show All
Sara_H Infinite timout on http-bindings
I have an application that hosts a WS using basicHttpBinding. The client calls a method which returns an object. The problem is that the method may take time and won't return anything until the binding has timed out. Is it possible to have an infinite time out (probably not feasable) or is there another way to solve this You can configurat the timeout for a very large value. I believe its int.MaxValue. This is configurable on the tranport at the client and service. <basicHttpBinding> <binding name="Binding1" receiveTimeout="00:10:00" sendTimeout="00:10:00" ....> Thanks Sajay Thanks, long timeouts solves it for now. But I t ...Show All
Pramod_SN Security bypass(VST 2003)
In the older discussion group I found a post relating to the warning messages generated on the "Users" tube re: unsafe macro's etc. Albert posted : "Simply add the following keys to your runtime packing (the package wizard does have provision for adding regs keys). ROOT:Local Machine Key: SOFTWARE\Microsoft\Jet\4.0\Engines Name:SandBoxMode Value:#00000002 ROOT:Local Machine Key: Software\Microsoft\Office\11.0\Access\Security Name:Level Value:#00000001 If you add both tof the above, then you get no security prompts at all...even if the later jet sp8 is NOT installed. It is clean...and no prompts.... -- Albert D. Kallal (Access MVP) " Knowing the dangers of the registry and being "thick", I have ...Show All
Se7en20 Crystal Report with images - Export 2 PDF
I'm using VS 2005 & the included version of CR, I'm exporting some small (by enterprise standards) reports to PDF (via small ADO.NET data sets), and for the most part all works well. However, I've noticed that once or twice a week CR runs into some kind of problem which often ends up causing the aspnet_wp.exe process to recycle. When this happens the .aspx pages are fine (although slower to produce than normal), but I cannot generate any PDFs via CR. One interesting symptom is that the ASPNET account's Temp folder starts filling up with temporary CR files at this time, with names like temp_a29f6342-1e64-4dfa-bcfd-33ad9fab2bf1.rpt. Some files are 16 KB, others are 680KB, always these 2 sizes (my actual PDFs are around 50 - 70 KB). Th ...Show All
Equis Working with WCF Service
I am trying to use the Entity Framework with a WCF service. It is giving me the following exception: System.ArgumentException was unhandled by user code Message="The default entity container name 'eKnowledgeSpaceDBModel.eKnowledgeSpaceDB' is invalid. The required mapping and metadata information could not be found.\r\nParameter name: defaultContainerName" Source="System.Data.Entity" ParamName="defaultContainerName" StackTrace: at System.Data.Objects.ObjectContext.CreateMapConnection(String connectionString, String defaultContainerName) at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) at eKnowledgeSpaceDBModel.eKnowledgeSpaceDB..ctor(String connect ...Show All
Martin Goodliffe Why does the Selector class not support multiple selection?
The System.Windows.Controls.Primitives.Selector class does only have a property SelectedItem , but not SelectedItems . Why not Maybe I don't understand the real meaning of this class, so any info is apreciated. ...Show All
