John230873's Q&A profile
Visual J# Converting Java Application to visual j#
Hi, I got my existing Application in java(j++ 6.0), which will generatre applet a nd im hosting this in my existing asp web page. As a part of .Net conversion, i rewrited my asp application in asp.net. but main problem i got is with java(j++ 6.0) application. i want to port this application in to visual j#. but visual j# won't support Applet. so can any one tell how to replace my existing java Applet(j++ 6.0) with visual j#. my final goal is to host visual j# application(which will replace the java applet) in my asp.net web page. Regards Baji Prasad.B Asian CERC Information Technology Bangalore. India hi i did that conversion successfully.. there were a few changes in ...Show All
SQL Server Mix and Match Rows
In the trading (stock market) industry there is a practice of rolling up (merging) multiple trades into a single trade in an effort to save on ticket charges. The way this is done is performing a SUM() on the quantities and calculating an average price. (Average price is the SUM(Qty * Price) / SUM(Qty). So, given : Qty Price 20 $5 20 $10 You get: 40 $7.5 -- 20 + 20 and SUM(20 * $5, 20 * $10) / SUM(20 + 20) Here is my dilema: If given a set of trades, I need to loop through them and check every combination to determine which one matches the expected ...Show All
Visual Basic diplaying bitmap from access database
I've seen this question posted a few times but no good results. I'm simply loading a dataset from access that happens to have a bitmap stored in a field. I have a listview with a list of CD's by Album/Artist, when I click on one of the CD's I want detailed info to populate below, including a pic box with the stored bitmap. Everything works fine except the pic box. Here's the code I have: Dim bytPic() As Byte objDataSet = New DataSet objData.SQL = "usp_SelectRecording" objData.InitializeCommand() objData.AddParameter( "@RecordingID" , OleDb.OleDbType.Integer, 4, lvwRecordings.SelectedItems.Item(0).Tag) objData.FillDataSet(objDataSet, "Recording" ) bytPic = CType (objDataSet.Tabl ...Show All
SQL Server How to connect to Analysis Services with Excel 2007 Data Mining Add In?
I downloaded a trial version of office 2007 and the data mining addin. I do not have an automatic connection to Analysis Services, so most functionality does not work. Is it possible to configure a connection with a trial version If so, does anyone know what the server name is and how to configure it the server name is typically the name of the computer that is running Analysis Services 2005 (the machine where SQL Server 2005 is installed). If this is installed on the same computer as Office 2007, then you can use "localhost" instead of the computer name. In case you need a trial version of Analysis Services 2005, you can download it from here http://www.microsoft.com/sql/downloads/trial-soft ...Show All
.NET Development to chk COmputer connected to Network
Is there any methods/ classes which will provide the information about the computer available in the network or not.. [just like search for computer in the my computer/My network places] note: i am using VS 2003 .. Thanks in advance for your information i am using VS 2003 , .net framework version 1.1. so i am not allowed to access the the following comand my.computer Will you tell me any solution based on my framework[1.1] ...Show All
SQL Server Problems connecting thru firewall
I have developed an application that handles data from a SQL server runnig inside my main domain. When i connect with the SQL server from the inside i have no problems at all. However we opened up the application (smart client application) for some beta testers and i bumped into some problems. i changed the connectionstring to use the IP for the server. I also tried a registered dns name, but i got the following The aspnetdb i use for authentication is refusing to run the stored procedures and i get the famous disconnected due to the remote server does not accept remote calls, or something like that. If i disable the Authentication in the application and just run the application with the same connectionstring IP or ...Show All
SQL Server Sample folder structure in source control
Hi Does anyone have any suggestions on how to structure SSIS related stuff (packages, tasks, components, external resources) in source control Or folder structure that has worked for any of you guys ...Show All
Software Development for Windows Vista Sample location needed
Folks, I apologize in advance if this has been asked and answered. I did some due dilligence on google and the local search engine and couldn't come up with anything 1. Anybody know where I can find an example of an application that loads a XOML-only file from disk, activates that workflow, and then runs it 2. Anybody know what a best practice is for having the workflow control the UI In other words, I want the workflow to tell my GUI which form should be displayed. I've come up with a couple of ways to do it, but I want the best way to do it - I'm thinking it would involve some event pub/sub, but I'd like to hear what you folks think. Thanks! Turns out the problem was pretty simple. I was using WorkflowConsoleApplication4.exe as my ...Show All
Gadgets My first gadget is done!
I just created my first gadget. It is really silly, but neat. It has a pink border and the words "Hi! I'm a Gadget!" It's really nothing, but it's a start! ;-) So, if you're new to making gadgets, don't fret. It'll happen sooner or later! Well done, at least you made the effort to learn how to do it. I posted my first Gadget up on Live, apart from the settings page which I added later it's original. Rubbish Gadget, but it's useful if you've never written a Gadget before as there's nothing to it. ...Show All
.NET Development 1 sql connection in multiple functions.
Hello everyone, I am trying to create a new website based on .net and sql2005. Now I am used to work in classic asp, so it's quite a strugle to convert everything. On 1 page I create a dynamic menu and show some (dynamic)products. Both need the same dbs connection, however the sql query's are in different functions (subs)'. This way I have to make the connection to de dbs twice. Not really fancy. Is there any way to share 1 connection Something like this. Sub CreateConnection() ..... dbConn.Open End Sub Sub CreateMenu .....use dbConn from CreateConnection End Sub Thanks in advance Arno Sharing the same connection object doesn't gain you much speed at a ...Show All
Visual Studio how can I associate my own file extensions with a certain vs code editor
I have my own file types, their extenstion is my own, .emf, but the content is very similar to javascript. How can I use the javascript editor with my files At present the codeview of the file appears a plain black text. The topic "Registering a Language Service" should interest you. Specifically, you want to add a registry key under <VS Reg Root>\Languages\File Extensions\File Extension>\ where the (Default) value is the language service Guid. In your case, you may want to try {58E975A0-F8FE-11D2-A6AE-00104BCC7269}, which is the html language service. ...Show All
Windows Forms Resource View Crashes Yet Again
Editing resources has been a dangerous operation since the early '90s because the editor was prone to crashes. The resource editor in VS2005 has crashed on me dozens of times since I started using it 2 years ago. I was hoping that sp1 would make it more stable. But, no. It just crashed again, flushing half an hour of work down the toilet. Every click in the resource editor is potentially dangerous to your work. I'd like to rant more, but what's the point. It's a Microsoft product. You take what they dish out. <sigh> ...Show All
Windows Forms Create a Shortcut On The Desktop When Using Setup And Deployment
Hi, Can someone tell me how to include a shortcut on the desktop when using a deployment project please. Thanks in advance kered Hi you can add the link to your application via the file system editor in the deployment project http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vbconTheFileSystemEditor.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vbconcustomfoldersspecialfolders.asp Hope this helps you out, please close the thread if it does ...Show All
Visual Studio Tools for Office ThisDocument.Close raise an unhandeled exception "this method or property is not available ..... another application"
Hii all, I really appreciate any help or suggestion guys ... i am just facing a really hard time with this one. I opened a VSTO document from internet browser ... something like this URL :http://testSRV/WordDocument1/WordDocument1.doc the server (testSRV) is on another machine and so does the document (there is no local copy ). I implemented a close button in the actionPane that is supposed to close the Word Document using the method Globals.ThisDocument.Close() however, when the user click on the button the following error appear (This method or property is not available because this doucmetn is in another application ) Exception Text:- System.Runtime.interopServices.COMException(0x800A11FD) at micr ...Show All
Commerce Server complete list of categories and products on homepage
Hi The homepage of our ecommerce site has to list all categories, then under each category heading it should list every single product. The problem I'm having is that all the categories are loaded into a menu but I can't figure out how to retrieve this list without using the CatalogSiteMapProvider. Could somebody point me in the direction of what objects I need to start with in order to build the list I've been looking at the CatalogContext object, but I'm pretty sure it's not the right place to start. I've got a really short deadline, and I've pretty much been told that the starter site isn't suitable for our requirements. Thanks for any help in advance. Paul Tew Something like this: ...Show All
