Bengt Gunne's Q&A profile
.NET Development DOTNET PRINTING VIA IP ADDRESS
I have two problems to resolve. I'll explain the situation... I have an Intermec 3400e Barcode printer. I am to develop a service that polls database at intervals, pulls the new records to be printed and serves them up to this printer, via IP address. not via the windows driver system. Additionally, I need to feed binary to the printer, instead of using the graphics class in dotnet, but it has to be accomplished via vb.net 2.0. I can find absolutely no documentation or advice on bypassing the windows drivers to print to these type printers. The printer has it's own little language called IPL. Any suggestions You'll find lots of threads when you search these forums for OpenPrinter() ... ...Show All
SQL Server PIVOT Table
Can Pivot Table be done in 2000 RDL I need to be able to use this feature of Pivot Table. Pivot tables can quickly be rearranged by dragging and dropping columns to different row, column or summary positions. Thanks If you mean Reporting Services 2000 (*.rdl files) then, as far as I know, you cannot embedd interactive olap functionality into the report. //Johan ...Show All
Visual Studio Team System How delete server item – i.e. file, from the source control using Object Model?
Hi Can anyone help me how can I delete server item – i.e. file, from the source control using Object Model. The only option that I found is to delete mapping from the work space but not the file himself. I couldn't find any way to delete file from my WS and then to check it in. Thanks in advance, Shmulik. You'll need to use the PendDelete() method on the Workspace object, followed by CheckIn(). See http://blogs.msdn.com/buckh/archive/2006/03/15/552288.aspx for an example of pending changes (adds and edits -- pending a delete follows the same pattern). Buck ...Show All
SQL Server Cluster failing connections with SSL error message
We recently migrated our production environment from a win2k3/SQL 2000 EE cluster to a new 64 bit win2k3/ SQL 2005 SP1 Cluster. Cluster works fine for a while (3-6 hours), then our logins start failing. We recieve the following error in the event log: "The server was unable to load the SSL provider library needed to log in; the connection has been closed. SSL is used to encrypt either the login sequence or all communications, depending on how the administrator has configured the server. See Books Online for information on this error message" The only way to resume connectivity is to offline and online the sql service in the cluster. The only reference to this error that I can find has something to do with a hotfix tha ...Show All
Visual C# System.Web.HttpException: Request timed out.
The following program is to strip the string of its HTML tags. After running for several minutes, anyway, which is much longer than other normal program, then the error was complained finally. Why Thanks. <%@ Import Namespace="System"%> <%@ Import Namespace="System.Text.RegularExpressions"%> <script language="C#" runat="server"> void Page_Load(object sender, EventArgs e) { string temp = "<NOSCRIPT><IMG height=0 alt= src=HTMLfiles/s9.gif"; Response.Write(StripHTML(temp)); } public static string StripHTML(string strHtml) { string [] aryReg ={ @"<script[^&g ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Window management and Alt-Tab
Hello, On the Let's Kill Dave blog, it's stated that " There will be no references supported to System.Drawing and System.Windows.Forms". Does this mean that window management will be abstracted away in a cross-platform way If so, how will user activities like Alt-Tab (which typically leads to a lost device) be handled Many thanks, Peter The XNA application model creates a window for you on Windows and manages it. There is a GraphicsComponent that manages the GraphicsDevice for you. Use of both of these is optional though recommended. There are a number of events available to help track changes to the device: DeviceCreated -- Fired by the graphics component when it creates the device. This can happe ...Show All
SQL Server SSIS - AcquireConnection method call to the connection manager failed
Hi all, I am facing a problem with the connection method, it says, "[Store [10069]] Error: The AcquireConnection method call to the connection manager "Data Source Destination" failed with error code 0xC001A004. " (Store - Look up component.) This problem occurs only when i am using Transaction option, all the component(Look up,Destination etc) says the same error message in the Pre-Execute phase. But i can open the component and can able to see the data in preview. And also this is not occuring in our testing environment. We have copied the same pakages in our production, the package failed stating the above. I can not simulate the same problem in my testing server. Has anyone faced this kind of probl ...Show All
SQL Server How to write a query to get following result
Hello, I have 3 tables, 1. employee (employeeId, employeeName) 2. customer (customerId, customerName) 3. Orders (employeeId, CustomerId, qty_ordered) I need to write a single query which returns list of employee - customer combination who have not worked with each other. You could try something like this: select allcombo . employeeid , allcombo . customerid from ( select employeeid , customerid from employee full outer join customer on 1 = 1 ) as allcombo Left Join Orders on allcombo . employeeid = orders . employeeid and allcombo . customerid = orders . customerid where orders . employeeid is null and orders . customerid is null The subque ...Show All
Smart Device Development 2 listBoxes problem in pocket pc application, need help,urgent
hi, i need some help, i'm facing a problem on how to i solve 2 listBoxes in this deviceApplication form by using C# for pocket pc.One of my listboxes-"menuItemsListBox" is binding together with database and now, i would like to click the items that contain in menuItemsListBox to orderItemsListBox. when i load this application,my orderItemsListBox exists 2 outputs from menuItemsListBox before i click from menuItemsListBox. How do i ignore and solve this below is my source codes. Thank you. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data.SqlServerCe; namespace MPOS { public partial class abc : For ...Show All
SQL Server Unpivot Transformation and Expressions
I am using the unpivot transformation, but I can't figure out how to use an expression in the Pivot Key Value. The denormalized table I want to unpivot has columns like Sunday_Qty, Monday_Qty, Tuesday_Qty, etc. Just before the unpivot component, I inserted a derived column component that adds fields like DateSun, DateMon, DateTue, etc. that resolves to values like 01/07/2007, 01/08/2007, etc. So for the various rows in the Unpivot Transformation Editor, I entered DateSun, DateMon, DateTue, etc. for the Pivot Key Value, and "EntryDate" for the pivot key value column name. The data pipeline gets unpivoted correctly, but the rows have the literal values "DateSun", "DateMon", etc. in the EntryDate column. ...Show All
Smart Device Development CreateWindowEx problem
Hi all, I want to create the window at runtime that popup at the down of the existing window, i tried to use createwindow function through pinvoke, but i m getting the handle 0.Plz any1 can help me out i need help.Code is like this [DllImport("coredll.dll")] public static extern IntPtr CreateWindowEx( uint dwExStyle, string lpClassName, string lpWindowName, ulong dwStyle, int x, int y, int width, int height, IntPtr hWndParent, int hMenu, IntPtr hInstance, string lpParam); // function that displays the window [DllImport("coredll.dll")] private static extern bool ShowWindow(IntPtr hwnd, int nCmdShow); [DllImport("coredll.dll", CharSet = CharSet.Auto)] private static extern bool EnableWin ...Show All
Visual C# VS 2005: "Key not valid for use in specified state"
Hi all- I'm running VS 2005 final release version. I have a solution with two projects in it; an ASP.NET website in C# and a VB project which is my data access layer. Yesterday, this code was working fine. I can compile and run the solution, and all the code works. But when I try to access or add a new datasource through the VS 2005 Data Sources Explorer, I get a popup which says: "An unexpected error has occurred. Error message: key not valid for use in specified state." This message pops up after I select database as the source of my new datasource. The wizard does NOT fail if I use a Web Service as my new datasource. Any ideas on what is happening, and how to clear up the problem ...Show All
Visual C# Difference between VisualC#.NET and C#
Hello All, Just a basic question. I am seeing several books called VisualC#.NET , C#, C#.NET What is the actual difference between those What is the relation ship between C# and dotnet. Please give me the concept Thanks, John Hello Ahmed, Thanks for the inputs. Please let me know if found interview questions on C# Thanks, John ...Show All
Visual C++ /clr Error
// compile with: /clr #ifdef _MANAGED public ref class A { public: static void foobar(); // error C3280 }; #endif I compile the above in Visual Studio C++ 2005 with /clr and get error C3280. The documentation says if the /clr switch is set, it should compile as managed. error C3280: 'OSAPI::Net::Event::foobar' : a member-function of a managed type cannot be compiled as an unmanaged function So, why is a declaration in a compile unit that is built using managed code see this as compiling an unmanaged function Also, when the documentation says function, does the definition of function include method declarations I would say term "function" includes "member method declarations". ...Show All
Visual C# Using Type specific collections
Hopefully I titled this post correctly.... I have three classes (just for clarification sake: ChildClass1, ChildClass2, and ChildClass3) all of which inherit from one parent class called ParentClass (again, clarifications sake). My library is obviously much larger than this, but I just wanted to keep it as basic as possible. Ok, what I need, is the ability to have a Type specific collection system that would allow users to add ParentClass Type objects to each other in a hierarchical fashion. Then what I would like to be able to do, is have a property inside ParentClass called Children that would allow users to iterate through the collection. So, say I have an object "pc1" of the ParentClass type, along with ...Show All
