Luc Pettett's Q&A profile
SQL Server How to order measures in SSAS?
Hello, I'm wondering if any of you was able to sort all measures (including calculated) alphabetically so it is displayed nicely in pivot table I'm able to sort them by partitions, but do not know how to sort all measures across partitions. Your help is appreciated. -Lawrence Yes. I am not quite sure how to create folder to bucket the measure groups, and the link does not really tell me how (or maybe I'm missing the steps). Do you create the folder in SSAS or Excel I am currently using Excel 2003 Pivot Table connecting to OLAP 2005 Cubes. Thanks! -Lawrence ...Show All
Smart Device Development How to detect if a Smartphone application is put in the background?!
Hi there! Following problem: I have a Smartphone application which has main window which consists of a single (docked) TreeView. I need to perform certain tasks when the application is put in the background. That is when the Escape/Back key (KeyCode 27) is pressed. However it looks like and TreeView / ListView eats up that KeyCode. I tried a number of things but i simply can't get the escape key event. This is probably because the escape key might also be used to collapse tree nodes. So how on earth can the application figure out, when it is put in the background when neither the TreeView nor the Form fires the KeyUp event for the Escape/Back key Do i have to do some dodgy constructs with the OnDeactivate / OnMinimise event ...Show All
Visual Studio 2008 (Pre-release) Master-Detail Binding with XML Source
I have problem to create Master-Detail Databinding with the XML Resource File. I am using WPF Feb. CTP on Windows XP. I want to create a combobox where i can choose between different languages and when i select one language all labels should change. Here is some Sample Code: The Scene1.xaml <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006" mc:Ignorable="d" Background="#FFFFFFFF" x:Name="DocumentRoot" x:Class="UntitledProject1.Scene1" Width="640" Height="480" > <Grid.Resources> <XmlDataPro ...Show All
Visual Basic Line Drawing
VB code is all rather new to me. How does one draw a line on the form using code whilst the program is running I am trying to get it so that when the input changes, the line's slope will change. Many thanks for any and all assistance. :D Lots of ways to do it, here's one: drop a TextBox control on the form and rename it from TextBox1 to txtSlope. Then paste this code: Public Class Form1 Private Sub txtSlope_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSlope.TextChanged Me.Invalidate() End Sub Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint If Not IsNumeric(txtSlope.Text) Then Return Dim angle As Double = ...Show All
Gadgets xmlHttpRequest on Vista Home
I have utilized xmlhttp on many occasions to power ajax enabled projects and have never had a problem with it until now. The following javascript code is debugged and runs flawlessly in IE7, but does not work when installed as a gadget. Is there something in here that gadgets do not support but IE7 does function GetXmlHttpObject(handler) { var objXmlHttp=null; var strName="Microsoft.XMLHTTP"; try { objXmlHttp=new ActiveXObject(strName); objXmlHttp.onreadystatechange=handler; return objXmlHttp; } catch(e) { alert("Error. Scripting for ActiveX might be disabled"); return; } } function showDisplay() { var url=" http://www.ourwebsite.com/phpscript.php variable=one"; xmlHttp=GetXmlH ...Show All
Visual Studio Express Editions How do I refresh a directory?!
I try to refresh (like pressing F5 button in windows) a special folder via programming ! But I don't know what should I do! Please help me Windows normally "refreshes" the folder contents if files have been dealt with in some way. Are you using some control for example a treeview/listview/something else to view the directory listing and you wish to refresh that automatically...or..... ...Show All
Microsoft ISV Community Center Forums MSDN licene vs. purchased license
My new boss wants to know which windows 2003 servers are MSDN installed OS's and SQL Servers and which are legitimately purchased licenses How can I tell just by looking at the license key in the registry The MSDN licenses are the ones running on non-production servers (i.e. uses only for testing), the production licenses that those running on production servers. But, you could always run something like a key finder ( http://www.magicaljellybean.com/keyfinder.shtml ) to get the cd key of the Windows and compare it with your license MSDN license key list. ...Show All
Smart Device Development [Vista] + Device Emulator + Mobile Device Center
Hello, I have just migrated to Windows Vista. Everything is working (for now :-) ), I only have some problems with cradling VS 2005 Pocket PC Device Emulator. (to be more specific, i would like to share Internet between my computer and my Virtual Pocket PC.) I learned, that Active Sync was changed with Windows Mobile Device Center and that the WMDC should install via Windows Update (i run everything and checked in control panel, but WMDC was not there). Next information I received was the following one: Your Windows Mobile device must be connected to the computer for Windows Update to be able to detect the driver update and install the update. The problem is, that I don't have a physical device, I am o ...Show All
Visual Studio Express Editions C++/CLI reserved identifier question
The following fragment uses the IN reserved identifier but I can't find anything on this identifier and would like to know what it's for and how it's used. #include "ntddk.h" NTSTATUS DriverEntry( IN PDRIVER_OBJECT theDriverObject, IN PUNICODE_STRING theRegistryPath ) { DbgPrint("Hello World!"); return STATUS_SUCCESS; } Also, there is a bit more in " C++/CLI keywords: Under the hood " at Herb Sutter's Blog . ...Show All
Visual Studio 2008 (Pre-release) WCF auto-disconnect
Hi, Does anybody know how to disable the auto-disconnect If the Client Application doesn't send any data for long time the WCF disconnect it. I have a WCF console server using the 'PerSession' behavior. Thanks, Alexnaldo Santos The ReceiveTimeout and SendTimeout has to do with Service Operations and the InactivityTimeout has to do with how long the Service can be waiting for client requests to come. In Alexnaldo's case, i believe he's experiencing the later. Correct me if iam wrong. ...Show All
Visual Studio 2008 (Pre-release) Sending Attachments in WCF
Hi i am trying to send attachments from my client app to my service app in WCF with the help of the samle provided at " http://weblogs.asp.net/cibrax/archive/2006/03/29/441398.aspx " I am using Beta2. But when i try to add service reference to the client in that sample i am getting an exception stating "Compression Header is missing". I am not sure which CTP the sample is. Need help regarding this. let me know is there any other sample available for sending the attachments . TIA Cheers Jithendrian. R Hi Michele i want to send large binary arrays along with my message( basically i am converting my attachment files to binary arrays). As you pointed out i want to kno ...Show All
SQL Server Using stored procedure as OLE DB source with parameters from package variables
Hi Guys, (I have searched this forum extensively, but still can't find the solution to this problem) Here it is: I have step in my ETL process that gets facts from another database. Here is how I set it up: 1) I have to package variables called User::startDate and User::endDate of data type datetime 2) Two separate Execute SQL Tasks populate those variables with appropriate dates (this works fine) 3) Then I have a Data Flow Task with OLE DB source that uses a call to a sproc of the form "exec ETL_GetMyData @startDate = , @endDate = " with parameters mapped accordingly (0 -> User::startDate, 1 -> User::endDate) When I run this I get an error 0xC0207014: "The SQL command requires a parameter nam ...Show All
Visual Studio Express Editions How to make a picture box a move bar
i'm wanting to substitute the title/move bar at the top of a form, with a picture box, could someone help me with that please i cant make it move the form when you click+drag it. Josef Stalin i kind of meant i need help on making the picture box move the from. i want it so that whne youser click+drag on the picture box it drags the form around, however so far when it gets dragged it just makes that form jump wildly around the screen. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Free 2d assets?
Anyone know of any good sites for grabbing some good free 2d assets sprites and the like (preferably space shooter type 8) cool... thanks. Love it when I get new pages to add to favorites. Just wish I knew what all my favorites were... time to go through and organize em =P ...Show All
Windows Live Developer Forums OGC WMS/WFS connection in Virtual Earth
Hello all, MSN VE is looking fantastic and getting better. Indeed a good option against google earth. But I could easily make some php scripts that could connect WMS to Google and project data on the fly to GE and this was also possible with MySql+GE connections. But did anybody already do an experiment to connect a WMS to MSN Virtual Earth I would be very much delighted to have some codes if possible. Shuman Kibria Please contact kibria14829@itc.nl I'd liek to see some examples.. we use ASP and have done the WMS with Google Maps using an ArcIMS server.. I just posted yesterday on how to get our exsisting Shp files, MrSID and other ESRI based extensions to work. .. Jason ...Show All
