rosch's Q&A profile
Visual Studio Tools for Office get_XML
I have several bookmarks in my document and I'm trying to retireve the Word html data associated with each programatically. I thought I would be able to use this method: Microsoft.Office.Tools.Word. Bookmark bookmark; string data = bookmark.Range.get_XML( false ); This returns to me a lot of Word document tags, etc, but not the actual text within the bookmark. So, I tried the same call with 'true': Microsoft.Office.Tools.Word. Bookmark bookmark; string data = bookmark.Range.get_XML( true ); This code threw a runtime exception. One problem here again is that y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fixing FPS and display resolution in window/fullscreen mode
In my project(C# MDX), I tried to use 800x600 as the resolution and fix the fps to be 60. Therefore I tried to add the following code in the ModifyDeviceSettings: // Setting up the initial size of the window settings.presentParams.DeviceWindow.ClientSize = new Size(800, 600); settings.presentParams.BackBufferWidth = 800; settings.presentParams.BackBufferHeight = 600; // Setting the fps settings.presentParams.PresentationInterval = PresentInterval.Default; It works fine. But when I resize the windows, or toggle to fullscreen, then change it back to window mode, the resolution and the fps changes.I have tri ...Show All
Visual Studio Team System How do I add a solution to a workspace for team build?
Hi, The subject pretty much says it all, how do I do this Thanks, J James, Please check the plug-in selected for source control in VS. To do this: - Open VS - Open Tools -> Options dialog - Expand the 'Source Control' node and click on 'Plug-in Selection' Make sure that 'Visual Studio Team Foundation' is selected from 'Current source control plug-in' combo. Please try adding the solution now. Thank you, Nagaraju Palla, Visual Studio Team System ----------------------------------------------------- This post is provided as-is and without warranty ...Show All
.NET Development How to publish website created using Visual Web Developer 2005 Express Edition
Hi Everybody! I created my website using Visual Web developer 2005 Express Edition on my local machine.My database stored on Sql Server 2000 and My web site stored on another Server. Now i like to publish my website.I also have one server having IIS. Any one can please help me how to publish my website for intranet purpose.This web site is used by internal staff within one building. Thank you Kirti email:kirtimistry2001@hotmail.com Hi kirti, There is no way to publish site if you have install studio 2005 express edition, you have to have studio 2005 professional or enterprise serve ...Show All
Visual Studio Team System Adding users/ groups with "/" char in the caption of the name
Hi, I am running Team foundation RTM. When I try to add windows domain users to one of the security groups I get the error: "Team Foundation Server could not resolve the user 'XXXXX/XXXX'. The user or group might be a member of a different domain , or the server might not have access to that domain. Verify the domain membership of the server and any domain trusts". I noticed it only happens with users ot group which their caption contains the '/' char. If I add a user/group which doesn't have this char it works OK. It's a real problem for my as almost all the users have the char in their caption bec ...Show All
Visual Basic Just wondering is it possible to change the default title of MsgBox?
Is there a way to change the default *ugly* title of MsgBox Please don't take it wrong. I know that I can provide the 3rd parameter - but I have to do it on every call. Any ideas Neo wrote: I think I would like to file a product feedback. You very welcome to :) - do you need any help in doing so (use the send feedback on the community menu item in Visual Studio) ...Show All
SQL Server DTS Wizard SQL 2005 - Enable Identity Insert
I have a large number of Access tables that I need to periodically bring to SQL using the DTS Wizard in SQL 2000 (via Ent. Man). I am only interested in bring over the data from the MS Access tables as I had a separate script (application drive) that would create the SQL tables. The problem is this: with SQL 2000 when bringing over the tables, the check box for 'Enable Identity Insert' for each of the tables was checked , this worked fine. With SQL 2005, this checkbox is not checked hence, I have to click 'edit' for each of the table data being brought over and check the 'Enable Identity Insert' box manualy. My question is whether there is ...Show All
Windows Forms Screen Layout Issue
Hi, I´m trying to open my main window with the exact screen width and height, but Not maximized. I´m using the WorkingArea atribute instead of Bounds, but it´s considering the top title bar and starting just below after that. It makes the window appears not in (0,0), but in (0,titleBarHeight). The code I´m using is : public Form1() { Screen ...Show All
Windows Forms stop control from repainting
Here is the problem. I need to stop a rtb from repainting while I update its contents. For the life of me I can't seem to find a suitable solution. I have tried using LockWindowUpdate from user32.dll and it works....however now all other application flicker. Besides I was hoping to accomplish this without api calls. Thanks in advance ...Show All
Visual Studio 2008 (Pre-release) Please help with creating buttons!
I'm using Interactive Designer and need some help with the basic concept of making buttons. Also...I'm a designer (not a developer), so I need simple explanations and no XAML;) What I'm trying to do: Create a button with a blue background, white text, and an aqua highlight across the top. When clicked, the background turns yellow, the text turns black, and the aqua highlight stays the same. So...I can do everything mentioned above, except create the aqua background. Honestly, there seem to be a variety of ways to create buttons (Library > Button, draw a rectangle then Tools > Make Button, etc.) but I can't seem to find a way t ...Show All
Visual Studio Tools for Office question for Microsoft Office File Properties
Hi My question: I have created my custom file format. And i set “Summary information” stream and “Document information” stream to my file. Then in Microsoft Explorer on File Properties/Summary tab shows only Title, Subject, Category, Keywords, Comments, Source, author, Revision Number property. But if i change file extension (for instance) to “.doc” or “.ppt”, File Properties/Summary tab shows all properities such as word count and pages. How it should be made, so File Properties/Summary tab to show all propeties for my file extensions This doesn't seem to be VSTO-related In any case, Office properties are only available to Office ...Show All
SQL Server Debugging a worker thread inside SQL Server
Hi Everyone! Just started looking into Assemblies within SQL Server in the hope of creating a multi-threaded application and when writing a basic test assembly I came across the following problem... When I create a worker thread within my assembly I am unable to do the following in my newly created thread: Stop on a breakpoint in VS2005 Use Debug.Writeline to output to the output window I know the thread is running as I am able to write to the EventLog, but VS2005 seems to be unaware of any thread other than the main SQL server thread. If anyone could tell me whether there it is possible to debug non-SQL server threads, ...Show All
SQL Server Processing cubes in Analysis Services 2000
I'm working with Analysis Services 2000 (SP4) on a 64 bit Windows Server 2003 where I have installed the framework 2.0. I need to write an application to process Analysis Services 2000 cubes but I can't use DSO because there isn't a 64 bit version available of this library. Can I use AMO (Analysis Management Objects) for administering Analysis Services 2000 Is there another solution Thanks in advance Daniele Unfortunately you cannot use AMO against Analysis Services 2000. You can use DSO to remotely process Analysis Services object from another 32bit machine. By the way you can use separate Redistributab ...Show All
Smart Device Development How to Soft Reset a Device programatically
Dear all, Is there any command in VB to Soft Reset the device Please give an advice. Thank you! Hi Call the Win32 API SetSystemPowerState to reset the device Declare the Function as folllowed: Const POWER_STATE_RESET As Integer = &H800000 <DllImport("coredll")> _ Private Shared Function SetSystemPowerState(ByVal psState As String, ByVal StateFlags As Integer, ByVal Options As Integer) As Integer End Function To Reset the Device call: SetSystemPowerState (Nothing, POWER_STATE_RESET, 0) This should work on any Windows Mobile 2003 and Windows Mobile 5.0 Devices. Thanks! ...Show All
Windows Forms How to extract text from string
Hello readers, I have a string which is a stream of a URI. I would like to know how I can go about extracting text from that string I only want to save certain text that show up on the web page, to a table and discard the rest. Thanks for all suggestions and input. It sounds like you're saying you want me to give ...Show All
