Mark3W's Q&A profile
Visual Studio Tools for Office Convert to VSTO - (EXCEL)
Hi all, Can I create a new workbook/worksheet at run time just like the code below using VSTO components. Thanks. sample code: ________________________________________ Imports Microsoft.Office Imports Microsoft.Office.Core Sub() Dim xlApp As New Excel.Application Dim excelBook As Excel.Workbook = xlApp.Workbooks.Add Dim xlSheet As Excel.Worksheet = CType (excelBook.Worksheets(1), Excel.Wor ...Show All
.NET Development Remoting-v-webservices - the prescriptive guidance is nuts ?
Web-services excel for cross-platform/cross-language communication. However, what about communication for the internal tiers of an app, where it is .NET on both sides It's the endless debate of remoting-v-webservices. Remoting - faster performance and richer type system, versus the lower-performance, lowest common denominator of web-services. The message that I perceive from MS is "use web-services for everything - remoting is only for in- ...Show All
Windows Forms Inherited form question
I would like to create a base form with a menuStrip control that contains 2 menu items to appear on each inherited form. This is no problem! However, I need to add different menu items to the menuStrip on the various forms which inherit from the base. I have set the status attribute to protected on the base form's definition of mnuStrip. I still cannot add items to the mnuStrip on the inheriting form. Any suggestions will be apprec ...Show All
Visual C# Starting a console?
Hi, I've got a console-based project, which contains a class like so: using System; using System.Collections.Generic; using System.Text; namespace vm { public class clsVirtualMachine { public void Execute( string Code) { Console .WriteLine(Code); } } } Part of the same solution I also have a testbed project, which consists of a form, a textbox and a button. Then the button is clicked the following happens: using vm; (....) ...Show All
Visual Studio GAC support in Templating Engine (Feature Request)
Hello, Templating Engine provided with DSL Tools is really great and useful, but it would be more convenient to use if it had support for referencing assemblies in GAC. I know that it is problem of CSharpCompiler... which doesn't support referencing assemblies in GAC, but you can extend the functionality of Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveAssemblyReference() method to search the ...Show All
SQL Server sp_executesql, actual sql ?
Hi Guys I pick up the following in a profiler trace. exec sp_cursorexecute 197, @P1 output, @P2 output, @P3 output, @P4 output, 'PSRF_REPORTING_FOLDERS', 'Jan 1 1900 12:00:00:000AM' Normally to find the actual sql that executes i go up in the trace until i find the relevant cursor prepare. In this case the one for 197 cursor prepare. But this time around i cannot find it, these are app servers connected so for all i know the cursor could be p ...Show All
Visual C++ error occur when develop in Visual C++ 6 and compile in Visual Studio 2005
The code wrote in VC++ 6 (no error when compile) but now I have to move them to the Visual Studio 2005 version and try to compile it again it give me the error ==> fatal error LNK1104: cannot open file 'LIBC.lib'. Please help I'm still so new with Microsoft Visual Studio 2005. Are they so much differences. Thanks for your help in advance, Akiwa You've done well to only have linking errors, there are huge differences between VC6 ...Show All
Visual J# Pet peeve of the day
Hi all; When will we have Documentation for the classes and listing the methods in the classes J# doesn’t support (ie exist but throw a NotSupported exception) thanks - dave Hi; I looked. Only http://msdn2.microsoft.com/en-us/library/hyx4hd7e(en-US,VS.80).aspx had links to some of the standard java classes and it has the disclaimer "but only the most important classes in the following packages are documented at this time". When wil ...Show All
Visual C# What is the fastest way to read and write data?
To write and read a hundred sets of 1000 numbers, which way is the fastest way: - Binary file - XML file - Text file - ArrayList (run out of memory ) - Database Table Thanks Sorry for the uncleared question. Suppose I'm trying to get an optimal set of solution by doing the iteration for 100 times, so I have 100 sets of data. I'd like to be able to keep all data and then sort a number of each set to find which se ...Show All
Visual FoxPro Additional fields in table exported to txt
Hello, I need to output from a VFP 6 table to a text file. When I use "copy to mytext.txt delimited with ," I get an additional field before and after each of the original fields from the table. This means that in my new text file, fields 1,3,4,6,7,9,10,12,13 etc are empty fields that were not present in the table and fields 2,5,8,11,14 etc are the fields with data. Can anyone tell me how to avoid these "extra" field ...Show All
Visual Studio Express Editions Registeration for Build .32
I notice that I have to register for the .32 (VB Express Edition). Is this a must What if a user does not register will VB Express Stop working First, the .32 build you obtained is an internal build and registration is not enabled for it. You should uninstall this build and install the August CTP that is available for download. Second, registration is required if you download the product. There is a trial period that wi ...Show All
SQL Server regarding sqlserver2005 clientserver installation
How to install sqlserver2005 Moved to SQL Server Setup & Upgrade from Announcements. Installing should be easy after you have located the installation program for sql server. On the developer edition DVD it is located (for me) \SQL Server x86\Servers\setup.exe ...Show All
Visual Studio Experimental UI
How would I add a function to collapse a group of shapes e.g. the concept linked to an owning concept How did you make it work - moving shapes moving up and down as the group is collapsed I am thinking, something like running through all in ( NodeShape.FromRoleLinkShapes and NodeShape.ToRoleLinkShapes ) Thanks - Christian ...Show All
Visual C++ Disabling advanced print settings.
Hi there. I'm writing a service, with the only purpose of disabling advanced print settings, for all printers using the Generic / Text only driver in Windows XP. I've had a lot of luck using the SetPrinter-function, i just can't seem to find a printer_info-structure wich treats the option i want to set. I haven't had any luck experimenting with different attribute settings. Does anyone know how to do it I ...Show All
Windows Forms Databinding and multithreading
Does databinding have any problems with mutlithreading ie if i have a datagrod bound to a datatable, and i change a row/column of the datatable in another thread, will all changes in the grid be done safely and correctly This mig ...Show All
