Dmitriy Agarkov's Q&A profile
Visual Studio Tools for Office Displaying Word Documents Within C# Forms
Hi everyone. In our project, We have the following scenario: We create Word 2003 XML documents on the fly from certain data, And present this document to the user for preview in the following way - A form containing an AxBrowser control is loaded (basically wraps the IE engine unless im wrong) and we navigate that control to the location where the .xml sits. Now, With word 2003 and the registry value EditFlags set-up correctly, The control does successfully render the document inside it. Lately, We have been testing word 12 out to see if it fits us and migrating does not hurt current business logic, And we were unable to mimic this behavior - The class Word.Document.12 does not contain the same registry value and the document, When n ...Show All
Visual Studio Express Editions Editing check boxes and such while not in that form
Is there anyway I can change the status of items on another user control, like I am on page 3, but i want to change the status of a check box to checked on page 2, is there anyway i could do that without actually being on page2 you would need a reference to page 2, so pass that reference into the constructor and store it locally in page 3 and make that control public but rather should make a public property in page2 which page3 calls and sets the value of that checkbox http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=777222&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=700821&SiteID=1 ...Show All
Smart Device Development UPDATE MICROSOFT VISUAL STUDIO 8
WHERE AND HOW DO YOU GET A MICROSOFT VISUAL STUDIO 8 UPDATE You don't, at least not until it's released, then it would be on Microsoft’s web site. Also, please see see this, item #1: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
Visual Studio Express Editions A small uneven Debugging problem
HI I have a sammll problem.But it suffers me like anything. I have source code of project with multileple threds. when I put a break point some times it stop the exceution at break point . sometimes just ternminating the programming execution by ginging " abc.exe' has exited with code 0 (0x0)." can help how can I debug the code. I tried a lot only very few times I am able to debug from the pouint where i put a break point. But so many times I it is just terminating when I pressed F5. HI Jonathan Caves Thank you for your reply. Actually I tried to put break point in both threads Even it is terminating as the same fashion.when click on Run button it is excuting (any way we can't debug in this mode this is only excut ...Show All
Visual Studio Team System Deploy with Unit Test
I wish to use VSTSForDP to support my pre-existing unit tests. Currently the process we use is anytime we make a change to the database schema we use SQL management studio to generate a script that will create the database. We then check that .sql file into TFS as a solution item. Our unit tests have a piece of init code that reads in the .sql file and executes it against our test server to create a fresh database that our unit tests will use. We wish to simplify this process using DataDude. When our Unit Test init code runs I would like to run the .sql file that is the result of the build on our DataDude project. How can I do this With a solution item I can use the test run config to make that solution item deploy along with the unit ...Show All
Visual Studio Express Editions String it together
Hi, Please let me know if there is away to manipulate a string so that if there is a comma directly after a number [see below] then it is replaced by a space. Before AXA_Data, 39, Trust_Acc, Jersey, T=Y, ********,***,**** AXA_Data, 372, Trust_Acc, Malta, T=Y, ********,***,**** AXA_Data, 03, Trust_Acc, England, T=N, ********,***,**** After AXA_Data39, Trust_Acc, Jersey, T=Y, ********,***,**** AXA_Data372, Trust_Acc, Malta, T=Y, ********,***,**** AXA_Data03, Trust_Acc, England, T=N, ********,***,**** I hope it makes sense, Jason This is brilliant...I`m hooked ;o) VB Express logic is becoming alot clearer to me and I just cant believe the level of support you have ...Show All
Visual C# Install speed is slow
Hi I made a very small piece of code ~ 200K in C# and publish it in a ftp server. When i test the code in my machine the project took few second to install. However when I bring the code to other computer then it took too long. Do you know why it happen like that Thanks a lot could be a number of things. Could be the fact that the computer is slow Perhaps the anti virus software is kicking in causing it to slow down Could be because the code you have written at the point where it appears to be slow, is inefficient Tried building it under release mode than debug mode to see if it will speed it up The release mode removes all debugging information and optimizes the assembly, causing it to enhance performance. Do you also do Console ...Show All
Visual Studio Express Editions saving file into excel problem
hi there...... hi i have a problem regarding saving i saw some example here it seem's ok..... but i want is to gather the data from datagridview and save it into excel file... here's the example which we can save using richtextbox Private Sub SaveFile(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim x As New SaveFileDialog x.Title = "Save Rich Text File" x.Filter = "RTF Files|*.rtf" If x.ShowDialog = Windows.Forms.DialogResult.OK Then Me.RichTextBox1.SaveFile(x.FileName) End If End Sub End Class in this example only rtf file perfectly save but when i change it into excel there's a bunch of garbarge before my data/text..... can some one help me rega ...Show All
Visual C# What makes C# better than VB
hey friends, I am a Visual basic developer. I hear that every C# programmer says C# is better - stronger than VB . But when I ask the reason I can never have a strong answer :) . Is there some body can tell me the benefits of using C# rather than VB. What makes is stronger than VB I want to learn C# but I want to be convinced before I start .. Thanks a lot Ayhan Hello All. Keith: Yes, of course the languages are different. The preferences I'm talking about are those of the developer. The language itself can't have a preference. It's a question of whether you prefer to use a language that makes it easy to use late binding on COM, because that's what you want to accomplish, or one that doesn't, because late bindi ...Show All
Visual Studio Tools for Office Accessing Excel ComboBox values programmatically
All, I have created an Excel add-in that loads information from Microsoft Project Data Server into a spreadsheet. For each row of data added to spreadsheet, I add a combobox that is populated with several options to choose from (there is a different default value for each combobox). I use the following code snippet to add the comboboxes to my spreadsheet: Microsoft.Office.Tools.Excel.Controls. ComboBox comboBox1 = this .Controls.AddComboBox( this .Range[ "C" +(i+7), missing], "comboBox" +i); comboBox1.Items.Add( "" ); //index 0 comboBox1.Items.Add( "blah" ); //index 1 comboBox1.Items.Add( "blah blah" ); //index 2 comboBox1.SelectedIndex = 0; I have two question ...Show All
Visual Studio Use sums of Subreports in the parent table?
Is it possible to use the data in a Subreport, like making calculations to be displayed in its parent table ...Show All
SQL Server On error i want to send error description as mail
I have create a SSIS package, for data export import process, but if my task get failed then i have to send a mail with proper error description as the SSIS generate in output window. Can any one sugget me to, how can i store that error desciption in my variable. Thanks in advance. You can create a table with the following fields packageid,packagename,taskname,errormessage. And later write a stored procedure which will insert the data into this table from the package variables. On event handler tab call this stored procedure and pass the system variables "system::executioninstanceguid","system::packagename","system::sourcename","system::errordescription". Once this is done you can r ...Show All
Software Development for Windows Vista Querying the Vista Index using ADO
Interested in searching the index using standard DB queries It's easy, but I can't find much documentation on it anywhere (please correct me if I'm just missing it). After searching a lot, I discovered/guessed the connection string and can successfully query the new index. Very fast, very nice! I posted about it on my blog ( http://www.ariankulp.com/archive/2006/06/14/1315.aspx ), but basically, your connection string should be (escape quotes as necessary): Provider=Search.CollatorDSO.1;Extended Propertes="Application=Windows" Your FROM clause should reference: systemindex..scope() For information on available properties/columns, check out this link: http://msdn.microsoft.com/library/default.asp url=/libra ...Show All
Windows Live Developer Forums dumb questions
ok, new here and some dumb questions. 1. show coordinates works on internet Ex but not in Netscape, is there a fix 2. how are multiple functions added to a html page 3. use to be on the older V map a "send map via email", what happened help and thanks We all have to start somewhere Terry. These are some good reasources for you to look at: http://dev.live.com/virtualearth/sdk/ http://viavirtualearth.com/VVE/Articles/Default.ashx http://viavirtualearth.com/Wiki/Welcome.ashx 1. Specifically VE only works in IE6/7 and FF1.5/2 (with fix from wiki) 2. Hopefully some of the articles can give you examples 3. You can make you own using a mailto: link. I would encode the current map view ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Heightmap Terrain Component
I thought the whole component concept was pretty cool. So I threw together a quick heightmap terrain component. http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain.jpg http://i9.photobucket.com/albums/a59/craigory666/heightMapTerrain2.jpg http://i9.photobucket.com/albums/a59/craigory666/heightmapprop.jpg It should work with square .raw files, and for the effectPath I'm just using the default texture shader found in the help file. The view and projection matrices of the terrain are exposed, so you should be able to hook up whatever camera you have going and just update the terrains view, and projection matrices during your games update. using System; using System.Collections.Generic; using System.IO; using Microsoft.Xna.Fr ...Show All
