Lightening's Q&A profile
Visual Studio Two datasources, one report?
Assume I have a single report. Assume I programatically add two datasources to the report using LocalReport.DataSources.Add("DatasourceName", DataTable) Assume the report only has two textboxes - I want to grab the first name from the first datasource and place it in the first textbox and I want to grab the last name from the second datasource and place it in the 2nd text box. =Field1.Value <-- using datasource one. =Field1.Value <-- using datasource two. Obviously, those expressions won't work. What expressions would work Does there have to be a subreport to do this Is there a way to get something other than the first Right now I have =Fields!TOGAC_LOT_NO.Value giving ...Show All
Commerce Server OrderContext from a non Web application.
I have been able to create a CatalogContext, Profile, etc. contexts. But I don't know how to create an OrderContext. All the samples and documentation that I have seen reference CommerServerContext.Current which in a non-Web application is null. How do I create/initialize an OrderContext object so I can amonung other things manage baskets, payment methods, orders, etc. It seems that all of the objects in the Runtime namespace are a mystery to me as far as a non-web application. Thank you. Kevin One more question. How is OrderContext different from OrderManagementContext I have managed to find an agent API for OrderManagementContext but now I am not clear on the difference and when I should use w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Building Mechs for Mechcommander 2
Hello, I'm new around here so it this post is in the wrong place point me in the right direction. I'm a big fan of MechCommander 2. I have seen on another site where some one has built mechs for the game as addons. I like to try to build a few. What programs would I need to do this Thanks for any help offered. Donald Thanks Wolfman, What version of 3D Studio Max was used, and what program was used to import objects into the game Thanks for the help. Donald ...Show All
Smart Device Development Textbox border not displaying in Smartphone - WM 5.0?
Hi all, I am developing an application to work across different devices including Smartphone WM 5.0, Pocket PC 2003 Second Edition + Square Screen. The problem is that if I put a simple Textbox on the screen it only shows the border on the Smartphone when I select it (Pocket PC displays it always which is what I want). Does anybody know how I can display the border all the time I've tried to draw a rectangle around the Textbox and it does show a border on the right and bottom, but that's about it, and when I select the Textbox it displays the border which is double think on the right and bottom. Thanks in advance. Grant. Hi, That's the problem that I'm trying to solve - I want to disp ...Show All
.NET Development GMT-8 to GMT+0 (UK) with consideration for british summer time?
I'm using a server where it's time is GMT-8. Im using DateTime so how do i convert it to GMT+0 taking into consideration British summer time as im based inthe UK. Thanks for your time. Paul. ahmedilyas wrote: D'oh! Such a tease :-) Maybe in .NET 3.0 (unlikely but would be a nice addition) I think what's she's been discussing is for the Orcas timeframe. Considering the first release candidate for .NET 3.0 was released the 1-Sep-06 , it's very unlikely you'll see any of what Kathy is discussing in .NET 3.0 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Creators Club Benefits
"Both subscriptions provide aspiring game developers with access to thousands of game assets from Microsoft and key partners such as Turbo Squid Inc., as well as white papers, specialized starter kits, samples and technical product support to help turn Your World, Your Game into a reality." Am I missing something here Where can I get access to these 'specialized starter kits' and 'samples' Have I been deceived into buying this subscription If so, is there some way I can get my money back Maybe I'm missing something... Since Xbox lib/classes < Windows lib/classes, your totally sweet game should be able to converted to a totally sweet Windows game pretty easily... On the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using Multiple Texture Coordinates with VertexFormats.Texture'n' C#
hi, i have the following vertex struct: //------------------------------------------------------ public struct Vertex { public static VertexFormats Format = VertexFormats.Position | VertexFormats.Normal | VertexFormats.Texture8; // public Vector3 position; public Vector3 normal; public Vector2 tex0; public Vector2 tex1; public Vector2 tex2; public Vector2 tex3; public Vector2 tex4; public Vector2 tex5; public Vector2 tex6; public Vector2 tex7; public Vector2 tex8; // public void SetPosition(Vector3 Position) { position = Position; } public void SetNormal(Vector3 Normal) { normal = Normal; } // public void SetTexCoords(Vector2 Tex0, Vector2 Tex1, Vector2 Tex2, Vector2 ...Show All
SQL Server Intermittent Connection Problems with Sql Server
I am experiencing intermittent connection problems with the Northwind database and sql server express. The most frequent error message indicates that I am already logged in and will not allow another user. The odd thing is that even when I am locked out I can access a Northwind database from another connection on Server Explorer. I ran code to demonstrate simple binding for two text boxes, no problem. I added a project to show complex binding using the datagrid view tool, but could not get past selecting the database. I tried the same simple binding project on another computer running a beta version of VS 2005 Pro and could not connect to Northwind on that computer also. (Two different Northwind databases, different computers) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multicore and vector unit access
Hi, I am considering using XNA Game Studio Express and have a pair of technical questions that I couldn't find an answer for when I searched the forum. 1. Is it possible for my C# code to operate on more than 1 of the X-Box360 CPU cores I'm not even sure if there is a multi-threading library that will work on X-Box360. 2. Is it possible for my C# code to use the PowerPC Vector Units (I think they are called Altivec) I'm interested in working on some bleeding edge algorithms to see if real performance can be tapped using C# on X-Box. Thanks. ...Show All
.NET Development datetime insertion problem
i'm using sql server 2005 under asp.net 2.0. when i try to insert values of table columns , i get the error : {System.Data.SqlClient.SqlException: Incorrect syntax near '.2007' when i debug the sqlQuery, i see it is : INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (16.02.2007 17:44:18,'ALISNMZ','ASILTER','Naber','OOo o 0o0 o OO oooo!','','false','false') the tarih_saat column is datetime at the database. could anyone reply to me, i need a quick help. thanks. Hi, You can try for cast function. INSERT INTO ASILTER_INBOX (tarih_saat,kimden,kime,konu,govde,atac,okundu,silindi) VALUES (cast('16.02.2007 17:44:18' as datetime),'ALISNMZ','ASILTER','Naber','OOo o 0o0 o OO ...Show All
Visual Studio Express Editions Passing variables from one form to another
Hi I do not understand how to do this. I have a listbox with values (page A)and I want to allow the user to choose a value. I have a button on this page that would close this page (page A) and send the value to a button thus changing the value on the button on another page (page B). Please, if someone would help here! Shihan Hi, You have to create a public sub in the second form. Pseudocode: class Form1 ... private sub Button_Click(...) dim value as string value = ... dim frm as new Form2 frm.SetValue(value) frm.Show end sub end class class Form2 ... public sub SetValue(byval string value) 'do something with value end sub end class Charles ...Show All
Software Development for Windows Vista Runtime rules design
I am working on a new project which requires a inference engine to apply a set of rules to an object to determine if it should be run or not or perhaps what parameters should be applied to the object. I have done a little reading on WF and it looks like its a very nice solution to my problem. The one issue I cant seem to find an answer to is if its possible to design the workflow at runtime. This application is to be a winforms app first and then evolve into a web app over the next 12 months to allow external users to use it. Is it possible to modify the workflow at runtime Are there certain aspects of the workflow that can only be done at design time What tools if any are available for users to make changes Thanks in advance! ...Show All
SQL Server Need to retrieve record count from CTE
I have a common table expression and I need to retrive first 20 records as well as record count. select @first_name='m', @last_name='s' with my_cte as ( select row_num = row_number() over (order by prosp_id, contact_num) , first_name, last_name from piza.prosp_contact where first_name like @first_name + '%' and last_name like @last_name + '%' ) select row_num, first_name, last_name from my_cte where row_num between 1 and 20 Another alternative is to create CTE twice, first time for 20 records and 2nd time just for record count. But in this case it will perform all physical operations like index scans, joins, etc - twice. Check ...Show All
Visual Studio Team System 503 - Service unavailable
Hello all, I have one server which has all the installation of TFS on it (DB, Application, Build, Proxy). Usually when I start a build on this server, I then get the error "503 - Server unavailable" when I try to perform another action (get, check out / check in, ...) It's not very critical because when I wait a bit, then it's working correctly afterwards. I have the feeling it's because the build is taking too many processus (but CPU is not at 100%). Have you already encountered this problem ...Show All
.NET Development File system watcher not working!
I have this: FileSystemWatcher FSW = new FileSystemWatcher ( @"C:/" , "*.*" ); public Main() { InitializeComponent(); } [ STAThread ] static void NewForm() { Application .Run( new Main ()); } private void Main_Load( object sender, EventArgs e) { FSW.Changed += new FileSystemEventHandler (OnChanged); FSW.Created += new FileSystemEventHandler (OnCreated); FSW.Deleted += new FileSystemEventHandler (OnDeleted); FSW.Renamed += new RenamedEventHandler (OnRenamed); FSW.EnableRaisingEvents = true ; FSW.NotifyFilter = NotifyFilters .LastAccess | NotifyFilters .LastWrite | NotifyFilters .DirectoryName | NotifyFilters .FileName; FSW.BeginInit(); } pu ...Show All
