srfitz2000's Q&A profile
Visual Studio 2008 (Pre-release) Changing rectangle's position in the scene
Hello, I was trying to change a rectangle's position in a scene by using the procedurel code: Rectangle.Margin.Top = Rectangle.Margin.Top + 10; But I got an error which says that "Cannot modify the return value of 'System.Windows.FrameworkElement.Margin' because it is not a variable." So how the position of the rectangle could be changed Rectangle.Margin = new Thickness(Rectangle.Margin.left, Rectangle.Margin.Top + 10, Rectangle.Margin.Right, Rectangle.Margin.Bottom ); ...Show All
SQL Server OPENROWSET Excel import failing on production machine
Hi all. I have some sql like SELECT * FROM OPENROWSET('MSDASQL', 'Driver=Microsoft Excel Driver (*.xls);DBQ=C:\aaa.xls;', 'SELECT * FROM [Sheet1$]') Which works perfectly on our development machines (Windows 2003, SQL Server 2005 SP1). When I take it across to our production machines at the client (Windows 2003, SQL Server 2005 SP1) SQL kicks out the following error: Cannot initialise datasource object of OLEDB provider. Microsft.Jet.Oledb.4.0 for linked server (null). Extra Info I have tried many different syntax variations of OPENROWSET to attempt to get the excel sheet to import. None of which work. Some included below: SELECT * FROM OPENROWSET (''Microsoft.Jet.OleDB.4.0'', ''Excel 8.0;HDR=YES;IMEX=1;Data ...Show All
SQL Server object required:: Javascript error
Hi I have designed report in SQL Server Bussiness Intelligence Development Studio. I have included Sorting option for a column. Its working fine with SQL Server Bussiness Intelligence Development Studio tool. I have deployed this report in Report Manager. Its also working fine in Report Manager when it has one or more record. Its giving object required javascript error when there is no record. Error description as follows Line: 13 Char: 692 Error: Object Required Code: 0 URL: http:\\172.20.16.15/Reports/Reserved.ReportViewerWebControl.axd ReportSession=klap445nbpxa35542ptik55&ControlID=f6834404-5f20-4b86-9862-e5439ec4630a&UICulture=9&ReportStack=1&OpType=ReportArea&Controller=ClientControl ...Show All
Visual Basic using mmc object with basic to manipulate fsmgmt
hi, im trying to write a program that will open mmc, load fsmgmt (file server management), search all of the open files (local) listed for any instance of a specific file and close it. i have a script that will open mmc and load fsmgmt.msc, but i do not know what to do now. im running server 2003, mmc 2.0 and am scripting with visual basic 2005. i am not really good with basic, and am unfamiliar with the MMC object and how to use it. any help would be appreciated, thanks wraithzshadow Firstly it may be a terminology thing but you say you have a script to do this. Are we talking about a script file or are we talking about some VB.NET code. VB.NET allows us to code up applications that are compiled and run, there is code but the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TorqueXNA
I had a look at the XNA version of the Torque 2d engine and noticed that it converted 4mb worth of png files into over 60mb of xna files; Is this a Torque issue or xna as its a massive increase and would make releasing any games online a virtual impossibility. I think you missed my point. We aren't converting them to any format. We are using the default Texture processor provided with XNA. If it chooses a compressed format by default, then it has chosen a poor one. My .pngs total 6MB if stored as 32-bit uncompressed bit data. One of my images is basically 50% black and 50% transparent and would be 4MB if stored as pure 32-bit uncompressed data. The .xnb file is 4MB. That's not very compressed. ...Show All
SQL Server SQL Server 2005 SELECT MAX function for multiple columns on the same record
Hello, I am trying to figure out how to use the select maximum command in SQL Server 2005. I have already created a database and I have it populate it with multiple fields and multiple records. I Would like to create a new column or field which contains the maximum value from four of the fields. I have already created a column and I am trying to figure out how to use a command or SQL statement which is entered into the computed equation or formula in the properties for this field/column. Any help you can provide will be greatly appreciated! Thank you, Nathan I am not sure how to answer your questions. There are too many basic questions in your post that I am not even sure ...Show All
Visual Studio Express Editions ISO file for SDK
So, I decided to burn a CD. I downloaded what was billed as an ISO image: http://www.microsoft.com/downloads/details.aspx familyid=E15438AC-60BE-41BD-AA14-7F1E0F19CA0D&displaylang=en First off, is that the correct latest and greatest The file that got downloaded has a type extension of .img , not .iso as I expected. My burner (Nero) does not recognize the extension. What's up with that I was able to make a CD of VC++ Express with no problem. It had a .iso type. Anyone know what I can do with the .img file Or better yet, where I can get the .iso file I've worked around it another way. I downloaded the twenty or so .cab files and the one .exe file in the "full" download. I ran the .exe file. It coughed up so ...Show All
Visual C# IE7 and Visual Studio
Installed Internet Explorer 7 and after that we get the message Visual Studio Busy ..... message when doing a build. We are using XP Professional. You must be kill the process with task manager after that. We tried various things, but after going back to a restore point that was the one before we installed IE7 the message has not shown up again. Any ideas on what is happening with this message could have been bad installation perhaps. I've not had this happen on my XP and WS2003 box, and both were using from the early beta's right up until the final release without any problems. Once restored, try installing IE7 again and make sure you disable your AV software just in ca ...Show All
Smart Device Development Http Image File Uploader for .net compact framework 2.0
Having major problems trying to upload a file (an image) to a webserver via http post, keep getting a WebException.. Tried using the example code available at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/httpcomm.asp ---------- Code -------------- private void menuItem2_Click( object sender, EventArgs e) { String httpResponce = UploadFileBinary( @"\Storage Card\test.jpg" , http://www.myServer.com /upload.php ); MessageBox .Show(httpResponce); } public String UploadFileBinary( string localFile, string uploadUrl) { Cursor .Current = Cursors .WaitCursor; HttpWebRequest req = ( HttpWebRequest ) WebR ...Show All
SQL Server SP2 - Need Your Feedback!
My team keeps emphasizing the importance of community participation and value all the feedback posted in the groups, forums and all possible channels to communicate with you all, the customers; and loop the feedback provided to improve the quality of product. I personally felt the importance after being part of the community during our SP1 release cycle, it really helped to address most of the customer impact defects in our Service Pack1; however, not all could be addressed in the first service pack and we would like to give importance to them and start gathering the impact of those defects. We will evaluate and try to address most of the commonly reported customer bugs in our next Service pack, SP2. This can ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Mesh Alpha chennal problem?
Hi All, I tried to draw few meshs in game. But i has some textures problem. The problem is a meshs collistion another mesh, textures alpha chennal has some problem. Below is capture screen. Who can tell me why How to fix this problem http://hk.geocities.com/brian_tsim/error.PNG Best regards, Hi Inaki Ayucar Yes, I am hong kong people, So my english not very well. ^_^ I tried disenable all alpha blending. But the texture alpha chennel to be change black color . below is capture screen. Please help. http://hk.geocities.com/brian_tsim/error1.PNG Best Regards, ...Show All
Windows Forms WebBrowser doesn't have a "find" method?
Hey, I'm a novice here and I've been looking though the MSDN documentation on the WebBrowser control and noticed there was no method for finding text in a document. This is a pretty serious omission. Is there a way of getting this functionality As ahmed suggest, finding it is the easy part...to highlight the find will take manipulating the html : Dim wb As New WebBrowser wb . Navigate ( "http://www.google.com" ) Dim TheText As String = wb . DocumentText Dim SearchString As String = "Google" If TheText . Contains ( SearchString ) Then 'do somthing End If ...Show All
SQL Server date format
Hi. I have a field that has a date format.It shows like mm.dd.yyyy. I want the format like dd.mm.yyyy. How can i correct this. I couldn't see this format. Is there a letter (like d, g, vs.) for this Thanks! you should be able to simply specify a date format string such as dd/mm/yyyy I don't believe a single letter string format such as d or g will work, as these formats will be driven from your regional settings. ...Show All
Visual Studio $(TargetDir) available in Recipe node?
Hi, In the GAT.xml file, is there a way to get the targetDir, like $(TargetDir) can be used in post-build actions More general: Is there a list of out-of-the-box available variables. Is there an xml reference in general Greetz, Owin Hi, I've tried some of the macros (TargetDir and ProjectDir) like this, but got the error at the bottom: < Arguments > < Argument Name = " OwinTest " > < ValueProvider Type = " Evaluator " E xpression = " $(ProjectDir) " /> (There is a space in E xpression, because for some reason you can't use the whole word in this site...It vanishes) </ Argument > </ Arguments > Error: &nbs ...Show All
Visual Basic for loop issues with concatenating variable with text box
I have 10 text boxes textbox1, textbox2 ...etc I want to modify them with a loop this code does not work Dim w as int For w = 1 To 10 Me.TextBox & w = someStringArray(w - 1) Next w it does noe like the &, I tried + and () and [] and nothing works. Any suggestions thank you. Hey Man, You ever got around your text box problem I am facing the same issue Me.Textbox(w).text and frmSomeForm.Textbox(w).text, it doesnt seems to be working... I would really appreciate if you share your code/experience with me TIA ...Show All
