Sami Karaeen's Q&A profile
SQL Server Report Snapshot
Hi All, Is it possible to create different report snapshot for different roles Thanks, S Suresh Can you elaborate on how roles affect report snapshots I'm not understanding your semantics. We use Roles to mean permissions collections that can be applied to a catalog item for a user, but these have no impact on report snapshots. ...Show All
Internet Explorer Development Explorer bar in IE7 without reboot Windows
Hi, I have an application that add a Horizontal Explorer Bar in a IE windows. That's work very well in IE6 but when I try to do it in IE7, the user must reboot Windows to have the explorer bar in the menu. I don't understand why The explorer bar just display HTML. Thanks Hi, About the strange behavior I have talked before. To have a refresh in my IE7 menu which included the new "Explorer bar", I must launch a "Windows Explorer" window and open the menu "view". With Spy++, I can see the Windows manager PostMessage the message PostMessage ( hShellWindow, UWM_CMBPOPUPOPEN, 0x008080, 0 ); PostMessage ( hWnd, WM_INITMENUPOPUP,(WPARAM) hSubMenu ,MAKELPARAM(2, false) ); ...Show All
Windows Forms Button Status
Hi , I am trying to check the status of a button final in following code.its giving me " 1 Operator '||' cannot be applied to operands of type 'bool' and System.Windows.Forms.DialogResult' .Is there any other way to perform this operation. Code: private void Value7_Click(object sender, EventArgs e) { int n = 7; int i = int.Parse(textBox1.Text); if ( (i = = 0) || (final.DialogResult = = DialogResult.OK )) { textBox1.Text = n.ToString(); } else { textBox1.Text += n.ToString(); } } thanx in advance. Hi Kiran In C# a test for equality is == not =space= -- pasting your code into a test block it compiled fine with = ...Show All
Visual Studio Express Editions Can't install Visual C++ 2005 Express
Everything was fine when the installation just stopped and doesn't want to continue: http://img312.imageshack.us/img312/4356/errorex7.jpg How are you installing the system. If you are using the web installer to download and install I have seen problems with the connection dropping out and stopping the install. My suggestion is to first make sure that you operating system is upto date. Then try the manual install method to install the express product. If that fails then try installing the components seperatly, ie the framework and sql express/ sql native client, then try the express ide again. ...Show All
Visual Basic Graphics Disappear After Minimizing Window
I have a VB 2005 windows apps with a picture box on a form. I created a graphic to draw stuff on the picture box: Dim g as System.Drawing.Graphic g = picBox.CreateGraphics Then I draw stuff ... but when I minimize the form's window and then restore it the stuff I've drawn does not appear. I don't know how to cause the program to redraw the graphic when the window is restored ... i.e. how to "anchor" the graphic to the window. If the answer involves using the paint event I would appreciate a bit of detail ... I cannot figure out how to do it. Thanks. This also brought to mind a little test program that I wrote a while back that re-uses a sub that gets passed a graphics a ...Show All
Windows Forms Making A New Tab Focused
private void tabControl1_ControlAdded(object sender, ControlEventArgs e) { e.Control.Focus(); } I have that code, but when a control is added it is not focused. I need to know how to make the new tab focused. The controls will be added to the TabPage.Controls collection, not the TabControl.Controls collection. This code worked for me: public partial class Form1 : Form { public Form1() { InitializeComponent(); foreach (TabPage page in tabControl1.TabPages) page.ControlAdded += PageControlAdded; } private void PageControlAdded(object sender, ControlEventArgs e) { tabControl1.SelectedTab = (TabPage)(e.Control.Parent); e.Control.Focus(); } private void button1_Click(ob ...Show All
SQL Server sql 2000 trigger that sends xml
Im trying to make an insert trigger that writes the inserted row to xml, then sends then saves that xml to a directory on the server, after which it runs a web service (using xp_commandshell I guess). This web service can then go to the directory and read the xml and do whatever it wants with it. I made the trigger and in the end put FOR XML. Im just not sure how to tell that trigger to put that xml file in a certain place. Is this possible Yeshia, Can you explain your scenario a little more It isn't clear to me if you are trying to call a web service with the inserted row as data, or if you are trying to host a web service where the insert row is the data. If you are trying to call a web service: ...Show All
SQL Server SQL Express Newbie
I have only used MS SQL 2000 and mySql before. I've never used MSDE or SQLExpress. I understand you can develop web apps locally, but can the app be deployed to your hosting site without SQL Express 2005 being installed there Or do you have to build a database on the host using MSSQL2000 and transfer your data from the Express database I'm a little confused about this and don't want to develop something with VWD and SQLExpress that I can't publish on my host site... Thanks for any help Terry Hi, your hoster will need to have a SQL Server (either Express or Standard) edition installed in order to let the database run on the hosting machine. If your hoster only has MSDE / SQL 2k on the servers, I wo ...Show All
SQL Server "Copy" within a table - plain SQL
Hi. I'm quit new into SQL - have a problem - and hope someone here ca n help me. I have a table TABLE1 with different fields. A part of it looks like this: FIELD1 FIELD2 FIELD3 111111 121212 0 111111 121212 91 222222 232323 0 222222 232323 73 etc. etc. I want to "copy"/write over '0' in FIELD3 with the number in FIELD3 from the line that has the same numbers (and unique for these two lines) in FIELD1 and FIELD2. The table will then look like this: FIELD1 FIELD2 FIELD3 111111 121212 91 111111 121212 91 222222 232323 73 222222 232323 73 I can make a temporary table or a new field if necessary. I j ...Show All
Visual C# How to assign an explanation to a function in c#
Hello, I have functions in my library, but their explanation isn't enough to understand by only looking at their signatures. Meaning Like whenever you go over a DataAdapter.Fill() Method with your mouse, it will explain to you what that function does in 2-3 lines. But when you go over my function with your mouse it only tells you the signature. I want to learn how to add information for my function for on mouse over tips. DataAdapter.Fill() : -------Data Adapter Signature Here--------------- Adds or refreshes rows in a System.Data.DataTable to match those in the data source using ...... MyFunction.DoSometing(): ---------Function Signature Here-------------------- -No further explanation- Hello All. ...Show All
Visual FoxPro Help with expression (one more time...)?
Hello All...many thanks to all who helped with my previous post. I have hit one more 'snag' in preparing my data. Here's a sample of three fields in my table... MRC REQUIRED DETAILS 4720-00-001-0057 ADLF HOSE OR TUBING SPEC/STD DATA MIL MIL-H-5593,SIZE 4 SPECIFICATION ADJM INNER CONVEYING TUBE MATERIAL RUBBER, SYNTHETIC MEDA MEDIA FOR WHICH DESIGNED AIR CRWL INSIDE SURFACE CONDITION SMOOTH CQCS LAYER COMPOSITION AND LOCATION 1ST LAYER ANY ACCEPTABLE CQCS OUTER LAYER MOLDED RUBBER CRJM OUTER COVERING ENVIRONMENTAL ABRASION RESISTANT AND PROTECTION CRJM ...Show All
Windows Forms Sorting with DataGrid & DataGridView controls...
The Grids are a great way to display data, but I just noticed that sorting text columns poses a hiccup. Specifically, if I have three rows with IDs: BB1, BB2 & BB10 Then the Grids sort them in the order BB1 BB10 BB2. This is particularly problematic in my case as I use the data in Grids to generate printed reports, & I want the data to be sorted in true alphanumeric sense. So, is there a way to achieve the desired affect Hi as the rows sort by string in your case, I suggest add one hidden column, and use substring of column1(bb1,b10,bb2), get(1,10,2), convert them to int, then sort by the hidden column ...Show All
Visual Studio Express Editions sounds
If you have a 3 wave-files: - theme.wav => backgroundmusic - explosion.wav => explosion - movement.wav => when a character moves I want that the theme.wav starts from the beginning and never end so a .PlayLoop(). But then I want that my character moves when an arrow-key is pressed. Ans if it plays it shouldn't interupt the theme.wav and you should keep hearing the backgroundsound. Same with explosion.wav. Please help me with eather a code sample or a good link for the beginner level. Don't use the same player for all of the sounds. SoundPlayer sp = new SoundPlayer(); SoundPlayer sp1 = new SoundPlayer(); SoundPlayer sp2 = new SoundPlayer(); BACKGROUND: sp.SoundLocation (or ...Show All
.NET Development Unable to add a reference to my WebService
hey everybody!! i've got an issue that i'm unable to solve so far... i'm trying to add a reference to a webservice on my local to my VS2003 project... when i right-click as usual on the project name and i click on add a web reference, i actually get to Discover web service form and i'm even able to see the Web service i'm trying to reference but when i select that particular webservice I get this error.. Server Error in '/AuthorsWebService' Application. ...Show All
SQL Server Accessing Member Properties trough ADOMD Client
Hi, I have a SSAS base linked to a Datawarehouse on SQL Server 2005. I would like to access to member properties of one of my dimensions thanks of 'Member' object proposed by Adomd.net Unfortunately, the "MemberProperties" collection is empty and I know it should by filled with properties. Is this a known bug of the API I downloaded the SP2 but the problem remains. I could avoid the trouble and directly attack the relational schema but this solution is not very elegant. This is an exemple of my code : For Each oNiveau In oConnexionAdomd.Cubes( "$" & "MyDimension").Dimensions(1).Hierarchies("MyHierarchy").Levels oCollectionMembres = oNiveau.GetMembers ...Show All
