Duckocide's Q&A profile
SQL Server How to view report on end user's computer?
I have created Tutorial report from MSDN Reporting Services tutorial ( http://msdn2.microsoft.com/en-us/library/ms170623.aspx ). Now i can view report from Visual Studio 2005 environment (with Preview pane or with Debug/Start Without Debugging command) or from Internet Explorer (opening http://localhost/reportserver$SQLExpress and navigating to project and report subfolders). But I am wondering how reports is supposed to be viewed on end user's computer Should end user execute Internet Explorer to view report Personally I like viewing report in RSReportHost.exe window which is executed through Debug/Start Without Debugging command from Visual Studio 2005 environment. But i see no way to deploy RSReportHost.exe to end user's computers. Actu ...Show All
Visual C# Problem in Reflection of dll from web service
Hi everyone, I need to have Reflection of dll got from web service, i.e after retrieving wsdl file, generate .cs file and compile it to dll and then reflect it. The problem is the .cs file generated does not contain the structure : namespace...{} but it uses WebServiceBindingAttribute to specify the namespace so System.Reflection can not get the namespace of the types/classes by either using Type.Namesapce or Type.FullName. Any idea to handle that Thanks. Trang Namespaces aren't required in .NET. Given the assembly you should be able to load the type information directly using Assembly.GetType . Alternatively given the assembly use Assembly.GetTypes to enumerate all the types. If nothing else this will ...Show All
Visual C# "is" operator efficiency
is "is" lightweight Specifically, for checking whether a reference to a base type is a certain derived type. I am considering doing this in a method which I want to be as fast as possible. Its not exactly lightweight, but it is the fastest way of determining whether an instance is of a particular type (unless you want to check the type and then convert it, in which you should probably use 'as'). ...Show All
SQL Server Database fragmentation causing problems
I have really high fragmentation on the tables in my database even after running DBCC DBREINDEX and I was curious as to why this would happen. Could someone help me with this Sorry about leaving this dead. I did some research and found out that the person that created the database didnt know what they were doing. Turns out he had not put any primary keys on any of the tables. ...Show All
Architecture Replication for Transactional Data as a Solution
Hi, I have seen situations where replication was used for replicating master/static data from central to various stores. I have a scenario wherein even Transactional data that is being updated at each store, updates not only the store but also the central and in turn the central pushes the updates back to other stores. One of the approaches being considered is using SQL Server Replication. I am of the opinion of doing this from the application instead at the database level. Some of the points which lead me to that are- On insert/update of every records, this replication would need to kick in to achieve a near about real-time scenario. I am not sure if SQL Server would be able to handle that. I potentially see the database crawling in no ...Show All
Visual Studio ZOrder
I am having problems setting the ZORder manually. ... using (Transaction t = this.Store.TransactionManager.BeginTransaction("Setting ZOrder")) { try { shape.ZOrder = shapeParent.ZOrder + 1; t.Commit(); } catch (Exception xException) { t.Rollback(); System.Diagnostics.Debug.WriteLine(xException); } } The code works, but the shape doesn't change the visual arrangement in the diagram. Is it working Hi: Have you try to invoke invalidate at the end of your change to force a refreshment of the diagram shape.Invalidate(); ...Show All
Visual Studio Express Editions Text Document at start up
In this up i made i need to have a text document start when the app is fired for the first time then not again after that. The setting is saved per user and per version of your application. If you have run the app in the debugger, you can use the "Synchronize" button in the settings designer in order to "reset" the setting to its default value. You don't need to do this in order to publish your application, however - as soon as another user runs the app, it will be the first time for them (on that machine) Best regards, Johan Stenberg ...Show All
Visual Basic Sharing Functions and constants between forms in an application
I'm sure this is a really easy thing to do but I cannot get it to work. I have declared functions and constants as public in my main form but these cannot be seen by other forms in the application. Could there be something simple I'm missing as everywhere I've searched just states - if the objects are delared public then they will be available for use in other forms All help appreciated. Try using the Shared keyword in the function declaration. That way, the other forms won't have to use a reference to your main form to use the functions. For example: Public Class Form1 Public Const pi As Double = 3.14 Public Shared Function WhoIz() As String Return "nobugz ...Show All
Windows Forms move focus to next control,whaterver that control is--> at Form's level
I have many control in the windows form, some are custom controls from different "programming way". How can I set a method to change focus from one control to next one, when you hit enter key, so you actually have a controls ring including buttons, listbox, textbox, ... thanks in advance for your help, Edward On buttons, to get the enter key, I think you also have to create your own button and override ProcessDialogKey or ProcessCmdKey: http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.processdialogkey.aspx http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.processcmdkey(VS.80).aspx - Charlie ...Show All
SQL Server Cluster setup
We are on SQL Server 2000 A/A cluster and are moving to SQL Server 2005 cluster. Following are the list of things before proceeding, please let me know if it needs any corrections and add-ons: (side-by-side) Planning for new installation of SQL Server 2005 ( SQL2005INST1 and SQL2005INST2) on node1 and node2 and restoring the databases on SQL2005INST1 and SQL2005INST2 from respective 2000 instances. 1) SQL2005INST1 SQL Network Name SQL IP address 2) SQL2005INST2 SQL Network Name SQL IP address As 2000 is already existing on the cluster.Want some clarity on following questions. Can I keep the data files on the same disk as 2000 was using Do I need to have new disk for the Quoram drive Under & ...Show All
Visual C# Firing events in child classes...
Hopefully somebody can explain why .NET will not allow me to do this... I have a class, NonStationary, which has a member CurrentValue, and an associated event OnCurrentValueChanged. Now, I have two classes which inherit from NonStationary: Joint, and Shaft. Inside Joint and Shaft, there are times when, if the user hooked the event in the application, the event will be fired because he/she has set a min/max value above/below the currentvalue. The problem is, is that I cannot check to see if OnCurrentValueChanged has been hooked (if it's null), nor can I fire the event from within the Joint or Shaft class. The error I get is: "The event 'OnCurrentValueChange' can only appear on the left hand side of += or -= (except when used from wit ...Show All
Visual Studio Team System Team Queries in Custom project template referencing iteration path.
I have edited the default team queries for my project template, to exclude an iteration called 'Deleted'. The classification file is imported successfully when creating a project, but the team queries fail with: TF51011: The node specified is not found in the classification hierarchy. The error is caused by 'Deleted' . Is there a way to edit the default team queries after the project is created ++Alan Hello Alan, You can edit the query from Team Explorer. Expand the project you just created in Team Explorer Expland "Team Queries" folder Select the query you are interested in, Right click and select "View Query" Now you can edit the query and save it. Hope this helps, ...Show All
Visual Studio Express Editions Need Help :--- How to call a routine of C++ in c#.net
How to call a routine of C++(Turbo c) in c#.net....... can anybody help me OK - we're back where we started. To call your C++ code you need to either build it into a COM dll, and use COM interop, build it into a normal DLL and call it using pinvoke, or move the code to VC++ Express Edition and build it as a C++/CLI dll and import it into your C# project. ...Show All
Windows Forms Cannot download the application error!
Not sure how this happened, but I am no longer able to run my application that I have published. I originally had about 95 revisions published and started getting this error. I manually deleted all the builds from the publish directory, removed my application from the add/remove program, deleted all related file folders under Local Setting/App/2.0, ran mage -cc, etc... I have tried all of that and I still cannot get my application to deploy and run anymore. It seems like the deploymentUrl should be where I am publishing to but my manifest seems to indicate that it is looking at my local drive. Help! I need to get this working again. I am on the verge of rebuilding the project. PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win3 ...Show All
Smart Device Development cameraCapture.showDialog throws error
Hi, when I call cameraCapture.showDialog() i get a InvalidOperationException thrown everytime, it seems as though the pda tries to open the camera dialog but then fails . I am developing on a HP hw6915 pda, WM 5.0 any ideas sample code attached below: CameraCaptureDialog cameraCapture = new CameraCaptureDialog (); cameraCapture.Owner = null ; cameraCapture.InitialDirectory = @"\My Documents" ; cameraCapture.DefaultFileName = @"test.jpg" ; cameraCapture.Title = "Camera Demo" ; cameraCapture.VideoTypes = CameraCaptureVideoTypes .Messaging; cameraCapture.Resolution = new Size (176, 144); cameraCapture.VideoTimeLimit = new TimeSpan (0, 0, 15); // Limited to ...Show All
