Answer Questions
Mnd1 Referenced Assembly
I am using the Report Viewer in local mode and I would like to reference the Project that contains my report. I have tried but I can't seem to make this work. Is this feasible For webforms you must first make assembly trusted and put it to the GAC In VisualStudio 2005 click on the class libray Properties then choose Signing -> check Sign the assembly and make new key file or choose some existing. You can also make key file with the sn ytility sn -k c:\mingikuradi.snk this snk file is automatically added to the solution. remember also where to VS puts your dll file: Properties -> Build -> Outputh path after this rebuild solution and put your dll file to the GAC look at the ...Show All
ACCOUNTINGONLINE.US how can we save the conent of rich textbox to an xml file
hi there, i am wondering how can we save the conent of rich textbox to an xml file. i have many richtextboxes but i need to save all those to one file. thanks prasanth there is no specific API to save to xml but since xaml is very similar to xml, it should be pretty easy to map it to xml. You can save the content of RichTextBox into xaml: using ( FileStream fs = new FileStream (filename, FileMode .CreateNew)) { TextRange textRange = new TextRange (myRichTextBox.Document.ContentStart, myRichTextBox.Document.ContentEnd); textRange.Save(fs, DataFormats .Xaml); } Sheva hi, thank u very much for ur reply. my requirmen is i ...Show All
Ivan_Filho Workbook VBA project stays in memory after the workbook is closed
A class in my VSTO solution hooks up to the Application's WorkbookActivate / WorkbookDeactivate events. When these events are fired, the class examines the properties of the workbook that is passed as the event's second argument. What I discovered is that even though I may close a workbook, its VBA project stays in memory. If I start the VBA editor, the Project Explorer shows a list of all the workbooks that have been opened in Excel's running instance. Moreover, if I opened a workbook twice, the Project Explorer lists two VBA projects for the same workbook. I have a little COM experience and I know that this happens because .NET increases the reference count of the workbook interface preventing it from being released even after the workbo ...Show All
joss1974 Using a 3rd party Chart control with Crystal Reports
Hi All, Is it possible to embed a 3rd party chart control such as . netCHARTING in a crystal reports report. VS 2005 Version or full blown version.... I want to create charts using .netCharting and then drop those charts in a crystal report. If it's possible, then how can I do it Thanks, Andy Andeezle wrote: Hi All, Is it possible to embed a 3rd party chart control such as . netCHARTING in a crystal reports report. VS 2005 Version or full blown version.... I want to create charts using .netCharting and then drop those charts in a crystal report. If it's possible, then how can I do it Thanks, Andy hi, i think it is not possible to integra ...Show All
J A Y Are there any Community Projects using the DSL toolkit on CodePlex or GotDotNet?
I would be interested in seeing other people's implementations and visions. Aaron, I haven't looked at CodePlex, but there are three DSL-related workspaces on GotDotNet that I am aware of. Software Factory Technologies in Microsoft Products (DSL, GAT, etc.): http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=798653&SiteID=1 Some discussion; doesn't appear to contain any code. VSTS Work Item Type Designer: http://www.gotdotnet.com/workspaces/workspace.aspx id=d03b00f5-7c5d-4e29-86b5-b966a04e1ed7 A designer to build Work Item Types for Team System. The code is from a pre-June version of the CTP, and the workspace owner, DarrenJ, is currently finishing writing a book on BizTalk 2006 for W ...Show All
Rajnesh Error while opening Admin Console through MMC.
I get the foll. error when I try to connect to the CCF IIS server in MMC to configure Admin Console. I get the same error while debugging Agent Desktop. I verified that 'Microsoft.Ccf.Common dll is present in GAC. Please help/advice on this issue. System.TypeInitializationException: The type initializer for 'Microsoft.Ccf.Common.Logging.Logging' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Ccf.Common.Listeners.Configuration.ListenerConfiguration' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Ccf.Common, Version=2.6.0.0, Culture=neutral, PublicKeyToken=4f00c1aa5320a4d9' or one of its dependencies. The system cannot find the f ...Show All
MSBARGLO Resource Dictionaries
Howdy.. Can anyone tell me if merged dictionaries is to be supported before V1 I find that this feature is a must have and would hope that a few others coding large embedded assembly UI's will know the frustrations that are present without it. Cheers cheers Mark Yes this will be supported in a future release - probably around the end of this year mark ...Show All
Xelestial SourceSafeTypeLib error when deploying
I am trying to deploy an application that uses the SourceSafeTypeLib to a machine that contains sourcesafe and the 2005 runtime. Bu I am getting the error bellow . I have no problem with machines with the full .net 2005. I already try to sign a strong name to the SourceSafeTypeLib (tlbimp /keyfile:mykey.snk / SourceSafeTypeLib.dll Interop.SourceSafeTypeLib.dll). This command gives me the error: “is not a valid type lib”. . What can I do ************** Excetion Text ************** System.InvalidCastException: Unable to cast COM object of type 'SourceSafeTypeLib.VSSDatabaseClass' to interface type 'SourceSafeTypeLib.IVSSDatabase'. This operation failed because the QueryInterface call on the COM component for the ...Show All
imj Loadbehaviour changes automatically from 3 to 2
Hi, I have a weird problem when deploying my Office Addin developed in VS2003. When installed the values for word, excel and pp. are all set to LoadBehaviour 3 as it should be. As soon as Iam starting on of the apps the values changes from 3 to 2 and therefore the addin doesn't come up. If Iam changing it back again it will be overwritten to to after the next attempt. Please help! many thanks in advance! Patrick hint: there is not .net 2.0 installed, as I could find a solution for a similiar problem in vs2005 Patrick - both David and Cindy's suggestions are correct. As per Eric Carter's blog, you should be putting try/catch code around anything you do in OnConnection, OnStartupComplete, et ...Show All
Francesco De Vittori how to bind to a dictionary (or something like that)
I've got a dictionary<String,Object> and want to bind a xaml object to the key of the dictionary so it shows the corresponding value. So far I only found ways to bind to get/set accessors, or to attached DependencyProperties, but can't find a way to bind to the key of a dictionary. Is there any way to bind to something like this thanks, Sam you will bind it to Key property or Value property I'd like to bind the control (DisplayMemberBinding of GridViewColumn) to the key, so in the UI it will show the value. this post might help http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1123803&SiteID=1 You can create bindings where the path ...Show All
Abhi Arjun Data binding a DataSet with a many-to-many relationship
I have a database with the following schema: ___________ ______________ _____________ | PluginTable |-->| PluginExtension |<--| ExtensionTable | ------------------- ------------------------- ------------------------ | PluginID | | PluginID | | ExtensionID | | PluginName| | ExtensionID | | ExtensionName| ------------------- ------------------------ ----------------------- I used the VS2005 DataSet generator to create a typed DataSet with this schema implemented. It is straight forward to create a ListBox with all the Plugins listed and then controls displaying the data in the PluginTable. I would like to create a secondary ListBox with the Extensions that are related to a particular Plugin an ...Show All
Brad3000 Single installer for multiple Add-in projects
Hi I have created three Add-in projects (Word, Excel, PowerPoint). There are three installer for each of the project. Can I have a single installer for 3 Add-in projects Regards, Ranjan Of course you can, if you wanted, you could write a primary installer, that calls each of the three individual ones you have now (instead of trying to combine all three into a single installer). Well, This discussion is outside the topic of VSTO development, but so I'm going to provide you a concept, and give you links to where you can learn about about Windows Installer development. Concept In your case, you could create a new "main" installer (Setup project), on that project, add your three existing setup projects you've mentioned. ...Show All
Akshay Bhargava Creating FrameWorkElements in async calls?
Is it possible to create a FrameWorkElement in an async call. I've tried but get an InvalidOperationException - "The calling thread must be STA, because many UI components require this" My code: public static void LoadPage() { ConstructNewPageAsync test = new ConstructNewPageAsync(ConstructPage); test.BeginInvoke(new AsyncCallback(Completed), null); } private static void ConstructPage() { Canvas c = new Canvas(); //Here i get the exception } Is there no way to do it 100% asyncronusly, i just tried your sollution but it doesn't work public static void LoadNewPage<T>( params object [] parameters) where T : GUIWindo ...Show All
GreatDane Sandcastle: Is it possible to get rid of fully qualified type names?
When I generate html pages using the vs2005 styles, I've noticed that it seems that all links to types are named with a fully qualified name. It's one thing that the text talks about, say System.Random instead of just Random, but some of my types have 4 or even 6-part namespaces, and that's really destroying readability. Is there a switch where I can change this behavior, so that links will only display the type name, and no namespace information Interestingly, when methods are displayed, they are displayed using just the type name and no namespace, but here, the method name would have sufficed (created better readability). Then again,... what about inheriting a class that has the same name but is located in a different names ...Show All
NJCoughlan WCF X.509 CAs?
Can anyone point me to CA's of certificates suitable for WCF encryption and what do I ask for I understand that the standard SSL certs do not work and the sales reps are not knowledgeable about WCF requirements. Thanks John >> I have an SSL cert but several blogs talking about certs say that standard SSL certs do not work for WCF. This is not true. Ssl certificates should work for WCF. Let me know if you are facing any specific issues in using this certificate. Thanks, You can create certs using the makecert tool. The SDK has a lot of samples that have scripts that create these certs for you and install them into the correct store. Try looking at http://msdn2.microsoft.com/e ...Show All
