DTHMTLGOD's Q&A profile
SQL Server UK date format being switched to US format
Hi all, I am updating some reports in SSRS 2000 and need to pass a couple of date parameters to the reports. I pass the dates like so: ... params( 1 ) = New ParameterValue params( 1 ).Name = "DateFrom" params( 1 ).Value = dateFrom.ToString( "yyyy-MM-dd" ) params( 2 ) = New ParameterValue params( 2 ).Name = "DateTo" params( 2 ).Value = dateTo.ToString( "yyyy-MM-dd" ) ... I am using the format 'yyyy-MM-dd' to try to avoid any regional format problems, but when the dates are used and displayed in the report, they have magically switched to US format! How do I get around this Regards, Stephen. Try this fella Format(Cdate (Fi ...Show All
Visual C# documentcomplete event
I've got a really weird problem with my application; it works on some pc's, and it doesn't on some others. What I've got: A Visual C# 2005 console application with references to MSHTML and SHDOCVW. I use mshtml to get a list of currently open browser windows, and attach events to it to edit the list when a new browser window is created or closed. I attach a documentComplete event to each open browser window and handle it the event there (let's say it prints out the url where is navigated to). So when I run this program, it should detect when I open a new browser window, when I close one, and it should print out the url of a site when it is done loading it. And there's my problem. On a few pc's, it all works perfectly. But o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need to Load my own graphics format file --> Custom Importer
I need to Load into the content manager my own graphics format file, i already have the libraries to load this file and extracting it into a Bitmap Array , but i don't have any idea about how i can allow the content manager to load this info. I'm making a 2d videogame, my own graphics file format have a lot of extra information for each frame that it have, because of that i need to read this file extract the bitmap info and the extra info, off course i need that my Texture2D objects obtain the images from the bitmaps that i extract from my own file. something like that: **Solution Explorer --Content ----Textures -------MyFile.JKI Where MyFile.JKI is a file with my own graphic image format, i have the lib ...Show All
Smart Device Development compact framework activex
hi i want to use windows activex on pocket pc or smartphones if it's not possible please help me and if it's possible ,please help me for helpful information thank you very much I want to be more precise. I have Adobe Flash Lite 2.1 installed that supports standalone flash application on Windows Mobile 5.0. What i want to know is, can we use Flash's AciveX control with our Windows Mobile 5 form applications. If yes then how and if no then is there any possibility in near future NOTE: Since flash lite is installed on target Pocket PC and it plays all supported flash files (so it seems flash activeX control is installed in the PocketPC) so now what do you say about it, can we use it now ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Farseer Physics Engine - 2D Physics For XNA (Release 1)
I just posted the first release of my Farseer Physics Engine on CodePlex. You can get it here (In the "Releases" section.): http://www.codeplex.com/Wiki/View.aspx ProjectName=FarseerPhysics Release includes source and binaries for the physics engine and the following demos: Demo 1: simply move a box around using the ASDW and LEFT/RIGHT arrow keys. The box is pushed around and rotated using forces and torque. Demo 2: similar to demo 1 execpt there are 3 boxes and they can collide with each other. You can cycle through different gravity directions using the space bar. (starts with zero gravity, then down, up, left, right, back to zero) Demo 3: similar to demo 2, but includes some non-convex r ...Show All
Audio and Video Development fill attribute not working
HiI there Consider this code sample <timing clock="page"> <par begin="0s" end="20s"> < cue select="id('BTN01')" begin="//button[@id='BTN01'][@state:focused='true']" end="//button[@id='BTN01'][@state:focused='false']" fill="hold"> <set style:border="8px solid fuchsia"/> </cue> < cue select="id('BTN02')" begin=0s" end="//button[@id='BTN02'][@state:focused='false']" fill="hold"> ...Show All
Visual Studio HTML Help Creator is crashing
Hi there, I have a problem with HTML Help Creator. I have configured the test.hhp to display the compile progress so here are the latest lines after calling "hhc.exe test.hhp": [...] // lots of html\[...].htm here html\fff1bfb4-feca-c386-6b1c-ca19972edae1.htm html\fff20344-919d-6970-c921-2d8578e3a580.htm html\fff8972b-3435-6471-2502-073b8a98c4ec.htm html\fff94f6a-83ce-e0bc-47cc-50ea4835e697.htm html\fff997ff-c805-6357-d1f6-69304a0deec1.htm html\fffac1bc-914c-d713-9de4-4e863e2ca257.htm html\fffb73f4-22bf-2748-2392-2970e22d915d.htm html\ffff0905-bf0e-5709-1530-ebe293710f98.htm scripts\Dropdown.js scripts\EventUtilities.js scripts\script_manifold.js scripts\SplitScreen.js styles\presentation.cs art\collal ...Show All
Windows Forms DefaultValuesNeeded Event not Firing
Good morning, I am trying to default vaues for a couple of columns on my grid. I have tried a couple of approaches but cannot seem to get this event to fire. I am letting Visual Studio do the majority of the work so in the designer you have: this.broadcastRightsDataGridView.DefaultValuesNeeded += new System.Windows.Forms.DataGridViewRowEventHandler(this.broadcastRightsDataGridView_DefaultValuesNeeded); And then this: private void broadcastRightsDataGridView_DefaultValuesNeeded( object sender, DataGridViewRowEventArgs e) { MessageBox .Show( "defaultvaluesneeded entered" ); } Yes, I have tried debugger to see if the method gets hit but this is a hold over from my old green screen days. Anyway, the ...Show All
SQL Server A Way To Go To First Row In A Parameter's DataSet?
We have cascading parameters in many of our reports. Many of the subsequent parameters after the previous ones have been selected, will result in a dataset with just one or two rows. Is there anyway to have Reporting Services select that first (and many times the only) record in that dataset Thanks! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Whos using TorqueX, Who isn't?
Just curious: 1. Are you using TorqueX or not - and why or why not 2. If you are using TorqueX are you also using TorqueX Game Builder and why or why not I'm experimenting with both but haven't decided if its the way I'm going to go yet. I'm using TorqueX, in the sense that I'm reading the docs and sample code voraciously, but haven't touched the Game Builder yet. That's my project for THIS weekend. All in all, I'm pretty damn impressed. http://geekswithblogs.net/cwilliams/archive/2006/12/15/101326.aspx Chris ...Show All
SQL Server Problem with UPDATE TOP
The documentation of the UPDATE statement says that TOP(exp) is allowed, but when I try update top (1) mytable set status=3 I get Msg 156, Level 15, State 1, Line 1 Incorrect syntax near the keyword 'top'. I don't see the cause of the problem. You are sure right, thanks for correcting me. Seems that its time for me to go to bed in the middle of the night :-) -Jens. ...Show All
Visual Studio 2008 (Pre-release) Service references and libraries
I have many libraries in my app and wanted to create a 'WCF services' library to keep all of my services references and functions in one place. I find that it does not work unless I have a service reference in the services library and in each of the calling libraries - obviously not simplifying things as intended. Is there a way of doing this Thanks John Follow up to initial post. I was still having problems in my main app referencing the WCF service from a library (dll). A test app worked fine with the code in the main app - no dll's! I found that when I put a service reference in my main app that called a function in the dll then it worked ie I had a service reference in the main app ...Show All
Windows Forms Click doesn't install required components
Hi all... I have developed a simple Windows Forms application that uses ReportViewer control and ADO.NET to access a SQL Server database by mean of SqlClient classes. Then I published the application to a web page. When I load the publish.htm page from a client computer, it says that .NET Framework 2.0 isn't installed, showing a "Install" button. Well.. I pressed it and .NET framework 2.0 was installed, I think. After that installer wizard finished, I continued installing the application but an error telling that ReportViewer assemblies aren't in GAC occurs. I manually installed ReportViewer component, then I rebooted the machine, just in case. I loaded publish.htm page again and when I tried to install the applicatio ...Show All
Connected Services Framework Microsoft Connected Services Framework 3.0 BTS WSE Adapter
1. Where do we get the Microsoft Connected Services Framework 3.0 BTS WSE Adapter from 2. Is it freely available Sachin, You can get the BTS WSE Adapter through your Microsoft representative. It is available as part of a CSF deployment. It is not available through MSDN. Thanks, Raymond ...Show All
Smart Device Development Why can't I ping outside of the Emulator?
Hello All, I have tried to ping the IP and hostname of the Vs2005 Arm Device Emulator without any trouble but I can't seem to ping even the machine the emulator runs on. I get PING: transmit failed, error code 11010 Any thoughts would be appreciated :) Bob Hanson Hello Andrew, I am invoking from the VS2005 environment so I am using the Microsoft Device Emulator 2.0 Beta - Community Technology Preview. The WinCE X86 version is not an option from VS2005. The emulator works great otherwise but I seem to have this issue ;( Bob Hanson ...Show All
