Bastiaan Molsbeck's Q&A profile
SQL Server Div encapsulating Report
I have a problem with my reports after upgrading to SSRS 2005. Some of our reports are now wrapped in divs that generate there own scrollbars. This is a problem because our customers have to print via the IE print button (because they cannot download the activex object required for the print in the SSRS toolbar) and when they print they get a single page with scrollbars printed on it Any help anyone could give in solving this problem would be apreciated thanks a lot tom ...Show All
Visual Basic Windows ListView control help...
Moved post as it is the Compact Framework List View control. Hi Mike If you are using a System.Windows.Forms.CheckedListBox then there is a property CheckOnClick which you may be able to use. Let me know how it goes. Good Luck. Naheem ...Show All
Visual Studio Express Editions remove an item from a combobox
i want to permanently remove an item from a combobox, but how what code do i need And if you combobox is databound then you need to remove it from the datasource. You cant binding to a datasource and then selectively remove items only from the items collection on this listbox. ...Show All
SQL Server Running Totals
We are trying to create a report that shows a Week to Date, Month to Date, and Year to Date Week to Date Month to Date Year to Date Item Number I've tried using an if statement (if date = current week, Qty, 0) and then sum the data but I get an error message that reportitems can only be summed in the page header and footer. I've also tried running totals, but it doesn't like the iif statement. Any ideas on how to do this Nancy Nancy, Here's an example of running values with a IIF statement. I believe you can accomplish what you're trying to do the same way. RunningValue(IIf(Fields!elca_employer_number.Value<0,Fields!elca_employer_number.Value, nothing ), count ...Show All
Visual Studio Team System Managing Object Permissions using VS 2005 for Database Professionals
Hello, Does anyone know what is the best way of managing Object Permissions using Visual Studio 2005 for Database Professionals I reverse-engineered an existing database but the IDE created a "post-deployment" script to revoke permissions and then grant them again. The problem is that if some developer decides to add a new Stored Procedure, then he/she will have to remember to add lines in this script too. Is there an easier way to manage this Thanks. Deepak. Dear Deepak, In the current version Post-Deployment Scripts, and specifically Permissions.sql is a proper place to define permissions for your objects. Once it becomes part of the process, Database programmers will remember ...Show All
Visual Basic User input
Is it possible for console applications to accept user input If so, what code do I need to include in my console application to do that Here's some sample code for getting user input, which must be a string. If a number variable is needed, it must be converted from the string using the TryParse method. Dim nom, sage As String , age As Integer Console.WriteLine( "Get user's input for name and age as string values." ) Console.Write( "Enter your name: " ) 'cursor stays on the same line snom = Console.ReadLine() Console.Write( "Enter your age: " ) 'cursor stays on the same line sage = Console.ReadLine() Integer .TryParse(sage, age) Console.WriteLine( "Hello, {0}. ...Show All
Software Development for Windows Vista Run a Workflow in a Workflow and cancel it
Hi, As many others i am quite new to this topic. I found some examples and tried some simple things. I just wanted to know if someone maybe has some finished code for my problem or has some hints how to solve it. I have a Seq-WF-App where i start WF1, constisting of: cdBegin - Code : { Log("Beginn"); } Call Workflow 2 cdEnd - Code : { Log("end"); } In Wf2 i have: cdBegin - Code { Log("Begin"), Loop(10) { wait 1 sec; } Log("end"); } cdEnd - Code { Log("End"). I wanted to know how I can call wf2 in wf1 with a timeout. So i want: Call Workflow2 ( 5 sec ). After 5 seconds i want to cancel/abort/terminate the wf2 i called. What i reached yet is: I Abort() wf2. The Wf2 is currently i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Develop in VirtualPC / VMWare possible? (Seems not)
My understanding is that XNA GSE can only be hosted on top of C# Express, not VS2005 Pro. So, I installed it in a VMWare OS. Unfortunately, I get a NoSuitableGraphicsDeviceException when I attempt to run or debug a game (I have VMWare tools installed). Any thoughts on this What about running under Virtual PC I suppose I could program in VMWare, copy the binary over to my host OS, and attach the debugger... oh, wait... that doesn't seem to be an option in C# Express. Back to Square 1. Hi Larry. C# Express installs side-by-side with VS 2005 Pro. The S3 Trio video card that is virtualized by Virtual PC doesn't support the required level of D3D the XNA Framework requires. ...Show All
Visual C# Thread looping with EndInvoke and InvokeRequired
Hi! I've a rare problem doing a query to a DB and try to update a DataGrid. I make a asynchronous query to BD, and when ends callback to a EndQuery function: private void void EndQuery( IAsyncResult ar) { TareasAsincronas.Remove(ar); TareasAsincronas.TrimToSize(); DataSet Resultado; BD .Q.EndInvoke( out Resultado, ar); ActualizaGrid(Resultado); } private void ActualizaGrid( DataSet DS) { if (dataGridView1.InvokeRequired) { CallBackA RCB = new CallBackA (ActualizaGrid); //<<<--- StackOverflowExeption here !!! RCB.Invoke(DS); } else dataGridView1.DataSource = DS.Tables[0]; } Where'is the problem IDE warning me for a infinite loop or infinite recursion... Regar ...Show All
Visual C++ Function Timing
I was able to enable function timing very easy in VC++6 just a linker option and slecting profiling... Now it seems imposible to do such thing in VC++2005!! How can I do that [edit] Its professional version. 1) I don't know - is it up to the product team to decide what components are in what "box". 2) Yep: deep down in the internals of cl.exe, c1.dll, and c1xx.dll are were I spending most of my time. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. your first game!
Hi, just wanted to express my views on the 'my first game' section... guys, this is a waste of time. please don't do things like this in future. it explains nothing, it teaches nothing. it just lets me copy and past a load of code and then marvel at what the program does. you may as well just give us the file and say look what we did. It's not all negative. the tutorials on visualbasic express were wonderful. I couldn't believe at how insightful they were. is this done by the same people well thats my feelings on that anyway. if your gonna do any kind of tutorial, take some tips off the visual basic ones. and if your gonna ask us to copy and paste code, make it small chunks, and describe what the commands are doing. othe ...Show All
Visual Studio 2008 (Pre-release) Cider support for local assembly references?
Am I doing something wrong Or do i possibly have an bad interaction between Cider and ReSharper (my guess). every time i make a reference to the local namespace in the same assembly... e.g. < Page x:Class = " MyNameSpace .TestPage " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:local = " clr-namespace:MyNameSpace " Title = " TestPage " > < Page.Resources > < local:MyConverter x:Key = " myConverter " /> I end up getting all sorts of errors, even though it all compiles fine. In just the snippet i've pasted here, I get three errors: Assembly '' was not found. Th ...Show All
Visual C# namespace for ConfigurationManager
Trying to get hold of my connection string: public static OleDbConnection cnn = new OleDbConnection ( System . Configuration . ConfigurationManager . AppSettings [ "connectionString" ] ); I am getting an error: Error 2 The type or namespace name 'ConfigurationManager' does not exist in the namespace 'System.Configuration' (are you missing an assembly reference ) D:\VCsharp_Projects\tapTCPports_1\Class2.cs 16 88 tapTCPports_1 using System.Configuration; statement is in the namespace. In the AssemblyInfo.cs I have a statement: [ assembly : AssemblyConfiguration ( "" )] . using System.Configuration; statement is NOT included in AssemblyInfo.cs. Please help. Thanks. ...Show All
Visual Studio Run .Exe from MSBuild on Target BeforeBuild
Hi all, Is it possible to run an .exe file through MSBuild (from command prompt). How we should do this.. All that I need is to run an .exe from Target BeforeBuild. Thanks in advance Manish Bhushan. You should have a look at the Exec task. Sayed Ibrahim Hashimi www.sedodream.com ...Show All
Smart Device Development How to play an audio file (.wav) in WM 5.0 SP?
Hello. In project Visual Studio 2005, Visual Basic, Windows Mobile 5.0 Smartphone, Device Application, I have added an audio file, for example, drumpad-crash.wav. On this forum, from Mr. Ilya Tumanov (posts 3313) there is the program, which in the given project I have written down in such kind: Public Enum PlaySoundFlags ... End Enum Public Declare Function PlaySound Lib "CoreDll.dll"( _ ByVal szSound As String, ByVal hMod As IntPtr, _ ByVal flags As PlaySoundFlags) As Integer In method Form1_Load, I have written down the next line: PlaySound("..\..\drumpad-crash.wav, IntPtr.Zero, _ PlaySoundFlags.SND_LOOP) At Start of the project, constantly (LOOP) sounds the signal, wich has been no ...Show All
