FLDaveM's Q&A profile
Visual Studio Tools for Office Display HTML text in Word (with VSTO)
Hi, I would like to tell Word to interpret some text in HTML form and display only the resulting text well-formated. Here some code: Word.Range range = Range(ref missing, ref missing); range.Text = "Some normal text"; range.Bold = 1; range.InsertAfter("\n\n"); range.Collapse(ref collapseEnd); // now the html part range.Text = "<span class="A21">This is some html content</span>" ; range.InsertAfter("\n\n"); The second part of the code displays the HTML tags instaed of interpreting it as html. Any idea how I can fix this Thanks a lot for any help. Claudia As nobody has responded to my question... I guess there is no way to display html content we ...Show All
Visual C# cannot set attributte name of checkbox
hi, Why can I not decide the name of my "Name" attribute of a checkbox! HtmlInputCheckBox checkbox = new HtmlInputCheckBox(); checkbox.Attributes.Add("name","ChangedText"); checkbox.Attributes.Add("id","2"); this is the output <input name="_ctl1" type="checkbox" id="2"/> why _ctl1 please can anyone help with this issue thanks in advanced.:) It turns out that because of it's being created service side ASP.NET will not allow you to define the same name or same id for your controls! SUCKS! however... you can group them with <span> tag han give the span tag the same name so I did that instead.. still sux but ...Show All
.NET Development how to get correct directory name "c:\users\public"
Hi, What's the correct way on getting Vista's "c:\users\public" directory name from .NET 2.0 I can't get this folder by using Environment . SpecialFolder Thanks, Mikhail If you write to C:\documents and settings\All Users Vista automatically changes it to C:\users\public i have done this trying to put something on all users desktop. ...Show All
.NET Development .Item property doesn't exist for ArrayLists???
I'm getting compiler errors when trying to reference the .Item property for ArrayLists in my code. All the documentation I can find says this property does exist. But C# is telling me otherwise. If I say: ArrayList MyList = new ArrayList(); Object o = MyList.Item[3]; I get the compile-time error: System.Collections.ArrayList does not contain a definition for "Item" And as I'm entering my code and type "Mylist.", the IDE's auto-complete popup suggests "IsSynchronized" or "LastIndexOf" as the members at the place I'd expect to see the .Item property. I'm a bit of a C# newbie. Thanks for any help... It is true that the ArrayList class has an ...Show All
Visual Studio Language Filter
Just installed the latest (May) MSDN Library for VS 2005 and the language filter is not being persisted across page views. I saw another post here that said it was a known problem in Beta 2 but would be fixed. Whats the status of it of I am missing something. Thanks Donal You're not the only one. I am using the same Document Explorer but using online documentation, and my Language Filter is not persisting. I keep filtering to just C#, but as soon as I jump to a different document, I lose my setting and have to wade through the menu again. ...Show All
Visual Studio Team System New TFS project from Branch
If I create a new TFS project with source control that branch from an exisiting project. Can the two branches be merged in the future If so, what happens to the documents created in each of the projects' document libraries You can merge the source control branches using the Merge Wizard in Source Control Explorer. There is no way to merge the document libraries to my knowledge. ...Show All
SQL Server SQL Server Management Studio Express will no longer start
I used to have both SQL Server 2005 Express and SQL Server Management Studio Express up running just fine until I installed (removed SQL 2005 Express) SQL Server 2005 for Developers and re-installed SQL Server Management Studio Express - now, SQL Server 2005 for Developers works, but I can not start SQL Server Management Studio Express No error messages, simply nothing happens when I execute ssmsee.exe. Should I be using a different version of Studio Thanks, Tor The cleanup process that worked: 1) do not touch the registry (not needed) 2) remove all old VS + SQL stuff 3) remove MS Office Web Components (I was mising that one) 4) re-install SQL 5) re-install VS (custom - exclude SQL Express) ...Show All
SQL Server Configurations and Child Packages
Hello, I was hoping someone might be able to clarify how configuartions work with child packages. My process has 3 levels of packages. The main packages called two child packages each of which calls more child packages. I'm using Configurations to pass variables from parent packages to child packages. But each level of packages contains Data Flow Source/Destination connections. I was planning on having only 1 XML Configuration file in the main package that would allow the data connections for the main package to be configured for the target enviornment. When the job is scheduled I will be able to point a configuration file for use with the main packages. But will that configuration file be applied to all child packages that will ...Show All
Windows Forms filter of datagridview based on selection from an other table
My form has two datagridviews each with databindingsource to underlying tables in a DB. When someone selects a row in the first datagridview, i would like to filter the second datagridview based on a feild in the first table. Any suggestions for how to do this. Is this what you are looking for ...Show All
Visual Basic How do I rename a file in VBA
Hi I have an excel sheet that contains data. as per the data form one perticular cell. i need to rename a wave and a word file. Is this possible in VBA. Thanks Riya Hey Matthe I have not tired yet will try it when i get my time off from the trainng. Thanks a lot. If this code works then you have made my life so easy....... Thanks again Riya ...Show All
Smart Device Development Smart Phone and PocketPC friendly
Hi, I'm developing an application which will have to run on both PPCs and SmartPhones (CF1, 2003SE+) It should be responsive to touch screens and handle screen rotation on PPC and handle keypresses on the SmartPhone. Ideally I'd like to just have one project with either 2 builds (and compiler constants) or some runtime device detection. This is will require good separation between the UI and the back end. But as this is my first real project of this nature, I'm not sure how this will turn out - is it possible to do the above successfully Any strategies, advice, links etc you could offer would be really appreciated.. Cheers, Hi... How can use a runtime detection to said if device have touch screen I need ...Show All
Software Development for Windows Vista LockProfile of IStreamBufferSink
I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. I still say you should file a vista bug. Requiring people to be an admin to use SBE doesn't seem like a good plan. Especially given that vista doesn't want people running as admin in the first place. ...Show All
Smart Device Development graphedit on WinCE
Do you know how I can get graphedit on WinCE Thanks a lot Rgds It's either in WM SDK (may be under different name) or does not exist. In last case you would need to write something of your own. ...Show All
Visual Basic Datagridview selected row problem
I everyone... I've got a problem at a datagridview row seletion. I've got a function to search ID in all datagridview rows, and when it find the correct row with my seach id, i need to select the row. At this point, no problem: For Each row As DataGridViewRow In dgvContas.Rows If row.Cells("CodigoConta").Value = CodigoConta Then 'selecciona a linha correspondente ao codigo de conta dgvContas.Rows(row.Index).Selected = True 'Altera a area de visualizacao de forma a mostrar 'a linha seleccionada &n ...Show All
Visual C# report logging
hey guys, i'm relatively new to c# and i've got a important project using c#.. why blame my school.. anyway, the project i'm working on, involves the saving of Logs.. for reference.. however, these logs only store 1 entry at any given time. should there be more than one user accessing the database at one time, it might cause the system to crash. it'll be so darn helpful if anyone can tell me what method i should do and stuff. or perhaps a certain phrase i can use to search up on relevant information. i'm in need of help badly.. thanks in advance. the report.. or logs, are stored as text files.. these text files are time stamped.. example, 2006-12-14 16:25:19.34 ****** Using '********.DLL' version '*.* ...Show All
