Run A Program Writen In VBApplication In A Computer Without A Excel Instaled ?
Oct 19, 2010I have made a Medical software writen in VBA and now I want know how can one who has not Microsoft Office (Excel) installed, run the program.
View 1 RepliesI have made a Medical software writen in VBA and now I want know how can one who has not Microsoft Office (Excel) installed, run the program.
View 1 RepliesI have made a Medical software writen in VBA and now I want"transfer" (?!) the same softwareto a Visual Basic program that can be run in a computer without Microsoft Office(Excel) installed. How can I do this? I dont want to write all theVBA program again because it is very large and full of spreadsheets and mathematical formulas.
View 1 RepliesI have a game which has a chatbox in it and was wondering if its possible to create a program that intercepts the traffic going into and out of the game including whats writen in the chatbox.I am the host of the game.Basicly I want the information to be displayed in something like a richtextbox?
View 1 RepliesI am using VS .net 2003 and developing a program that calls Excel. The development computer only has Excel 2003, and the target machine only has Excel 2007. Would it be possible to install Excel 12 Object Library in the development computer without installing Excel 2007?
View 4 Replieshow to transfer files from 1. computer to the computer with the program made in visual studio 2008 (visual basic)
View 3 RepliesThis would be easier if I were able to have the external computer get its own name and just pass it to a web service as a variable, but I'm not able to do that right now. There are a variable number of computers from several different entities that regurarly access a web service on one of our servers. Changing only some VB.Net code on the server and nothing at all on any of those external computers, how would I be able to get their names programmatically in VB.Net?
View 2 RepliesI have the following code :
sw = New StreamWriter("scanner.txt")
sw.WriteLine("TEST")
sw.Close()
This code should write the txt file to the folder my exe is in. This is the case on hundereds of different machines.
However I have just found out that on one machine my code always writes the files to the desktop and expects to read from the desktop. I am going to change my code so it looks specifically for the application folder but I still dont get why this is happening on one machine and not on all the others.
I want to use a program codes written for GWBasic in VB 2005. how to do it?
View 9 RepliesIm trying to write a simple c++ dll and then reference it in my vb form app however im having a hell of a time doing so. but im getting an error when i call the c++ function in vb.net
here is the c++ code
#include <WINDOWS.H>
LPCSTR DisplayStringByVal(LPCSTR pszString)
[code]....
I have writen a piece of software which takes values from a serial port, peforms some calculations and then records the result in an Excel file.It also uses some values stored in an excel file for reference.
The program will run fine for days/weeks until the PC is rebooted mid run.Once it gets rebooted mid run I ge the error "RPC_E_DISCONNECTED"This then occurs everytime the program is run.Full error file below.I'd like to code for this error of course but even a simple fix to stop it happen once the PC has been rebooted to allow it to run again would do. I can give more details but I'm not sure where to start.Target system is windows XP SP3 with office 2007
[Code]...
I have a windows form application that when it starts needs to see if the user has Excel installed on the computer and if not display a message informing user that part of functionality will be disabled.
Is their an easy way to perform this check?
Working in Visual Studio 2008 with VB.Net
I am writing a program that loops through all of the sheets in an Excel workbook and saves each sheet as its own workbook. It turned out to be a bit trickier than I expected, since the Sheet.Copy method creates a strange object (see here for the MSDN discussion that I believe is relevant: [URL]. Anyway, I found a Stack Overflow post [URL] that got me to where I am, which is essentially complete, outside of one hanging EXCEL.EXE process that is left after the program completes, which I believe is a result of the sheet.copy method creating a new workbook (potentially a new application as well?). The other thing I run into, which I believe is related to this, is that even though I have my application set to visibility off, when I run the program, excel still opens up and is visible going through the steps.
Here is my code:
Code:
Imports System.Data
Imports System.IO
Imports Microsoft.Office.Interop
[CODE]...
Now I think the problem comes from the end of the loop, where I try to close the export file and the new worksheet it creates:
Code:
'close excel and release com objects
System.Runtime.InteropServices.Marshal.ReleaseComObject(exportsheet)
exportsheet = Nothing
xlApp1.Workbooks(fileNames(counter - 1)).Close(False)
I can't figure out what to do to release the `ComObject` for the new worksheet that is created. I have been trying all sorts of things, but it always throws a COM error when I do it and if I try to define it as nothing (like I do with exportsheet) is says that it is read only by default, so I can't do it. It seems like it should be something as simple as: System.Runtime.InteropServices.Marshal.ReleaseComObject(xlApp1.Workboo ks(fileNames(counter - 1))) But that is not the case. I have tried a few variants of this and I am thinking it has to do with the MSDN link above, but I can't quite sort out what to do. So the code works for my purposes, outside of leaving one EXCEL.EXE after it is done. As far as a test file, I am just using an Excel file with 3 sheets and I put some information on each and change the sheet name, so it is easy to see if it is working or not.
I am writing a program that loops through all of the sheets in an Excel workbook and saves each sheet as its own workbook. It turned out to be a bit trickier than I expected, since the Sheet.Copy method creates a strange object (see here for the MSDN discussion that I believe is relevant: [URL]
Anyway, I found another Stack Overflow post that got me to where I am, which is essentially complete, outside of one hanging EXCEL.EXE process that is left after the program completes (check the update for one more issue that came up, but I think they are related).
Here is my code:
Imports System.Data
Imports System.IO
Imports Microsoft.Office.Interop
Imports Office = Microsoft.Office.Core
[Code]......
Final Update: On the off chance that some poor soul ran into the same issue I was running into, the first update should solve it, but it is also important to note that the excel.exe will hang until you close the application. I am report automation code as a windows form application (so coworkers can give the file location and such) and there is going to be an excel.exe process running until you close the pop up window from the program. Maybe garbage collect does not run until you close the application window or it just hangs on to an instance of excel.exe for some other reason.
I am moving from vb6 to vs2010. I installed vs2010 but no vb program, even the simplest will run. As soon as I load a solution either vshost32.exe or vshost32-clr.exe will shut down.If I create a vb application, even with just a form, a button, it will not run but will exit with the following.
'WindowsApplication1.exe' (Managed (v2.0.50727)): Loaded 'C:WINDOWSassemblyGAC_32mscorlib2.0.0.0__b77a5c561934e089mscorlib.dll'
The program '[3000] WindowsApplication1.exe: Managed (v2.0.50727)' has exited with code -2146233082 (0x80131506).
If I create an exe it will run on other computers but not mine, exe's that are created on other computers will run there but not on mine, so it doesn't seem to be a vs2010 problem but something else. I removed and reinstalled .net framework, 1.1, 2.0, 3.0, and 3.5 but that didn't help either. Since exe's that I create will run on other computers but not mine, I suspect it's .net framework but other than uninstalling and reinstalling it, I have no idea what to check.
[Code]...
We have created our program in vb and we have a connection to a database as well, but we tried to run the program on other computer using VB it does not work it shows an error message because the data base has different path in my computer so if I run the program on other PCs it will not work.
View 6 RepliesHow could you accese and other computer via localhost or internet wiht vb.net. Not controlling but something like a chat box.
View 14 Replieson an xp computer .. i used vb-2008 professional to create a program i then used the (setup-wizard) to create the files and folders to deploy the program on a CD.i followed the walkthrough documentations on how to use the (setup-wizard) .. but when i install the program on a different xp machine .. i get the following message:
** the feature you are trying to use is on the cd **
** an installation package for (setup1.msi) can not be found **
here are the steps i took to create the deployment setup files:
.. i added a (setup-project) to my solution .. called (setup1).
.. on the (choose-project-output-to-include) screen of the (setup-wizard) ..
.. i selected .. (primary-output-from-MyProgram).
[code]....
I have been working on a program on my old computer. Now, I have gotten a new computer and would like to continue to work on it there. The program is not yet finished. I would like to copy my program to my new computer. How can I do this? I tried copying the folder from my old computer to my new one and it opened the project, but I could not edit it as there was no permission given to edit it. It shows it as a read-only.
View 3 RepliesI've made a program in VB 2008, but when i tried to run it on my other computer (XP Home Premium x86) a error appeard.It says: "Retrieving the COM class factory component with CLSID {D6BCA079-F91C-4EIE-B453-32A0477D02E3} failed due the following error: 800736b1".I tried the program on my third computer (Vista Ultimate x64) to see if it worked, but the same error appeard : What should i do?
I went to ConfigurationManager -> Active solution platform and tried to change it to x86, but no difference :(
When I copy my executable to another machine and try to run it, I get
"Only part of a ReadProcessMemory or WriteProcessMemory request was completed."
I have written a program using Visual Studio 8 that simulates engine balancing. To simualte the forces I have used teechart, and have also programmed a genetic algorithm to optimise the system. However, I have just reformatted my computer, and now I cant get the program to run. I can access the code (in Form1.vb) and there are no problems, but 2 errors, and 5 warnings exist in Form1.Designer.vb.
The errors codes are:
'Type AxMSFlexGridlib.AxMSFlexGrid is not defined'
'Type AxMSFlexGridlib.AxMSFlexGrid is not defined'
Is it possible if I want make my program only work for certain computer user?
Means the program will check the current system user... and If the user is allow by the program... the program will Run...and If the user not allow by the program the program will display Message..."You are NOT ALLOW to use this program" and the program will close.
I get this error :
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: tuto.exe
Problem Signature 02: 1.0.0.0
[code]....
At college we run 32 bit computers and at home i build my programs to bring in but i have a 64 bit computer, i need to know if theres a way so it builds and saves the program as a 32 bit on a 64 bit computer.
View 6 Repliesi was wondering if it is possible to changed the background of the actual computer desktop. i've searched, but all i can find is how to change the background of the form.
View 1 Replieswhat should to do,when the computer doesn't accept the program.
View 6 RepliesI have a major problem, I took a class in VB, to get into my Computer Science Bach. Program and I am so far behind in VB, is there anyone who is willing.I just want to pass this class, so I can get my Bachlors and transfer to a University.. If there is anyone willing to help me please please please give me a message,
you can either email me @ {email removed} ; MSN Messenger is {msn removed} or my AIM SN is {aim removed}
I'd like to make sure that a program could run on a specific computer and get information like pc's identity. This way it won't be possible to run on another computer.
View 7 Repliesi want to make a program that will lock the computer when the program will run and will ask for a password in order to unlock the computer again.
View 2 Repliesi want to make my program to where when you install it, it will automatically start up with your computer everytime, but will start up in the background to where you can't see it....is this possible?
View 3 Replies