sambar's Q&A profile
Windows Forms Inserting Data from a form directly into a SQL database
Good Day! I know this should be so simple, but with all the connectors, etc., this is getting so confusing! I've spent weeks reading the books and looking online and still haven't found an example. (I've really tried to find it myself!) I'm using VS2005 and using VB.net All I want to do is take the data in several fields on a form (ie: lastname, firstname) have the user click the save button and insert them into the database. I don't wa ...Show All
SQL Server View Report using URL
Thanks you for all the help! ...Show All
Visual C++ rand() not being random!!!
OK An other problem which I really need assistance with I'm using srand to generate random numbers out of a range BUT i always get the same sequence of numbers!! But I notice the problem come from rand() i tried to create a new project with only this : #include <ctime> #include <iostream> using namespace std; void main() { srand(time(NULL)); cout << rand() << endl; cin.get(); cin.ignore(); } ...Show All
Visual C++ 'static binding' with C++/CLI?
After asking this question in the VC++ Express forum and not receiving a single answer I gather this forum section might be a better place to search for answers. I have a C++/CLI solution I created in VS2005 Express consisting of a windows forms project (the main programm) and a few libraries - now I'd like to create a single executable instead of an executable and a bunch of dll files. As I can't create static C++/CLI libraries (or can I ) ...Show All
Windows Forms c# getting crazy with a simple insert into....
Hi all :) Here is my problem: myCommand = new SqlCommand("insert into myTable values("@field1")", myConnection); myParam = new SqlParameter(); myParam.ParameterName = "@field1"; myParam.Value = myTextBox1.Text; myCommand.ExecuteNonQuery(); Whatever i write in myTextBox1.Text, in database i obtain ever a "null". If i modify my insert like:"insert into myTable values('" + myTextBox1.Text + "')"; it work...but we know that it ...Show All
Visual Studio Express Editions
Hi, I am using VB express 2005 to create an interface to retrieve data from Excel spreadsheet then store it into my Access database. I am able to retrieve data and store it in a dataset then display it in a dataGridView. But I am not sure how can i store the data into an Access database. I tried to connect VB to Access by opening a connection and then create a table in Access. I created a DataGridView and bind it to this tab ...Show All
Visual Studio Emailing a report
I have a locally hosted report in an ASP .Net application. I am rendering this report to a text stream so that I can send it via email, but I think there is probably a better way to do this. What is the best way to programatically email a locally hosted report Hi John -- How are you handling retreiving the rendering from the web control and subsequent image streams that get processed I've been looking into utilizing this techn ...Show All
Visual C++ Hooks dll in c++ .. Please HELP!!
Hi I created a dll that has a class Hook.. the DLL also has methods like create hook.. delete hook When someone calls the CreateHook of dll.. i mane new instance of Hook class and set the Hook .. well no error no nothing .. but when i call it from c# i get a C++ debug error.. something with assertions.. Here is code: ============================ Hook.h=============================== #pragma once #include "windows.h" #include <str ...Show All
Software Development for Windows Vista Durable and non-Durable Workflows in same Workflow Runtime
Hi, I've got a question about supporting workflow instances that are both durable and non-durable within the same runtime. As I understand it if a workflow persistence service exists in the service container then the engine will call it for every workflow instance. If it doesn't exist, then obviously workflow instances are not persisted. If I want to have a mixed model where I could somehow 'mark' a particular workflow as durable, in other ...Show All
.NET Development ASP.NET 2 beta 2 COM Interop trouble
Hi, I'm having trouble while deploying an ASP.NET 2.0 beta 2 application using COM Interop on a windows 2000 server machine. COM instanciation works fine but always fails when it uses another COM dll (imbricated call). Works fine on a windows 2000 pro. Any suggestion No problem at all. Since the Forums are on different hosts/servers, it's understandable :) Also, Shawn Farkas wrote a great FAQ for the forums, available at: http://forums.mi ...Show All
Visual Studio Supported Rendering Formats
I am planning to employ a LocalReport object in a .dll I'm writing which will be used to render reports. Is the LocalReport class going to support the same output formats that Reporting Services does I do like the myriad of output formats (PDF, Excel, CSV, XML, Tif) that Reporting Services currently offers and would hate to think that the report viewer would eliminate any of those formats. Any information would be appreciated. Thank ...Show All
Windows Forms Check Box in a Combo Box
Hi, Iam working on a window application using .NET framework 2.0. I want a check box + some text in a combobox. User can select multiple items in combo box by using the check box. My requirement is : I have a report page. User selects some data and click on 'Show Report'. Iam showing (I must show) the report also in the same page. When user selects some other data, and click on 'Show Report' button new data will be populat ...Show All
SQL Server Report Builder - Is it possible to create a named query with a stored procedure as its source?
In SQL 2005, the new Report Builder functionality gives end-users the ability to create their own report. These reports are based on report models that can be created in VS 2005. Is it possible to create a named query based on a stored procedure check this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=344631&SiteID=1 ...Show All
Visual Studio 2008 (Pre-release) using 32bit and 64bit dll..
We have a plan to upgrade our APP for Vista. And I have a some of question about it. some of DLL or Com are still made with 32bit. I want to use thouse. So my question is Can I use 32 bit and 64 bit DLLs or Coms, in same 64bit APP This is not an Avalon-specific question. In general: Most existing 32-bit apps should run just fine in WOW on x64 Windows. 32-bit DLLs cannot be loaded in a 64-bit process. A 64-bit process ...Show All
Visual C# Reflection: GetMethods() returns Properties...
Hi, I need to be able to separate Methods and Properties when using reflection on an assembly. However, using the code below - properties are also identified as methods (get/set as appropriate). foreach (Type t in asm.GetTypes()) { Type curType = t.GetType(); if (curType.IsClass) { foreach (MemberInfo mi in t.GetMethods( BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public)) ...Show All
