Lonko's Q&A profile
SQL Server Cannot compare data types of System.Int32 and System.String. Please check the data type returned by the filter expression
I have this filiter on my table in SQL Server Reporting Services 2005: =CInt(Fields!FeeGoal_AZ.Value) != 0 I get this error when trying to preview the report: "Cannot compare data types of System.Int32 and System.String. Please check the data type returned by the filter expression." I am not sure why it's comparing a string here. The data type for FeeGoal_AZ in the database table is Bigint ...Show All
Smart Device Development Interaction with bluetooth headset
Hi, is there an easy way to play some audio via a bluetooth headset or capture the audio from the headset I didn't find a lot of information about this on the web & msdn but I'm sure I'm not the first person trying to write an application interacting with a BT headset... michivo This forum is intended to deal with issues directly related to the .NET Compact Framework. It appears that this question c ...Show All
.NET Development Create p7m envelope
Hi all, this is my first attempt at using pkcs classes to create a p7m envelope.I am trying to accomplish the following 1. sign a document with a certificate 2. envelope the signed document in a p7m file that is viewable using p7mViewer or SignoReader What I want is a valid p7m file with NO recipients, that is I do not intend to send the file to anyone, but only store the signed file in a DB. I create a SignedCms, pass my document by ...Show All
.NET Development System.Math.Round unexpected behaviour? Bug?
The following are some results for calling System.Math.Round: System.Math.Round(2.255d, 2) 2.26 System.Math.Round(0.255d, 2) 0.26 System.Math.Round(3.255d, 2) 3.26 System.Math.Round(4.255d, 2) 4.26 System.Math.Round(5.255d, 2) 5.26 System.Math.Round(1.255d, 2) 1.25 Shouldn't that last value be 1.26 in line with the previous results and the banker's rounding method used by default in the Math.Round method Any ideas an ...Show All
Visual FoxPro Grid headers default mouse pointers etc...
Hi all; I am creating grids in my forms by dropping a table into the form. The default header's mouse icon is a down arrow which misleads the user into thinking that the column can be sorted. Is there a way to change this default so it doesn't have the down arrow Thx. Change the Grid.column.header.MousePointer Property to 1 thisform .grdMyGrid.column1.header1. MousePointer = 1 Dave ...Show All
Visual C# DataReader not returning any data
Hi there, I have a slight problem using DAAB 2.0. I have a sp that runs fine through sql 2005 passing in the params manually, however, when I try and do the following i get no data public void() { userToGet = new User() //User struct Database db = DatabaseFactory.CreateDatabase("DB"); using(DbCommand dbCommand = db.GetStoredProcCommand("sp_name")) { db.AddInParameter(dbCommand, 'UserLogonID", DbType.String, &quo ...Show All
Visual C# double buffering to fix flickering ToolStripLabel
Hi all, I have a toolbar, that is, a number of toolstrip elements contained in a ToolStrip object. One of those elements is a ToolStripLabel object. I'm trying to do some simple animation of that label by changing its associated image on a regular basis in response to timer ticks. I have a bunch of GIF files as resources in my project, so I'm just using code like: myLabel.Image = Properties. Resources .someImage; This works fine, and ...Show All
Visual C# Have any function caculate date after current date n days ?
I caculate date after current date n days with a bunch of code , but its not effective , I wonder whether have any function caculate date after current date n days , in C# If you know , can you help me Thank you in advance. I don't understand your question well but I hope this code helps DataTime dt = DateTime.Today.AddDays(7); //for adding days and just look at the intellisense and you will find the others. Happy programming ...Show All
Windows Forms Transaction with DataAdapter Update method
Hi I want to update two datasets within the same transaction . That is rollback both if either fails. I have an example. It uses ExecuteNonQuery. I attempted to do similar code but instead of calls to ExecuteNonQuery I called sqlDataAdapter.Update: conn.Open() Dim cbcommand1 As New SqlCommandBuilder(ad1) Dim cbcommand2 As New SqlCommandBuilder(ad2) myTrans = conn.BeginTransaction() ad1.UpdateCommand.Transaction = myTrans ad2.UpdateCommand ...Show All
Visual Studio Team System How to add comments in web test recorder in vsts ?
Hi, Any one, please let me know how to add / create comments to a request during recording the test, in Web Test Recorder in Visual Studio 2005. I am new to VSTS and early response is much appreciated. The following link describes how to record a web test: http://msdn2.microsoft.com/en-us/library/ms182539(VS.80).aspx . Once the IE is launched (step 4), you will find the web test recorder toolbar on the left pane. Find the "Add ...Show All
.NET Development TableAdapters and partial classes
Jay, that's an excellent idea... I tried that, and it's not working. I have a project named "NorthwindDataSetTableAdapters". I created a TableAdapter named "CustomersTableAdapter" The generated code has the following: <code> <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Private ReadOnly Property Adapter () As System.Data.SqlClient.SqlDataAdapter Get If (Me._adapter ...Show All
.NET Development Protecting Assemblies
I'm building an n-tier application with data access, application and UI layers in separate projects and hence separate assemblies. MyProjectUI.dll MyProjectApp.dll MyProjectDataAccess.dll etc... The application will eventually be publicly available for download and installed on end-users machines. How can I protect my middle tier and DAL assemblies from unauthorised access so that a 'clever' user cannot add a reference to o ...Show All
Visual Studio Team System TF80071 connecting MPP to Team project
I have an MPP in my Team project. I have checked out the MPP file and opened it. When I click the Choose Team Project button and select my project, I get an error "TF8001: Team Foundation encountered an error while accessing the work item database. Please contact the Team Foundation Server administrator." Any clues TIA, Doug Hi there! I'm getting this error and the workaround posted here is not working ...Show All
Smart Device Development Problem with Smartphone WM5 connecting to the Internet on Standalone Device Emulator
To anyone out that can help, I cannot get the Smartphone WM5 connecting to the Internet but I can with the Pocket PC WM5 emulator! What do I need to configure on the Smartphone WM5 to get network connectivity On both emulators, in the Config the option "Enable NE2000..." is checked - so I'm not sure what I need to do. Any help would be greatly appreciated... ps. I do not have VS 2005 installed. Chris ...Show All
Windows Forms Regarding System.web.mail
Hi Everyone I was trying to send email using System.web.mail namespace in VB.net. After some initial problems i finally managed to do the same. I managed the problem of Authentication at SMTP sever by using&nbs ...Show All
