LokiSD's Q&A profile
SQL Server Dts Package foreach loop container and Excel connection manager
How can I use a foreach loop container with an Excel connection manager. It is virtually impossible to configure the ConectionString property through expressions builder. Everything works fine with a Flat File connection manager but when it comes to Excel, I get the following error message: Error 1 Validation error. Extract Four: Extract Four [1]: The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0202009. Tarification.dtsx 0 0 Please ! Heeeelp ! tel me how I can loop through Excel files ! Thank you very much Grant for your reply ! My question is have you tried this and run the package by yourself it wont work ! the connectionS ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shaders for curve and line width rendering?
I have been learning HLSL. I'm wondering if anyone knows if shaders could be used to assist in rendering curves, variable width lines and line types It seems that some trick fragment shaders could accomplish this. For line types a 1 dimensional texture in the alpha could have some possibility's. Has anyone tried this This could really help in using XNA for other apps besides games. There are people out there using 3D graphics hardware to do fast vector graphics rendering. WPF as you mentioned and implementations of the OpenVG spec such as AmanithVG . Shaders can certainly help in these applications. Cheers, Leaf. ...Show All
Connected Services Framework Evaluating CSF
I have a heterogeneous environment: Windows and Linux. My web services on Windows use .asmx, and I'm currently upgrading those to WCF. The other web services are just XML-RPC services on Linux systems. Some in my organization want to port all those to web services on J2EE. My question is, with which J2EE systems is CSF competitive, and how can the Linux side of the house create well-enabled services that are CSF-compatible WCF messages are wire level compatible with WSE3.0. And CSF3.0 is built on WSE3.0. WCF supports vast range of bindings. By using appropriate bindings on WCF we should able to get WCF services integrated with CSF. ...Show All
Windows Forms Limit rows in datagridview
VS 2005 I want to limit the number of lines added in a gridview, can anyone show me the code and which event to place it. Thanks In advance it should only show the columns returned by your query, the 8 columns there in your SELECT statement. Be sure to set the datasource to null on the bindable UI Control (datagrid view for example) before rebinding it, just to make sure duplicate rows are not being added for example. ...Show All
Smart Device Development How to set the Background Image in windows mobile 5.0
Hi This may seem like a very simple and trivial request but I am new to c# and windows mobile 5.0 Development and I have been searching the net for the past few hours looking for the answer to this, without any luck. My Question is: how do you set the background Image of a windows form in Win mobile 5.0, I can set it in a regular Windows form using the IDE but the option is not there in win mob 5.0. I tried to manual type in the code that is generated on the regular form this .BackgroundImage = new Bitmap ( @"C:\Documents and Settings\Kevin\image2.jpg" ); but I get the error Could not find type 'Bitmap' . Please make sure that the assembly that contains this type is referenced. If this type is ...Show All
Visual Studio Team System Running Pre-Build events
Hi. I'm looking into Team Build and been running into a problem. I have a solution with several projects in it. One of the projects creates 2 files that are needed by my startup project for it to compile. I have a pre-build event set up in my startup project that runs the executable of the other project, so that the files always get created and are always up to date. Since these 2 files are created at run-time, I do not have them under source control (I'm using TFS). The problem is that the project that is dependent on those 2 "run time" files is failing to build through Team Build, with an error that those files cannot be found. It appears that my pre-build event is not being run, so those files are not being generated. I ...Show All
Visual C++ ?: or if-else (c++)
Anyone know if there is a difference between code generated using simple if-else statements and that using the : operator Does use of : avoid generating branching code, and thus lessening branch mispredictions in the code compared to the if-else version I was under the impression that : would generate a short branch but then I came across this article (section: Branch Avoidance) that suggests otherwise.. Case 1 int y; if (x==2) y=0; else y=1; Case 2 y= (x==2) 0:1; Thanks What the article say is " With a good compiler, this will execute far faster than the code with branches that the “if” form will generate. " Notice the precondition: "with a good compiler". Obviously, ...Show All
Software Development for Windows Vista Where can I get drivers of 3c509C 3com PCI NIC for vista ultimate?
There do not seems to be drivers for 3c509C 3com PCI NIC anywhere on the net. Where can I get drivers of 3c509C 3com PCI NIC for vista ultimate Thank you, Regards Hello SandeshR, Microsoft does not support 3rd party hardware or software. I would suggest checking the 3com support site here http://www.3com.com/products/en_US/support/index.html . Also I would try posting your question in the TechNet Hardware Vista Beta forum located here http://forums.microsoft.com/TechNet/ShowForum.aspx ForumID=714&SiteID=17 . Thanks! Matthew Braun ...Show All
SQL Server Problem opening local cube with ProClarity 6.2
I am new to BI and have a perplexing problem. I need to create a local cube for offline use in ProClarity 6.2 for mobile users. I have created a sample cube in AS2005 using the following code: CREATE GLOBAL CUBE [RainbowBranch] Storage 'C:\SourceData\RainbowBranch.cub' FROM [Rainbow Trade Sales] ( MEASURE [Rainbow Trade Sales].[Adj Sales Value], DIMENSION [Rainbow Trade Sales].[Branch] ) The resultant cube can be opened in Excel 2003 with no problems, but when opened in ProClarity, there is no cube name to select, so I can never get to see the cube data. Is there a problem with my cube build statement Does it need more in terms of parameters, etc. Regards, Charles. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MessageBoxes
The first thing I tried to do when playing with the XNA framework was try to handle the "NoSuitableGraphicsDeviceException" exception to prevent a crash on the end-users machine. In the older MDX version of my game, I had code similar to this: ClientEngine engine; try { engine = new ClientEngine(); } catch (NoSuitableGraphicsDeviceException exception) { GameConsole.Write("Exception: " + exception.GetType().Name + " (" + exception.Message + ")", ConsoleMessageType.Error); GameConsole.Write("Current video card or drivers are not supported."); MessageBox.Show("Your current video card or drivers are not supported.", "Error Initializing Graphics Device", MessageBoxButtons.OK, MessageBoxIcon.Stop); ...Show All
Windows Forms Read excel to dataset
Hi, I have problem that: when I open excel file with excel and after it I am trying to opn the file by oledb I have the error that file is opened by exclusive mode. How can I solve it Thank's Alexei The Excel-File must be closed in Excel before you can access it through OleDB. Excel opens it exclusive and so you cannot access it from your application. Check if excel is really closed via Task-Manager. Thomas ...Show All
SQL Server If WCF can communicate with ServiceBroker?
hi, I want tomake wcf and service broker communicate with each other,Are there some resources about that thanks in advance I did exactly this; created a set of channels and bindings for Service Broker. The reason for it was because we wanted to use WCF (obvious reasons) and needed a decent queuing mechanism (msmq didn't really make the grade). As it turned out, the story for creating a binding and channel for Service Broker was quite straightforward - at least addressing the very simple stories I had for it. ...Show All
Windows Forms ADO.NET Perfomance
Hy, I use Typed Dataset usign a TableAdapter.Fill, using small tables theres is not problem, but with large tables it expends serveral time executing the query and filling de Datatable (20k rows more than one minute), how can i resolve this Thank you In one of my projects I used System.Data.DataTable and I inserted few millions records and in my opinion this data structure is pretty good for storing that amount of records. I tried to use some other objects (ex SortedList, or Array, …) for storing data, but performance was quite disappointing. One interesting thing to mention here is that I had problems with Out of memory exception because, with several DataTables filled up with records, I break thr ...Show All
Visual Studio How to get the printer name after the print setup dialog
Hello every one, i wish i could be helped to get the printer name from the printer setup dialog box and direct it to a crystal report control's PrinterName property in Visual Basic 6.0. Currently, the report uses the printer setting i used during the designing of the report. Now after report sending about 10 reports to the crysta report's default printer, i wish to change the printer, thus direct another set of reports to a different printer's pool. i beleive the Crystal Report's PrinterName property can allow me to direct the next print command to the specified printer name. I mean what should come after; cdlDialog.Flags = cdlPDReturnDefault ' cdlDialog is CommonDialog cdlDialog.Flags = cdlPDPrintSetup cdlDialog.S ...Show All
Visual Basic Change "plusminus" icon in treeview control
I everyone... i need to know if is possible to change the "plusminus" icon in a treeview control. I want to change so i can customize my application and make it more pretty If anyone can help me.... Thanks I'm having the same problem but I'm using VS2003 in which the treeView doesn't have the DrawMode property, are there any other alternatives ...Show All
