CristianC's Q&A profile
Visual Studio Tools for Office Solution ( VSTO doesn't work in a custom ActiveDocument host)
Hello, As already reproted here, the VSTO runtime doesn't get attached to a Word.Document hosted in custom container. In my case I wrapped Word ActiveDocument as an ATL ActiveX control (similar to DsoFramer ). This control is used from my Word add-in, inside a modeless dialog, on the same apartment (Word is STA). So no marshalling is involved. Also my ATL-based smart tags work OK. But VSTO features in the Word document do not run. Did you guys have any particular reason to disable VSTO for such scenario Can I enable it somehow Thanks, Andrew Nosenko, andien@geocities.com ...Show All
Visual Studio 2008 (Pre-release) Using Session in wsHttpBinding with secure = none doesn't work
Hi Why can't I use in wsHttpbinding the [ ServiceContract (Session= true)] with the secure disabled I try it but InvalidOperationException is throwed. My app config is very simple: < system.serviceModel > < bindings > < wsHttpBinding > < binding name = " NoSecure " > < security mode = " None " /> </ binding > </ wsHttpBinding > </ bindings > < services > < service name = " Amazon.OnlineShopService2.OnlineShopServiceType " > < endpoint address = " ws " binding = ...Show All
Visual Studio Express Editions sendkeys and focus
Ok i got a bit of a prob. i'm tryin to make vb type in a webbrowser thing tht i got onscreen in a vb form. my friend suggested send keys but you have to set a focus to the webbroweser or somethin like tht. i tried everything he's said but i've had no luck. can anyone out there help me if u didn't get tht, i want vb to type in a webbrowser bit which is in my form when i click a button. ok a bit of an update here. i tried what my friend said again except with a textbox. tht worked. But i tried the exact same thing except with my webbrowser and it doesn't work. Why not and how can i fix it so it will ...Show All
Visual Basic Re-newbie question (don't laugh!) for DataGridView
Ok, promise not to laugh! It's been several YEARS since I have programmed in VB but am ready to start anew! I'm trying to convert an Access project that works great (but is VERY SLOW) into VB 2005. It's very basic! Question...I am using an Access database to store student ids needed for my project. I am showing the table (one column, student id) in a datagridview. The display works beautifully and the table shows the entered values between forms. However, the values are not SAVING to the Access table even though it is bound. I am using the following code to save the data (I think)... Me .EMPLIDTableAdapter.Update( Me .EMPLIDBindingSou ...Show All
Visual Basic Looking for good VB.Net 2005 book
I am new to VB.Net 2005 and to VB in general. Can anyone recommend a good comprehensive book on the subject Thanks, Steve How about Introducing Visual Basic 2005 for Developers It's a free download. ...Show All
Windows Forms System Colors
Hi All, I used the following to create a custom color in vb.net How can I make this colour public so that I can refer to it doesn't matter in which form I am. I all my forms to have the background colour that I have created. How can I do that This is my code: oColor1 = Color.FromArgb(255, 0, 0) TextBox1.BackColor = oColor1 Please Help, Rudi hmm I should have tested my code, then I surely would have noticed that this was wrong and I forgot the static keyword, too. Sorry. ...Show All
SQL Server I need help debuging this error message::
Hello everyone, All weekend long I keep getting this error message when I run my SSIS package: Error: The variable " system::localeID" is already on the read list. A variable may only be added once to either the read lock list or the write lock list. I have search everywhere for this message without success. Could someone help to explain this and what to do to to bypass it. Your help will be much appreciated. Omon What are you trying to do with that variable and where are you trying to do it It is most likely in a Script Task or a Script Component. If you cannot find where you are referencing it then ope ...Show All
.NET Development How to override DataRow.Tostring()?
Hi, I'm adding a DataRow to a listbox. The listbox displays the string "System.Data.DataRow" because that's what 'ToString' returns for the object type of DataRow. How can I override what DataRow.ToString() returns I tried creating a derived class of MyDataRow but the DataTable.Rows functions would not cast from DataRow to MyDataRow. Thanks. A DataRow is an object which contains an array of elements and therefore you can't simply utilize the ToString method and expect it to return what you want. You are thinking implicitly and you've got to have a more explicit approach. Before I get into that I just th ...Show All
SQL Server Error in SSIS JOB Execution
I have a SSIS package which in turn calls 4 child packages. I’m using indirect configurations i.e reads the DB and table name from the environment variables and read the actual configuration values from the table. We have created a service account which has least required permission on the server to run the packages. I have created a Credential, proxy using this credential and a job which executes the package using this proxy. When I scheduled the package it throws the following error In JOB Hsitory : The job failed. The Job was invoked by User FAREAST\v-dupras. The last step to run was step 1 (please run). ...Show All
Windows Forms Combobox - Getting selected text
Hi, I binded a combobox to a datatable like that: --------------------------- dtblPerson = CommercialDB.GetCustomerSellerPersons(); cmbPersonCompany.SelectedIndexChanged -= new EventHandler( cmbPersonCompany_SelectedIndexChanged); cmbPersonCompany.ValueMember = CommercialDatabase.CustomerSellerFields.CustomerSellerID; cmbPersonCompany.DisplayMember = CommercialDatabase.CustomerSellerFields.CustomerSellerName; cmbPersonCompany.DataSource = dtblPerson; cmbPersonCompany.SelectedIndexChanged += new EventHandler(cmbPersonCompany_SelectedIndexC ...Show All
SQL Server Tag name from an XML
How can i get the tag name from an XML. Suppose this is my XML, <ROOT><NAME/><ADDRESS/></ROOT>, I need to read the tag name, NAME, ADDRESS. Using the local-name function: -- If you want to use the tag name in XQuery declare @x xml set @x = '<ROOT><NAME/><ADDRESS/></ROOT>' select @x . query ( 'for $i in /ROOT/* return local-name($i)' ) -- If you want to use the tag name in SQL declare @x xml set @x = '<ROOT><NAME/><ADDRESS/></ROOT>' select n . value ( 'local-name(.)' , ...Show All
Visual Basic Disabling sort function in Datagridview
Hi Is it possible to disable the "sort function" in datagridview that happens when pressing the header I would like display some data that you cant order by clicking on the columheader. Can you lock the headers somehow If i recall correctly - if you go into the column individual column definitions and look at there properties Select datagrid -Right Click and select Edit Column -> Sort Mode properties Set it to Not Sortable. This enables you to select which columns you want to allow to be sortable and which ones you dont. ...Show All
SQL Server Maximum number of connections
Hi, Could somebody tell what is the maximum number of concurrent connections that are supported in sql server 2005 developer edition thanks SQL Server allowed 32767 connections per instance in SQL 2000. I don’t think they lowered it down. With 16 instances you could theoretically come up to 524272 connections (which is sort of unbelievable). I don’t know if your question has only an academic flavour or how many can be instantiated in the real world. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Attaching & Detaching database using sql2000 SMO/DMO
Hello everyone, Please I am writing a project for my client, I want the database to be able to attach it self automaticaly when my program is loading and when the client exit it should be able to detach itself. please it urgent. thanks to all ...Show All
.NET Development Integrated security problem
Hi I have two virtual webs on my win2K3 server. WebApp and WebServ, the latter is hosting a remoted object and the former is calling it. With anonymouse access turned on everything is fine. However I want Integrated Security instead with no anon access, but with this option I get the error: The underlying connection was closed: The request was canceled. I've followed what I believe are the neccessary steps outlined in the following Kb article, specifically the items needed in each web.config http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetsec/html/SecNetch11.asp Am I missing something else Thanks for any help Web ...Show All
