detzX's Q&A profile
Visual Studio Tools for Office Adding charts in Word without Excel popping up
Hi, What is the best way to programatically add a chart to word, without userinput. Im trying to write a function in Visual Studio that pulls some data and creates charts from it in word. I managed to add a chart but whenever i do, it opens up excel for specifying the series data, wich i dont want. I simply want to fill the data and formatting options trough code without the user ever noticing it. Should i create an instance of excel and fill/format my chart in there and when im done, copy it to word Regards, Jape. Dim Ishape As Word.InlineShape Dim I mpRange As Word.Range = Globals.ThisAddIn.Application.Selection.Range Ishape = Globals.ThisAddIn.Application.ActiveDocument.InlineShapes.AddChart(Microsoft.Office.Core.Xl ...Show All
SQL Server Data type for "Comments" field?
Hi, I am using SQL Server 2005 Express. I am creating a table, which will have a comments field. Whats an appropriate data type that should be used for a "comments" field So far, I have unlimited text and characters can be entered, but that a limitation can be placed. Thanks Chirs ...Show All
Visual C# Passing Values from Form A to Form B and vice versa!!
Hi all, I'm using Visual C# Express 2005. I have two forms, form A and form B. I can pass values from form A to form B but I can't get the values from form B to form A. Any help would be appreaciated. Thanks in advance!! My answer is different from the one in the above link. So I will try to help.. You should subscribe ( newForm.sendParams += new Form2.parameterPassing(newForm_sendParams); ) to the event in the MainForm (Form1), where you call form2, not in form2; in your try you had subscribed to the event in form that you describe it. So it doesn't work. also for the frist exception; If you never subscribe it to anywhere then you get a null reference exception. ...Show All
Windows Live Developer Forums Assign to Pushpin
I have a set of pushpins whos ID range from 0 to 4. So I was wondering if there was a way to assign the code listed below to a single pushpin (by ID ) Thanks function PinClick(id) { document.getElementById('txt1').value = ("ID 0"); document.getElementById('txt1').value = ("ID 1"); document.getElementById('txt1').value = ("ID 2"); document.getElementById('txt1').value = ("ID 3"); document.getElementById('txt1').value = ("ID 4"); } I know you said your code might not be completly correct but if I show you the code below can you see mady why this is not working for me Thanks! < html > < head > ...Show All
Windows Forms .net framework setup
I have a .NET Window app that is going to install on target pc which do not have .NET Framework.....i use the following step which i found online to create a setup.exe....But the problem is, the setup.exe only can work with the existing of other files (dotnetfx, config.ini........).....how can i bind all these files into the setup.exe because if i dont pack it together,if the user accidentally delete one of the file, the setup cannot work..... Pls help....thank you.... To install the .NET Framework with a Setup project Make sure that the Visual Studio .NET Framework Bootstrapper Plug-in is installed. Select the Setup project in Solution Explorer. On the Project menu, choose Properties . Set the Bootstrapper property to Windows ...Show All
Visual Studio 2008 (Pre-release) sample service doesn't work on Windows XP 64
Hello, I tried to make a windows service that hosts a WCF service. Naturally, I've tried the sample first. It crushes raising an error: System.ServiceModel:Incorrect function at System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen() at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) at System.ServiceModel.Channels.HttpChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Channels.DatagramChannelDemuxer`2.OnOuterListenerOpen(ChannelDemuxerFilter filter, IChannelLi ...Show All
Visual Studio Express Editions Forms and Objects
I am just trying vb.net express 2005 .... I have worked a little on vb... During the course of learning i came across that to show a form I need to create an instance of it first and then use the show method as in dim mform as new MyForm() mform.Show() But when i tried the old vb way with just MyForm.Show() it too worked .... This is the actual code from Form1 of my test project Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form2.Show() MessageBox.Show(Form2.Label1.Text) End Sub End Class What is the difference and is it a mandate I create an instance and why Can anyone help me with this ...... ...Show All
SQL Server Report Builder Report Possibility?
This may not be possible, but I wanted to see what some of the experts' opinions are here. One of our users has created a report in Report Builder. I want to take this report, post it to a folder and allow her employees to run the report. I've put it in a folder called "Reference Line Reports" and gave browser permission to a list of users. These users are able to run the report (without having access to Report Builder or the report model). When they try to utilize the "infinite clickthrough" functionality, I get the following error. The permissions granted to user '<domain>\<username>' are insufficient for performing this operation. (rsAccessDenied) If I give one of these user ...Show All
Visual Studio Team System Import rolemembers
I just imported a database into a Database project. Directly after importing I did a compare with the same database. One would expect this would result in no differences, but there were some. The difference is that for roles which have a role member, this role member is not imported. When comparing schema's, the following code is shown in the target object pane (database) while the bold part is missing from the source object pane (project). CREATE ROLE [aspnet_Membership_BasicAccess] AUTHORIZATION [dbo] GO EXEC sp_addrolemember N 'aspnet_Membership_BasicAccess' , N 'aspnet_Membership_FullAccess' GO If I do a update, the role members are dropped. This is not what I want. In trying to fix this, I added ...Show All
Microsoft ISV Community Center Forums Comparing and filtering data in Excel?
I’ve been given the task of comparing two sets of employee data, both of which are in the same layout/format, and am required to filter out those which are duplicates i.e. should leave only new starts. I have been told that a Vlookup function can be used to achieve this but don’t know how it can Would this be easier to accomplish using VBA If yes, could I have a brief structure of the code required To elaborate, the spreadsheet contains a unique employee ID and other details such as department, manger, email, etc. One set of data is from the previous months upload and the other is the latest data pull. I need to compare this months data with last months and see who is present that wasn’t before. Any help is much appr ...Show All
Visual Studio 2008 (Pre-release) One connection and several models
Hi, I would like to create several models in my application: - People (with all the people related classes/tables) - Orders (with all the orders related classes/tables) - Administration (with all the administrative related classes/tables) - ... Also, I would like to be able to link some objects of People with orders ... It is a question of organization, because in my previous jobs we have build up to 12.000 Business objects and have all in the same model is impossible to manage. Also I would like to have only one "connection" object related to everything. Is it possible Thanks for your help I htink you can get what you want using the following approach: When you generate code from the model we create a specialization of ...Show All
SQL Server deleting a data viewer causes BI Studio to crash
Is there any way I can remove the data viewer (or even the whole data flow task) so that BIDS doesn't crash. Whenever I delete the data viewer, or the objects that the flow is linking to, or the data flow task, or even the sequence the data flow task is contained in, BIDs crashes. thanks riga66 wrote: Even deleting Breakpoint for data viewer causes crash. Hi Robert, Did you perform the first and most important step: Close all SSIS designer windows ...Show All
Visual C# Detecting changes for "Save" and "Save As..." purposes
I have a base abstract class that contains a generic dictionary. All of the derived concrete classes inherit this dictionary. The Value of the dictionary is of the base class Type. This is to allow adding/deleting of derived types. Ok, what I would like to do, is detect when changes have been made in the object model, so that I can implement a "Save" and "Save As..." method. What is available out there that allows me to do something like this For your custom object type, you have to implement the Equal() method yourself to tell in what condition the two objects of that class is equal. public class Robot { private string name = "";   ...Show All
Visual Studio Dynamic SELECT Commands
Hi everyone. I am developing a data management program for an Office of Fraternity and Sorority Life at a university. The backend is an access database, and they want report functionality. They want three different report types: Contact Information (Chapter Name, Name, Email, Cell #), Mailing Information, and Chapter Information. For the Contact report, it can either be an Alumni or Undergraduate report (based on user input). Also for the Mailing report, it can be either local or permanent mailing information (also based on user input). The way I handle this is by having a sort of "report builder" where the user selects either "Contact", "Mailing", or "Chapter." Then for example, if the user selects Contact, then he will have t ...Show All
Visual C# Check file signature?
Is it possible to compare a file's signature to a string Thank you. Evan Mulawski Hi Evan. I'm answering to your post asuming a couple of this... since I'm still not sure of what you want. Most files start with a header. For example, a bmp starts with the BITMAPFILEHEADER. Within this header usually , the first bites are a signature . For example, the BITMAPFILEHEADER start with BM. Anyhow, I assume you will not know what your file contains... so you can't assume that it starts with text. Therefor the answer to your question is " no ". What you can do is convert the string to binary and compare it with the file's first bytes. This is: public bool FileStartsWith ( string signature, string file ...Show All
