Answer Questions
Daniel Gary VSTO SE - Create Spreadsheet on Server Without Excel
I understand that with VSTO SE and VS 2005 you can create and manipulate spreadsheets on computers/servers that do not have Excel installed. I have done a lot of programming Excel with COM but am new to VSTO. I have searched various examples online but have not found just one simple example of creating a spreadsheet pro grammatically on a server that does not have Excel. The resultant application would be a console app that would run without a GUI to process and create/update spreadsheets. Could someone please list as briefly as possible (VB preferred, C# okay) how to create a new spreadsheet, update a couple cells, and then close the spreadsheet from the command line with no GUI. Thanks. Thank you, S ...Show All
JiltedCitizen How To: debug the "Open" event in your document template project
This tip is likely only of use to newbies, but here goes: I'm using Word 2003/VSTO 2005, and I'm building a Word Document Template customization. Since I work with dynamically added aggregated objects, I use the one-time "New" event on the template to initialize some cached structures, and the "Open" event during subsequent document loads to use the Add*() methods on so I can bind events to native structures (e.g., assign a handler to the Selected event for all aggregated bookmarks). When you debug from inside of Visual Studio, it launches the .DOT file, so you only ever see the New event fire. If you need to debug the code inside of your Open handler, add whatever data you need to the document, save it to the debug fol ...Show All
SavasCilve Strange about Immediate Window?
Hi all, The immediate window is great for debugging. But it only allows simple function evalution. However when I tried to execute the following function: mpfr_add_si(u, Ct, k, GMP_RNDN); CXX0026: Error: bad format string It issued the above error message. What's wrong with it Note that "mpfr_add_si(u, Ct, k, GMP_RNDN);" is a correct function call that compiled and executed successfully. But I don't know why it doesn't work in the immediate window. I execute in the immediate window because I want to execute it again after changing some parameter values. ------------------------------- Another question: is there a way to let the immediate window has the prompt sign, such as ">", or ">&g ...Show All
WeiY Distort VisualBrush
I want to distort a VisualBrush by manipulating each corner of its definining rectangle independently. I've tried doing the following: VisualBrush vb = new VisualBrush; vb.Visual = MainGrid.Children[0]; PathSegmentCollection psc = new PathSegmentCollection(3); psc.Add(new LineSegment(new System.Windows.Point(Top + Width, Top), true)); psc.Add(new LineSegment(new System.Windows.Point(Top + Width, Top + Height), true)); psc.Add(new LineSegment(new System.Windows.Point(Top, Top + Height), true)); PathFigure pf = new PathFigure(new System.Windows.Point(Top, Left), psc, true); PathFigureCollection pfc = new PathFigureCollection(1); pfc.Add(pf); PathGeometry pg = new PathGeometry(pfc); Path p = new Path(); p.Data = pg; p.Fill = vb; ...Show All
littlecharva XML documentation tags support in Sandcastle
Currently Sandcastle supports C# recommended tags as defined by http://msdn2.microsoft.com/en-us/library/5ast78ax.aspx . As per the forums posts at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=629715&SiteID=1 we plan to supports the custom nDoc style tags in our ERTW release. As per http://ndoc.sourceforge.net/usersguide.html the tags we need to support are the following: <event> <exclude> <overloads> <preliminary> <threadsafety> <note> Please let me know if this list is complete Also we will provide documentation on adding user defined tags. Anand.. Any plan to support NDoc's "lang" attribute on the "code" element <code lang="C#"> // co ...Show All
Scott Lyon Visual Studio .NET 2005 slows down while loading and building on Intel Core 2 Duo
Hi, I've got a new Dell Inspiron 9400 system running with intel core 2 duo and a clean installation of Visual Studio 2005, and everything seems to be okay except when i try to load a visual studio solution, and start debugging it. When it starts building the solution (by pressing F5), the build process runs fine, but it is when the embedded web server starts that the whole ide freezes for about 2 or 3 mins. The same happens when I close the navigator (IE6) and visual studio autommatically tries to stop debugging. It just freezes a long time, and I also tried downloading Service Pack 1 for Visual Studio 2005 but the same behavior after this. My complete system specifications are the following: Intel Core 2 Duo T7200 (@2 GHz) 1GB ...Show All
uma kadagi Help me design Menu/Toolbar item coordinator
Hello, I figure this is something that has been solved over and over again. There must be a pattern for it. I want to design a menu system & tool bar system for my rich client application. I want the menu/toolbar system to be smart enough to enable/disable items as the user’s context changes. For example, when the user enters the order window, the Order menu item along side the Order buttons on the toolbar are enabled and when the user moves to configuration the configuration items are enabled and the Order menu items are disabled. What is the best way to achieve this functionality Is there a way I can utilize commands and some sort of a coordinator that keeps track of what the context is I don’t want to write a bunch of ...Show All
r3n Beginner Problem? Add-in runs fine inside VS2005B2 but fails to load in Outlook 2003
I have a very simple add-in that seems to compile and run fine in VS2005B2. I also created an MSI Setup package using the template project for the Setup. Setup runs & works ok...as far as I can tell, but Outlook does not load the Add-in, (it appears in the COM Add-in list) but it shows a message saying. Not loaded. A runtime error occurred during the loading of the COM Add-in. Is this related to the security context Is there an easy way to have full-trust on the machines where the installer is run Or is this a different issue Any help is appreciated. thx Hi, Try looking here: http://blog.jausovec.net/index.php op=ViewArticle&articleId=177&blogId=1 hi. i am also facing the same problem and ...Show All
Muhammad Saeed Iqbal UIAutomation for Submenu
Hi all, I am facing a problem while accessing a submenu through MSUIA AutomationElement class. How i can access it. If it is possible to access the Submenu please give me an Idea Regards M Suresh How are you trying to access it Do you first make sure you expand the parent menu, then look for the submenu ...Show All
Kamii47 Windows installer problems
I ran into some virus problems a few days ago and thought that I had fixed them. I then received access to install Visual Studio 2005 and Windows XP PRO embed SP2. I checked for comapatibility of XP PRO with my computer and everything checked out fine. I was too hasty in the install of XP PRO and forgot to make a system restore point before the install. After the install everything seemed to work just fine but then windows installer popped up. The windows installer box just says "initializing installation" and does nothing else. If i click cancel on the box, it says "canceling installation" but does not go away. Eventually it will give a message that says "retry or cancel" and I hit cancel and then ...Show All
Gravy Error using sub reports in server mode
I currently have a report engine that generates the rdlc file dynamically. I render the report with the report viewer control in Server mode. I have a subreport that exists on the report server that I am trying to include in my report but when I do I get the following error: Error: Subreport could not be shown I have been able to create and run this report successfully in the designer and my rdlc file I create dynamically is essentially the same as the one that runs fine in the designer. The error gives me very little to go on so I am having difficultly troubleshooting this error. Any suggestions would be greatly appreciated. Thank you Using the render method I was able to see that I was ...Show All
little_girl Updating custom control
I am working on an WPF media player control (for various reasons I cannot use MediaControl). I have the video up and running now, but I am in doubt if I am doing the right thing when it comes to updating the control. Currently I am calling InvalidateVisual on the control and then doing the drawing in OnRender, but I seem to remember that invalidate is very expensive. So, how should it be done I'm just trying to understand why you're using a Texture3d instead of a MediaSample. I think you would see better results with putting the MediaSample directly into a BitmapSource. One of the drawbacks of implementing your own media player is that you won't have hardware acceleration. Copying bits arou ...Show All
xxfredxx Debug a WCF service?
If I have a IIS hosted WCF service how and what do I attach to in order to debug the service In general is there a way to tell the name of the WCF service that is running so that it can be attached to and debugged. Thank you. If you are using the visual studio debugger you can check the show all processes in the "Attach Process" dialog and you will see w3wp.exe there. Now make sure your service is running before the proccess is running by trying to view the service in the browser. This would cause the process to be activated. Thanks Sajay It is IIS 6 but it seems that things are different for WCF because I looked for the w3wp.exe process and it never showed up. Kevin ...Show All
melack Help With java.security
I used the Conversion Wizard to convert a J++ solution to J#. The application uses the java.security.PublicKey, java.security.PrivateKey and java.security.Signature classes to sign and verify files. After converson the solution compiles OK, but at runtime the application throws "java.lang.ClassNotFoundException: sun.security.provider.DSAPublicKey". How can I fix this problem in my converted J# solution the problem is that it uses reflection to dynamically load that class, so the JBimp tool didn't know to import that class too. You can pass command-line param to JBImp tool to tell it what other class(es) to also try to import ...Show All
kenmcd4 [Word] Runtime error on loading custom add-in
Hello, I have a problem with loading my own add-in after I deployed the setup and installed the add-in. When I run the add-in directly out of visual studio it all works fine. However when I generate the setup.exe and use it to install the add-in it won't display in Word. When I go to the COM-addins dialog in Word I can see that it is indeed installed. When I click on it, i see the message: "Not loaded. There was a runtime-error ...... ". My guesses are that it has to do with security or something. I already put the macro's security to the lowest level, and followed the directions on http://msdn2.microsoft.com/en-us/library/aa537179(office.11).aspx to add something for the security. I allready spent hours searching google for this ...Show All
