oswaldorb's Q&A profile
.NET Development Public class, derived from an internal class
I have a class library which defines a few public classes. All of these classes have shared functionality, which is defined in a base class from which they are all derived. However, this functionality should only be available within the class library, and not by any other external code. For this reason, I specify the class as internal. When I attempted to compile the code, I got the error; Inconsistent accessibility: base class 'HTS.Database.Dbo<int>' is less accessible than class 'HTS.Database.StaffDetails' Dbo is the internal class. StaffDetails is the public class. Normally I would understand this error, however in this case I do not see why it should be a problem. The Dbo class consists entirely of internal properties and constru ...Show All
Visual Basic How to send e-mail?
As the question, how to send e-mail I don't know what's the code for send e-mail. Can anyone teach me how to I have a button on the Menu Tool. I want when user presses that button, it will directly link to the Microsoft Office to send e-mail to me. Please teach me. By the way, I also want to know how to load a text file. I want to make another button on the menu tool so when user presses it, a text file will pop up. Thank you Sorry - sorted the problem. My virus scanner was blocking traffic from port 25 to my email program only. Thanks Flip ...Show All
Visual Studio Team System Using System.Transactions.TransactionScope to ensure no permenant DB changes from Unit Tests.
For many reasons, I have written a tool to generate Data Access Layer classes, in addition to other basic plumbing for applications. My tool also generates Unit Test classes to validate the properties, methods, and constructors. Of course one of the most important sets of method types I need to validate are the ones that actually persist record creations, updates, and deletes to the back end data store (MS SQL Server 2005). I had hoped to be able to create an instance of a System.Transactions.TransactionScope object in my "MyClassInitialize" method with the <ClassInitialize()> attribute. I get no errors instantiating it, but I get errors of the following type when my test run completes: Class Cleanup method Conta ...Show All
SQL Server Odd Problem with ProClarity KPI designer
Hi, all here, Thank you very much for your kind attention. Think maybe it worth posting my question about ProClarity as believing many of you may have been experts of ProClarity for SQL Server 2005 Analysis Services. :) The problem I encountered is: when I created KPI with KPI designer in ProClarity desktop professional (I have got the whole ProClarity Analytics 6.2 platform installed), the KPI I created wont work if I added the status and trend for the KPI , only if I set 'none' for showing 'Status' and 'Trend' for the KPI I created, it will work but of course no KPI status and KPI trend. It's so odd. I have tried ages for that, still getting stuck for that. Would please any expert here give me any guidance and advices for that ...Show All
Visual Studio Tools for Office Databinding in Excel
Hi! I have an VSTO Excel project. I added a workbook that has 3 sheets in it and has all the formulas and functions built into the worksheets. It needs to stay there! I had a datasource and try to bind to a listobject or named ranges or anything and it over writes my functions etc that are already in the sheets. How can I databind using code to get the full results returned to the worksheet in the specified cells for each of the stored procedures, each sheet runs a different stored procedure. If I use the list object it over writes the code in the sheet and doesnt do all the calculations so I need a way to get data into each sheet just like I would import a csv file and copy and paste into the worksheet spaces. I hope ...Show All
Silverlight (formerly WPF/E) Seeking in WMV video files in WPF/E?
The FLV file format for Flash videos allows for easy seeking inside the video file. It allows for a functional scruber bar even with HTTP as the delivery mechanism for the video. See http://flashforever.homeip.net/blog/ p=16 The question is whether a similar trick is possible with WMV9 How easy is it for server-side code to truncate the beginning of a WMV file while keeping it in a valid WMV format Thanks, Julien The current CTP of WPF/E only supports seeking / scrubbing once the video is completly downloaded. WPF/E will support seeking / scrubbing within the downloaded portion of video and arbitrary seeking within the media file when connected to a Windows Media Server over HTTP in a future CTP. - m ...Show All
Software Development for Windows Vista Is StartRuntime needed?
Is there a need to call StartRuntime If you create a basic console application, from what I see an instance of the runtime should be created in the : using ( WorkflowRuntime workflowRuntime = new WorkflowRuntime ()) But I see other code in samples that specifically call StartRuntime, but I don't know why you would have to do this. Thanks! Yes, as Jon says, a WorkflowRuntime always needs to be started. It is the execution environment your workflow will run in. The reason there is an explicit StartRuntime call is to allow you to configure your WorkflowRuntime with any services you want to add - examples of things you might want to do before you call StartRuntime are adding a PersistenceServi ...Show All
SQL Server Need help creating statement using OPENQUERY AND INSERT
I'm trying to Insert data from a linked server connection into one of my tables in the sql database. it seems to be giving me an error saying column cant be found. It only does this when I put the Where clause in the statement. I dont have the server in front of me but this is how my statement looks. Insert into WorkList (DSK) Select * From OPENQUERY (SCH, 'Select Desk_ID from public.ACCOUNT Where Desk_ID = LA1') This is using a linked server connected by ODBC connection. When I leave the where clause out of the statement below I get it to work perfectly. Even when I put criteria for another field it works, but not when I use "Where Desk_ID = "B01"" or if I use "Where Desk_ID = B01". Both give ...Show All
Visual C# Help with: "Unable to cast COM object of type..." error.
I get the error below when I call many of the HTML... components, such as mshtml.HTMLAnchorElementClass or mshtml.HTMLDivElementClass. for example: foreach (mshtml.HTMLAnchorElementClass aAnch in aItems) When I do that the program dies immediately. and this error below is posted: Unable to cast COM object of type 'System.__ComObject' to class type 'mshtml.HTMLAnchorElementClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interfa ...Show All
Windows Forms Improve GUI
Hi I want to improve the look of my applications GUI. What free tools are best Where can I find free user control collections Thanks! Hi, Here some links to some free controls that I use: http://www.componentfactory.com/products.html (Their Krypton toolkit is free even in commercial apps) http://www.codeproject.com/useritems/MDITabControl.asp (mdi tab) http://www.codeplex.com/ASCENDNET Outlook 2003 navigation http://blogs.developpeur.org/sebmafate/archive/2006/07/12/un_ruban_dans_vos_applications.aspx (Office 2007-like ribbon) Good luck, Charles ...Show All
Visual Studio Can I run a macro on a timer event?
Is there some way to run a macro on a periodic basis, say every 15 minutes I think so, using a timer that you initialize in this event handlers: Private Sub DTEEvents_OnStartupComplete() Handles DTEEvents.OnStartupComplete ' When the IDE is loaded End Sub Private Sub DTEEvents_OnMacrosRuntimeReset() Handles DTEEvents.OnMacrosRuntimeReset ' When the macros runtime is reset End Sub If that fails an add-in certainly would work. ...Show All
Visual Studio Team System CTP7 - Possible Breaking Change in Loading of Custom Generators
Hi, installed CTP7 with no problems. Loaded CTP6 project OK and at the first glance everything seems to work with one exception: My previously registered (are functional) custom generator is not loaded into the UI. It would seem the loading time point has also been changed. In CTP6 the UI tried to (and did) load the custom generator when the UI started before a solution / project was opened. If there was an error, then the error came while VS was starting up. In CTP7 the UI has output in the output window indicating that the custom generator assembly is being loaded at the same time (ie. before a project is loaded) and neither there or the errors window shows an error. When I load the solution everything is OK too. BUT, when I ...Show All
SQL Server MDX -Can I get the count of engagements under level
I have cube in one measure is defiend "engagement count" one of the dimension is "Client ",under which I have hiearchy name "Client" , under which I have 5 levels "level 1","level 2" ........so on now can i get the engegement count under each level result should be like this ......................Engagement Count Level 1................10 Level 2................15 Can any one help with the MDX query for the same I feal it is simple task what i am understanding.....is SELECT {[Measures].[engagement count]} ON 0, DrillUpMember( Hierarchize( { [Client].[Client].[Level1], [Client].[Client].[Level2], [Client].[Client].[Level3], ...Show All
SQL Server Help with Join Syntax
I have a query where I need to join a table to multiple tables and alias a field from those tables on each join. I tried the syntax below but received a error. Please assist, first time trying to do this. JOIN dbo . AbsenceReason ar ON ar . AbsenceReasonID = sda . AbsenceReasonID WHERE ar . [Name] = 'DailyReason' LEFT JOIN dbo . AbsenceReason ON ar . AbsenceReasonID = spa . AbsenceReasonID WHERE ar . [Name] = 'PeriodReason' LEFT JOIN dbo . AbsenceReason ON ar . AbsenceReasonID = cio . AbsenceReasonID WHERE ar . [Name] = 'CheckInOutReason' error I receive is : Msg 156, Level 15, State 1, Procedure p_000001_GetAttendanceProfileData, Line 45 Incorrect syntax near the keyword 'LEFT'. Msg ...Show All
.NET Development remoting client not connecting to server
I have a remoting situation where everything works fine at our office - the remoting client connects with the remoting server, but at my client's site, it will not. We are using a workgroup here, no domain. At my client's site, on a domain managed by server2003, the client app won't connect to the server. The two workstations involved are (as far as I can determine) plain vanilla windows xp pro, with windows firewalls turned off. The logged-in users using each side are administrators on the domain. A test app that I wrote that uses genuine channels is able to connect. This is therefore a general question, what might be the problem, and how can I determine the problem This is a shrink-wrap product where I have to rebuild and ...Show All
