LucasPc's Q&A profile
SQL Server File Watcher Task doesnt wait for the entire file to be completely finish before it completes
Hey there Ive built an SSIS package which generates a file from a legacy system and then downloads the file into a designated folder on the server. I need the file watcher task to wait for a the file to completely finish loading before it says it is complete. Currently, as soon as the file is created, the WMI step finishes. Any help would be greatly appreciated! Kind Regards David Hi Thanks for that. We decided to take a different approach though. Ive downloaded another file watcher task from Konesans. Konesans.Dts.FilewatcherTask.FileWatcherTask. I have added it into my SSIS package and it is working like a dream! However, when to Add it to the SQL Server Agent, I get a strange error ...Show All
Windows Forms Creating Microsoft Windows Installer (.msi) file from VS2005 project
Hi, I could not find a clear answer to the following question so I hope someone on this list/group could offer some advice. Can anyone suggest suitable examples/walk through documentation or even general documentation I can read or try that describes the VS2005 process for creating an .MSI file from a project I am creating. The project is to be fully standalone running on client machines however it requires .NET on the client machine and uses .NET Programmability Support for MSWord2003. I can currently install the published project (directory of .exe, .dll files etc...) which gets and installs the .NET framework from the microsoft site and requires manual intervention to add .NET Programmability support. I want to know if it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Generating Universe with System.Drawing.Bitmap before Xna.Texture
Hi. I've done a code that can show a generated "constillations" (sp ) like in outer space, known as a "Star Generator" which generates stars in a bitmap. Here's the code which I'm about to show: All I get when applying this is a "Index was outside the bounds of the array" error. Any idea's, I even tried applying the surface directly on to the new texture surfac which does not produce errors ...Show All
Visual Studio 2008 (Pre-release) Avalon databinding/threading problem
I'm building an app that has to show a network graph (you know, vertices and edges). The graph is constructed in a separate thread from the UI thread based on sent and received network packets. Now, I want to update the UI showing the graph changes. I have already read a lot about Avalon threading, but I just don't seem to get it working. Is there anyone who can give me a tip on how to solve this issue The Graph object has two collection properties that I want to deal with in the UI, like this: public class Graph<T> { public Collection<T> Vertices; public Collection<T> Edges; ... (a bunch of add/remove stuff) } First I have a graph control that I want to bind to Graph.Vertices and Graph.Edge ...Show All
Software Development for Windows Vista Implementing IDynamicPropertyTypeProvider
Hi Inspired by Ghenadie's blog entry at http://blogs.msdn.com/ghenap/archive/2006/05/08/592236.aspx about implementing IDynamicPropertyTypeProvider i wanted to do the same. Now after lot of failed tries and confussion about TypeConverter, PropertyDescriptors etc. i give up. I want the following. I want an activity which exposes a forms controls as properties on an Activity. If I hardcode eg. [ Category ( "Activity" )] [ Description ( "Button property" )] public Button MyButton { get { return this .myButton; } set { this .myButton = value ; } } It seems to work very well and the PropertyGrid uses a default implementation to show the properties on the Button. Ok. But since the controls on the ...Show All
Visual Studio Crystal Reports
Is there a way to set a report to print automatically and have a date parameter passed in when printing. I don't want to create an .exe if I don't have to.... Cheryl I tried it the way you said " oRpt.Load(Application.StartupPath + "\..\MyReport.rpt") and like the following: oRpt.Load(Application.StartupPath + "MyReport.rpt") oRpt.Load(Application.StartupPath + "..\MyReport.rpt") and none of the attempts worked. I received the load report failed message. I made sure that I had a copy of my report in the Bin directory too. Any other suggestions ...Show All
Software Development for Windows Vista Designer re-hosting and custom activities inside xoml-> NullReferenceException during GetRootActivity()
Currently I'm trying to re-host the workflow designer, who's not ;) But I'm failling with each mdsn code sample when I try to load a custom xoml workflow. I end up with a NullReferenceException during the GetRootActivity() method or I see an empy diagram showing nothing but emptyness ;( I know that there is TypeLoader service available, I've added my assembly to this typeloader before the WorkflowLoader tries to load (create instance of) the workflow and it's custom written activities. I would like to load a xoml based workflow with custom activites inside the rehosted designer, what am I missing Thanks Hi Kushal, That's not possible due to copyright rules in my company. But I think that would lead to nowhere. It seem ...Show All
Visual Basic Help the handicapped.
Good morning gurus, I have the stupid question of the day - in fact, I'm embarassed to even ask it. How do I extract a filename without the extension and set it to a variable For example, I have a file called 123test.ps which is passed to a batch file as %1. I want to set another variable (TESTNAM) to 123test - no extension Something like set TESTNAM=%1 (minus the .ps) TIA Hi, To extract a filename without the extension just using the command line I would recommend (as I know no other way without scripting or creating an exe) using the command below: FOR %%i IN (%1) DO SET FILENAME=%%~ni ECHO %FILENAME% %1 in this instance is the full filename including path. This could quite ...Show All
Visual Studio Express Editions C# almost double as fast as VB.NET?
Check this out: C# code: using System; class SpectralNorm { // // // // Var Def // static DateTime startTime; static DateTime stopTime; static TimeSpan elapsedTime; static long elapsedMS; static void Main(String[] args) { startTime = DateTime.Now; int n = 1000; if (args.Length > 0) n = Int32.Parse(args[0]); Console.WriteLine("{0:f9}", new SpectralNorm().Approximate(n)); stopTime = DateTime.Now; elapsedTime = stopTime.Subtract(startTime); elapsedMS = (long)elapsedTime.TotalMilliseconds; Console.WriteLine("Elapsed Time: {0}", elapsedMS); Console.ReadLine(); } double Approximate(int n) { // create unit vector double[] u = new double[5000]; for (int i=0; i&l ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Does texel space offset result in dependent read?
Ok, so here is the problem. I have PCF, and I am doing something like: [unroll] for (int y = ...; ...; ++y) [unroll] for (int x = ...; ...; ++x) tex.Sample(sampler, input.texcoord, int2(x, y)); Everything is fine, unless I want to optimize it and for example do PCF only for shadowed points. I put loops into an if() branch, and the compiler puts texture sampling instructions outside the branch, leaving only arithmetic ones inside. Obviously not what I wanted. Ok, I had the same issue with D3D9, where texel-space offset needs to be simulated via arithmetic instructions, which causes a dependent read - and this in turn causes a problem with mip level estimation - because if a branch is executed in one pixel in a block (2x2 ) of ...Show All
Software Development for Windows Vista VMR9Allocator in fullscreen
Hello, It seems that the same kind of question has already been asked, but there is no answer yet. I am using the Directshow sample VMR9Allocator, and I need to display my application in fullscreen. First I simply tried to maximize the main window size in popup mode; it works but I still have the common tearing of the windowed mode. So I would like to implement the vmr9 renderless fullscreen mode, but I don't know how to proceed, I can't find any information about that. VMR9Allocator is already in renderless mode. Now when creating my device, I changed my D3DPRESENT_PARAMETERS and put Windowed at false ; however in this case it seems that vmr9 reads my video but nothing is diplayed on the screen. I don't know what I am missing. Could some ...Show All
SQL Server xquery and attributes
i have some data stored as xml in a datatable which i need to extract and work on. Have looked at the SSIS XML Source control - but the problem is that the data is stored in the attributes rather than the elements - so am now trying xquery as a method of getting the dataout <my:case_common xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:my=" http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-07-25T01:09:46 " my:CaseID=""> <my:reporting_authority my:OfficerName="" /> <my:case_identification> <my:name my:Surname="MarkTest" my:GivenName="Mark" /> <my:nhi my:IdentNumber="777777" /> <my:address my:housenumber=&qu ...Show All
SQL Server Attempting to obtain report name or identiy using CheckAccess method in SQL Reporting Services 2005
I found some dead-end threads regarding this issue but have not seen a clean solution. Utilizing a Reporting Services security extension, I can't find a way of obtaining the reports name or identity from within the CheckAccess() method so I can use it to query an external database to ascertain authorization. In other words, my company requires the creation of custom roles that can be used from within our ASP application and well as being honored by SQL Reporting Services 2005. If anyone can help, I would really appreciate your time! Thanks in advance, Tom I'd install the RS HttpHandler I developed (get it from the chapter 15 download ) and register ...Show All
Smart Device Development Round Text Boxes using C#
Hi, I'm devoloping a windows application which consists of Rounded Textboxes(The textBox edges be in the ovalshape) and the form backcolour is white.Can any one please post me the code for this solution . Thaks in Advance Regards Indusekhar.Velagapudi Software Engineer. Hi, Thanks for ur reply.The edges seems to be eaten away becoz the form bakground color is white.The edges are not clear for this. In the Code Project he has drawn 2 arcs and 2 lines which constitues of a textbox.Except on the white background the round textbox look is gud.It would be greatful if u could suggest an alternate solution. Thanks & Regards, I ...Show All
Visual Basic what is the control used to display picture
hi how to display picture with text the richtextbox hold only text can anyone say the textbox which holds both text and picture The clipboard class has methods to check what type of data it contains (if any) and also has explicit methods for cutting and pasting (getting and setting) the data. If the clipboard contains an image ... you can paste that image to the richtext box...How about posting some code and lets see where you are having a problem ...Show All
