Wing Lee's Q&A profile
Visual Studio Tools for Office VSTO Word doc design error when adding an numericupdn
Every time I add a numericupdn control (or any control for that matter) I get the following error. This is in VSTO for a word document. I'm adding the control into a table cell. If I let the designer drop the control where it wants to it is fine, but if I try to place it where I want I get the error. I have Windows XP and am using Office 2003 SP2. Designer failed to load correctly. Then in the Error list I get... Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION) System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) at Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider.GetHostExtender(String extenderT ...Show All
Commerce Server Retrieve ALL products best practices?
I'm looking for the best way to retrieve all the products in a catalog. Currently, i'm running a CatalogSearch to retrieve all the product Ids and then calling GetProduct for each product Id to get the Product objects. Is there a better way to do this Michael. When you perform the catalog search you can specify the properties you want to be returned in the PropertiestoReturn property. This way you get all the informationyou want in one call ...Show All
Software Development for Windows Vista The Sample Does Not Work
Hi I read all the material in the CardSpace Home site and looked at the samples. I Installed the simple STS example but I did not manage to get the STS to work... The Sample site works well so the IIS configuration is OK. I created a managed card, Installed it and run the STS service. When I use this card (in the site exectly according to the manual) the STS does not create a session token for some reason...) It looks like it does not respond... I cheched to see if the service is alive and it is! (browsed to the base address) How can I find the problem I think that the private policy file is missing (I did not find it) and http://www.fabrikam.com/PrivacyPolicy.xml is null T ...Show All
Software Development for Windows Vista Where is IIS in Vista 5219?
I had installed Vista Beta 1 and as it should be, IIS was not enabled by default. In Vista 5219, I don't even have the service listed "World Wide Web Publishing Service." Am I missing something Where is it I can't do Indigo development without it. its funny yo. After installing IIS, i even cant find IIS Management in Administration Tools. Where is that im using vista home yo. cheers ...Show All
Software Development for Windows Vista Context in workflow?
I was curious to know if there a way of sharing a "context" between all activities in a workflow instance. I am looking at something analogous to HttpContext in ASP.NET and LogicalCallContext in Remoting. Of course, I can resort to ThreadLocalStorage or AppDomain data myself, but I wondering whether there is a better way of handling this. Thanks, Manoj Paul, I am not clear how creating a custom activity would help me solve the problem. I have asked several times for simple code samples to get me started. I just need a starting example. Thanks in advance, John Portnov ...Show All
Smart Device Development socket programming
hai everybody iam trying to connect to ftp server from ftp client, the connection is establishes also and i can download the files from ftp server also but , i downloaded the files from particular path "c:/inetpub/ftproot" only. iam unable to access / download the files from other paths. if i want to do download the files from other paths in the ftp server what i have to do.. Can anybody help in this regard hello , Thanx for ur help... iam running sql server in one LAN A at port 1433 i wrote a normal client program at LAN B .. Using tcp/ip socket programming i connected to sql server running at 1433.. how can i pass the queries to the sql ser ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Absolutely positioning a basic effect on the screen
Hello I am making a game that uses 3D modelling - it's very basic - I started off with the spaceship example in the GSE help. Now I would like to define an area of the screen - a rectangle that I will eventually use as a map. I want to draw this rectangle onto the screen. I have taken the example code from the help, the example is called " How to: Draw Points, Lines, and Other 3D Primitives", and can understand how that code works. Problem is, I have added this to my spaceship code and it draws the rectangle onto the page relative to the centre of the screen. What I mean is that the camera follows my spaceship as it flies around the asteroids but the square is always in the centre of the screen. Here is the Draw funct ...Show All
SQL Server Report Manager Grouping (Consolidate Times)
I put a post about this the other day but I wanted to clarify with a different approach (since I didn't get an answer). To be clear, I know how to do this really simply in T-SQL but, I'm trying to figure our Report Builder, which I am new to. There will also be end-users without T-SQL experience using Report Builder. Data coming from an analysis services cube, fact table. Each row represents record(s) that were contacted during that time frame, Contact Time | Record Count 12-21-06 9:00:00 AM | 2 12-21-06 9:04:00 AM | 3 12-22-06 8:00:00 PM | 4 12-23-06 7:00:00 AM | 8 12-24-06 8:04:00 PM | 1 I want to group on the time. So I can state "We had X number of records contacted between 8 am and 9 am in ...Show All
SQL Server First time user that can't find answer. Need online website.
HI! Thank you for even looking at this question. I need to get a website up and running for a small group of people. I've had SQL Server for a while, but didn't have any use for it. It came with Visual Studio 2005, which gave me a little know how on scripting. Now, I have Visual Web Developer and what I need to make a web page. I just need to know how to configure all my settings to allow my website to be viewed online by anyone with an internet connection. I'm a person that understands detailed or simple directions, but I can not seem to find directions online. Now, I know what your thinking, but I've never attemped anything like this before. So, please, HELP! I need and want to learn as much as possible. Thank you, tecfreak213 P ...Show All
Visual Studio 2008 (Pre-release) msmqIntegration And Serialization
I send messages to an Endpoint with MsmqIntegrationBinding and it seems that the DataContractSerializer is not used. When i deserialize the object with DCS before i send it the resulting XML looks different from when i read the bodystream on the message on the client. I thought that DCS was used for serialization by default Does anyone have an idea Ok, I'll try to grab the relevant code. As i said, when i read the message BodyStream the Xml is different from when i Serialize the response object using a DataContractSerializer. Using DCS the xml contains Namespace tags in the xml, when reading the message bodystream it is just plain xml without my specific DataContract namespaces. This is the ...Show All
Visual Basic Embedded Resource?
Hi, I am trying to create a file that is seperate from the EXE file. The application I am making has a typical login form. The usernames and passwords are stored in a database file. Instead of coding the validation of the user into the EXE, I want the code to be in it's own file. I would like to access this file from my application. At this moment I figure that the validation code should be created as a module. The module should be built as an Embedded Resource. First question is; is this the best method to do this, meaning would a module be the best approach I want the file seperate because I want the ability to change the validation coding at anytime without having to recompile the EXE file. Logic dictates creating the validatio ...Show All
.NET Development Class diagram architecture question
Is it a standard practice to have an abstract parent class for the sole purpose of grouping a particular set of classes There is no methods, members or anything in the class. Here's an example of what I'm trying to ask: Say I have Superclass called RobotPart, and a class derived from RobotPart called Physical. Both of these classes have their own properties and methods. I was wondering if it was conventional to have two derived classes of Physical called Structural and Sensor, neither of which have any properties, methods, members or anything, other than a constructor that passes variables back up to Physical. Of course these classes would be abstract, and would not allow instantiation. You should also conside ...Show All
.NET Development XML Error associated with mscoree.dll
My solution consists of a dll to interface with ESRI's ArcMap application as well as two executables, an XML document (AddPLSS.xml) and an install package. It compiles and installs without any problems, but when I try to open ArcMap, I get the following error: XML Error: The sytem cannot locate the resource specified. In (failed) mscoree.dll/AddPLSS.xml. The xml file itself seems to be included in the dll and the install package. It ends up in the right place on the client machine. In fact, this application was working well until fairly recently. I did add one of the executables to the solution, but I never changed anything related to the XML file. I cannot find any reference to this specific error anywhere via Google or MSDN. ...Show All
SQL Server Blank pages in report preview
Hello, Everyone, I'm new to Reporting Services. I wrote a report today containing one grouping. Everything appears all right in the report preview, except that every other page is "blank", i.e., shows only the page header and page footer; all grouping and detail information is missing. The data on the page following the blank page seems to pick up where the previous non-blank page left off, so all information seems to be present within the report. The report width and height properties are typical portrait-style -- 8.5 x 11 inches. The columns do not "run off the edge" of the report page boundary. I haven't selected any page break for the grouping, as the grouping detail is typically only a few rows ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The reverse of Quaternion.CreateFromAxisAngle?
So if I have a quaternion, how would I extract the axis and angle(s) from it Derek Nedelman wrote: Here you go: public static void ToAxisAngle(ref Quaternion q, out Vector3 axis, out float angle) { angle = (float)Math.Acos(q.W); float ooScale = 1.0f / (float)Math.Sin(angle); angle *= 2.0f; axis = new Vector3(-q.X * ooScale, -q.Y * ooScale, -q.Z * ooScale); } The only problem with that is it can potentially cause a divide by zero error if the angle is 0 or PI radians. ...Show All
