Phil Dye's Q&A profile
SQL Server Fields selection criteria made by user
Hi, I am new in implementing reports with reporting services but i hope someone here will be able to help out of that problem. I already have a report (DataSet: select * from table1 ) on a server that users may render directly from a program written in VB.NET but I need to give them the possibility to put a condition on a column to filter the dataset result, like a WHERE CLAUSE. I don't know in advance the selected column name, so I suppose that I have to modify the SQL text command to incluse the text condition("Where code = '008' " as an example) before processing the report. How can I do that in code Thanks a lot. Is the filter always going to be on the same column And... are ...Show All
Windows Forms Is there any option to read a specific column cell in datagridview?
I have faced a problem. I want to read a column but i failed. Is there any option to read a specific column from a datagridview Thanks Sagor maybe these will help. Public Sub TEST() Dim s As String Dim rowindex As Integer = 0 Dim columnindex As Integer = 0 'returns the value at the position x,y in the grid s = Me .Dgv1(columnindex, rowindex).Value s = Me .Dgv1.Rows(rowindex).Cells(columnindex).Value 'returns the value at of the currently selected row at columnindex s = Me .Dgv1.CurrentRow.Cells(columnindex).Value End Sub ...Show All
Visual C++ Bugs Bugs Bugs
VS2005 is a absolute joke when it come to developing in c++, it is riddled in bugs. Many of which are driving me crazy. I spent £220 of this product, and it is ***. How can I go about getting my money back Then I will go back to developing in Vc++6, the last decent product for c++ developement. Many Thanks Agreed. You've trained yourself to VC6 and don't appear to be seeing the advantages of VC8. Pick a couple of the worst bugs you're experiencing. We'll try to help resolve them, and maybe you can get a better feel of its true quality. Brian ...Show All
Visual C# C# Excel programming
I can't find anything on how to insert comment(notes) in an Excel worksheet using C#. Any ideas mEt, I was having trouble running your sample code, I did my open WorkSheet a little differently, can you give a little more details so I can run it ...Show All
Software Development for Windows Vista DirectX.AudioVideoPlayback problem
Hi! I have a problem. I created a Microsoft.DirectX.AudioVideoPlayback.Video object and I added for it an Ending event handler. If I set its Audio.Volume property, after playing the video it does not arrive the handler procedure. If I don't set that property, everything is gone. Why _video = new Video (path); _video.Audio.Volume = -1000; _video.Ending += new EventHandler (_video_Ending); _video.Play(); Sorry for the late reply. You need to set the _video.Audio.Ending to the same eventhandler as the _video.Ending But be carefull because every call to Video.Audio leaks memory ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Indie" Game Development on Xbox 360 and PC
(This is my first (technically second, I commented on something else) post on these forums) Alright, as a high schooler looking to get into game development after college (or possibly even nixing the college and going straight in) I was wondering if Microsoft was planning on doing anything at all with the XNA Framework that would support low budget game development. How available will tutorials and books about the code be available How much money will the tools and such cost How easy is this code going to be to learn Will it be easy for people to test on PC and a (normal) Xbox 360 with this code I've questioned Nintendo (through their website) about whether or not they'd be supporting "Indie" development, and I was given an aff ...Show All
.NET Development Exception has been thrown by the target of an invocation.
Hi, I am getting this error “Exception has been thrown by the target of an invocation.”, while executing ExecuteXmlReader(). The stored procedure is returning an XML using FOR XML RAW. I am getting the correct output when I execute through the SQL Server 2005 Query analyser. But when I execute through command objects ExecuteXmlReader(), I am getting Exception has been thrown by the target of an invocation error. Any idea how can I solve this problem. ...Show All
Internet Explorer Development Can a BHO send messages to applications??
Hi On Document complete I need to notify a controlling App to get from a hardware device the info to complete web logins. Does IE7 allows a BHO to send messages to other applications via SendMessage or PostMessage I know it allows to send messages inside IE7 windows, but when I try to notify my app I get no errors but my app doesn't recibe any message. SendMessage returns 0 like if the message was received and processed but my app never got it. Please I need to get a response to this issue because I'm working in a comercial SSO system, and if I cant communicate the BHO with an external app I'll need to cancel the project. thanks Sebastian Yes, I have the same problem. I find a document in microsoft we ...Show All
Visual Basic When I have thought vb8 is broken....
This is an example on encoding from help. Imports System Imports System.Text Imports Microsoft.VisualBasic Namespace Convert_Example Class MyConvertExampleClass Shared Sub Main() Dim unicodeString As String = "This string contains the unicode character Pi(" & ChrW(&H03A0) & ")" ' Create two different encodings. Dim ascii As Encoding = Encoding.ASCII Dim [unicode] As Encoding = Encoding.Unicode ...Show All
Commerce Server How to calcualte Multiple Product discount and Order header level discount????
Hi, Does anyone know how to set up a discount to use a set of products existing in the basket as a condition for a discount Let me explain using. PsuedoCode: =========== These products must all be in the basket: 302556 302557 302558 302698 For the shopper to receive an order-level discount of 10 $ ========================================= I've examined the documentation and cannot figure out a way to do this. I'm sure that Commerce Server must be able to do it. I am doing it by using Codition Expression (Catalog Expresssion). IF productid = 302556 AND productid = 302557 AND productid = 302558 AND productid = 302698 But this seems to try to apply to each line item, and as each line item only ever has o ...Show All
SQL Server Does VS 2003 has a reportviewer control with it framework 1.1
We have a project fully developed using framework 1.1 VS2003. We are currently working on the reports, i see the reportviewer control but, there seems to be lot of problems. Please does anyone know, is there a report viewer control developed by microsoft or somebody which works with VS2003 and pointing to SQL server RS 2005. Please help thank you very much for the information. ...Show All
Visual Studio 2008 (Pre-release) ws*HttpBinding used in a client application
Hi all, I'm quite new to the WCF and I'm meeting a lot of issues setting up my services using HTTP transport. Everything works fine when using NetTcpBinding for instance, but once I pass to the wsHttpBinding, wsFederationHttpBinding, I get exceptions saying either the process running the service has no rights on the url reservation or a more common one with InvalidOperationException saying the ChannelDispatcher couldn't open its IChannelDispatcher. I've made some searches and I found that it seems that I need to set up some configuration using netsh.exe (I'm on Vista) to add some reservations. I tried using this tool a bunch of times but couldn't make it. Is there anyone here that could bring some lights to me I've tried thi ...Show All
Visual Studio Express Editions disabling .net features
Hi, I have VC++ 2005 Express Edition installed on my computer. The problem is that I need to program without using the .net framework. As I understand this is possible by choosing "WIN32 Console Application" type of project. However it is important for my needs that the program I would write in VC++ 2005, could be later compiled also on the older version 6.0 of VC++. Is there any way I can assure that, while using VC++ 2005 Thanks. If you choose a Win32 Console Application then you won't, by default, be using any .NET features. But there is no way you can guarantee that your code will be compilable with the Visual C++ 6.0 compiler. There is a vast difference between the Visual C++ 6.0 comp ...Show All
Visual Studio Express Editions libcimtd.lib not found
I have managed to compile an earlier WTL based program built under VC6 to compile with Express but I have got the following linker errors. LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(char const *)" ( 0bad_cast@std@@QAE@PBD@Z) already defined in TestConfig.obj LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: __thiscall std::bad_cast::bad_cast(class std::bad_cast const &)" ( 0bad_cast@std@@QAE@ABV01@@Z) already defined in TestConfig.obj LIBCMTD.lib(stdexcpt.obj) : error LNK2005: "public: virtual __thiscall std::bad_cast::~bad_cast(void)" ( 1bad_cast@std@@UAE@XZ) already defined in TestConfig.obj LINK : fatal error LNK1104: cannot open file 'libcim ...Show All
Visual Basic Null Reference Exception
I am having a problem with a multi-form application I am writing in VB .Net 2003. When I transition back from one form to my startup form, I get an intermittent Null Reference Exception. Sometimes it will work, moving back and forth from form to form with no problems for 15-20 minutes, and sometimes it will crash everytime. I have tried putting a try-catch block around the instantiation of the main form. It does not catch anything. The exception points to line 2 of the startup form, which reads: Public Class frmWelcome Not much to cause a problem there, I would have thought. I am attaching the code for bringing up the welcome screen in hopes that someone will see something I am not thinking of. Try Dim welcome As New frm ...Show All
