nsharma's Q&A profile
Visual Studio Tools for Office Hosting a web page in Action Pane (MS Word 2003)
Hi, Does anyone know if it is possible to host a web page in an Action Pane of Word (through ActiveX control or otherwise), in such a way that events (e.g. button clicks, page navigations) could be captured and routed back to the application For example, a web page that contains several forms, a submit button and a cancel button is residing in the Action Pane. If a user fills out the form and presses Submit, this triggers an event inside the Action Pane and some changes occur. Likewise with Cancel. The idea is to merge the web app functionality with the MS Word, so that a user does not have to open a seperate window/run a diff ...Show All
Visual Studio Tools for Office Basic VSTO questions
I have an MS Word VSTO 2005 application that uses XML tags. I put custom controls on the ActionPane to navigate a SQL table and update the Word file as the user scrolls through records. All of that works, for the most part. I just have three questions I haven't been able to figure out: - What if I want to start the Word document on a specific record How can I pass some sort of parameter to the document class to tell it which record to start on - It is possible to get the Word document to repeat itself for each record in the table, like a mail merge does - Why is it that only the first occurrence of a ...Show All
SQL Server Why can't add a specific Group as a login to SQL Server 2005
Hi, I am trying to add "Remote Desktop Users" as a login group to SQL Server 2005 (i.e. so they can log into management studio). I get a "Not Found Error" (see below). But it is of course found, because I selected it :-) What is going on here I see the "Administrators" group and various SQL Server groupls added automatically there, so there must be a way, right I know I can add each user in the group individually, but that seems overkill when I can just use the group in which they are contained. Here is the error I get: TITLE: Microsoft SQL Server Management Studio ------------------------------ C ...Show All
Visual C# How to invoke a form class from different NameSpace?
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i call the Form1 of App2 in some event of Form1 of App1 Regards, DSK Chakravarthy This should work. Set a reference to App2 and then in your event in App1. Assuming App2 is your namespace in the second app... App2.Form1 form = new App2.Form1() form.Show ...Show All
Visual C++ Avoiding compiler complains about redefine variables???
Hi all: When I am writing C++ program, I need some global variables and structs to be visible from many files. But the compiler always complains that variable is already defined somewhere else. The problem seems to be caused by not #include file properly, but is there a good solution to avoid this irritating problem happen please Here is an example error message: Topology error LNK2005: "int COLUMN" ( COLUMN@@3HA ) already defined in ParticleSystem.obj Topology error LNK2005: "float UNIT" ( UNIT@@3MA ) already defined in ParticleSystem.obj Topology fatal error LNK1169: one or more multiply defined symbols ...Show All
Visual Studio Error When Deploying Application
Hi, When I deploy my win app which includes a reportViewer control I get the following message. Unable to install or run this application. The application requires your system to be updated to Microsoft.ReportViewer.WinForms Version 8.0.0.0. Any idea what this error means Terry, that didn't work for my problem of using a ReportViewer in a webform in local mode at a hosted website. By the way, your previous article, "Visual Studio 2005 Beta2 and Reporting Services - The Most Interesting New Feature for Me", was VERY helpful to me. Many thanks for that. ...Show All
.NET Development ReaderWriterLock doc ambiguity
Found in the ReaderWriterLock MSDN documentation: AcquireReaderLock supports recursive reader-lock requests. That is, a thread can call AcquireReaderLock multiple times, which increments the lock count each time. You must call ReleaseReaderLock once for each time you call AcquireReaderLock . My question is: If you set a finite timeout on the AcquireReaderLock and that a ApplicationException is thrown, should the release method be called anyway Intuitively, I would answer No to this question. Does anyone know the right answer for sure Thanks in advance, Joannes ...Show All
Smart Device Development Bluetooth printer
How can i send data from the ppc to zebra printer while using bluetooth I've tried to send data with a bluetooth chatprogramma but i get the error sending message on client.Connect( New BluetoothEndPoint( CType (cboDevices.SelectedItem, BluetoothDeviceInfo).DeviceID, ServiceName)) the specific error is : no connection could be made because target machine actively refused it... Printing is not a native, supported feature of the Pocket PC platform. I'm using this for printing on a bluetooth extech 2500: http://www.fieldsoftware.com/PrinterCE_NetCF.htm for an application that is used by conduct ...Show All
Visual Studio Team System Team System - Renaming a team project
We are rebranding and restructuring and so I need to rename some of the Team Projects. I don't wan't to loose all the project artifacts and history. How can I change the name (I realise this will have to impact Sharepoint portal, etc.) Could I do something like a copy and rename destination where I create a blank team project (with the new name) and copy the existing project contents into the new one I don't wan't to loose and project artifacts (including OLAP data). I hope this is possible... Thank you http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=313345&SiteID=1 Here you have th ...Show All
Visual Basic Run-time error 5 in English version XP
My software Chinese Teacher 2005 can run on Chinese version Win XP smoothly. However, some friends in America told me that it could't run on their English version Win XP and there was always a run-time error 5. Is there anyone whose OS is English version can do me a favor Could you run my software on your computer and tell me the result Thank you! ...Show All
Visual Basic SerialPort error
When opening a serial port in the dotnet 2.0, using stopbits.none causes an ArgumentOutOfRange Exception. Otherwise this feature works great. Here is a code example- Imports System.IO.Ports Imports System.ComponentModel Imports System.Windows.Forms Public Class frmComm Dim comport As New SerialPort() Public Sub portHandle() If comport.IsOpen Then comport.Close() End If comport.DataBits = 8 comport.StopBits = StopBits.None comport.Parity = Parity.None comport.BaudRate = 9600 comport.PortName = "COM1" comport.Open() End Sub End Class ...Show All
Visual Studio Express Editions System.TypeInitializationException: The type initializer for 'Phenomenon.modMain' threw an exception. ---> System.Runtime.Intero
Hi when running my app on a win98 the JIT generates this exception System.TypeInitializationException: The type initializer for 'Phenomenon.modMain' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80040154. does anyone know how to resolve this I developed the program on XP. it works on other XP when i got .net 2.0 framework but doesn't work on 98 (even though i have installed .net framework 2.0). How do i resolve this error. I presue it's somthing to do with .d ...Show All
.NET Development XML boot sequence??
Is xml a possible subject lingo for a boot sequence IE. is it possible to have xml boot an operating system well i definetly had no plans of editing my EPROM at this poin, but my MBR yes. i want to test a method of driver verifacation, and implementation. query hardware > save to hardwareprofile serch for nearest http, ftp, ssh, ect.. Ddb ( Driver database ) secure connect query Ddb verify drivers in Ddb match harwareprofile return load drivers colleted verify successful driver load start system. ofcource there are options for if the drivers ae most current or not, and if the download becomes corrupt the system can change Ddb. ...Show All
Visual Studio Express Editions Refering to other sub in Visual Basic
How to you refer to another sub in VB I want to be able to press Enter and have a certain sub initiate, that has already been defined as handling a click, without having to rewrite all the code again. A perfect example of this is in Calculator, when you press Enter it does the same thing as when you click the = button. I had a look in the properties of the button that, when clicked, is handled the sub that I'm trying to initiate, but to no avail. If there is a way to give a button an accesskey, please let me know. Otherwise, here's an illustration of what I'm trying to achieve. Private Sub btn_b_Click( ByVal sender ...Show All
Windows Forms VS 2005 RTM WINFORM DESIGNER BUG IS DRIVING ME CRAZY
I have a project with various forms but when I try to view the designer for one of the forms I get the following error messages -even though the project atually compiles : I Have looked around and if you type "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. " IN GOOGLE you gets loads + a notification by Microsoft that says that they could not fix it before release http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=d863064b-04e0-4b54-8f2e-55a43ba29163 now this leaves me STUCK. I wonder whether somebody has found a stable workaround!!. i get this silly ...Show All
