Intermittently Fail To Launch Excel 2003 Via VB Exe

Sep 7, 2010

I have an executable built with VB2005 which is used to launch a password protected excel workbook, and the exe is used to hide the password then run some macros to setup menu commands and protect the workbook so that it can't be altered by the users.

The exe was built by registering the 11.0 version of Microsoft.Office.Interp.Excel in the project, and builds successfully. I can launch the spreadsheet sucessfully on my own desktop using Office 2003 and have tested everything on another 2 other independent desktops using Office 2003 however when I make it available for wider use, I have received a lot of feedback that excel will simply not launch when the exe is run. I had a look at one of the desktops where Excel wouldn't run and there were no associated entries in the Windows Event Viewer that I could see.

It seems that there are no problems running the exe using Office 2007.

My development machine was recently re-imaged with Office 2007 and I re-installed Office 2003, and re-registered the Excel PIA to allow it to work with Excel 2003. NOt sure if this could be hangover of having originally built the exe with Office 2007 then reverting of '2003.

Apologies if this is fairly basic stuff but I'm at a bit of a loss what to look for to identify why the exe will sucessfully launch Excel on some PCs but not others using the same operating system and version of Excel.

View 5 Replies


ADVERTISEMENT

Intermittently Fail To Launch Excel 2003 Via VB Exe?

Jan 17, 2009

I have an executable built with VB2005 which is used to launch a password protected excel workbook, and the exe is used to hide the password then run some macros to setup menu commands and protect the workbook so that it can't be altered by the users.The exe was built by registering the 11.0 version of Microsoft.Office.Interp.Excel in the project, and builds successfully. I can launch the spreadsheet sucessfully on my own desktop using Office 2003 and have tested everything on another 2 other independent desktops using Office 2003 however when I make it available for wider use, I have received a lot of feedback that excel will simply not launch when the exe is run. I had a look at one of the desktops where Excel wouldn't run and there were no

View 9 Replies

C# - Excel Interop Quitting The Excel Application Instance Makes Tests Fail?

Feb 23, 2011

I want to encapsulate the use of Excel Interop to make it easier to use somehow in a reuseable library.So far, I have written some tests that work good altogether, except that between each test, I force Excel to quite so that it does have handle on the test file no more in order to be able to delete.Once I quit the application instance between after each of my tests, Excel seems to be no longer responding, causing Windows to display "Excel has stopped working and is looking for a solution"

message. This message lasts a few seconds, meanwhile Excel is closing, causing the hang on the file to occur and my tests to throw an exception like "Cannot access file because it is being used by another process..."

[Code]...

View 2 Replies

VS 2008 VBNET2008 EXCEL 2003 - OLEDB To Retrieve EXCEL Data To DataReader?

Jan 22, 2011

I am trying to retrieve the data from EXCEL 2003 spreadsheet from row 8 onwards because from Row 1 to Row 7 the row is merged columns from A1 to K1, A2 to K2, A3 to K3, A4 to K4, A5 to K5, A6 to K6, A7 to K7.

View 28 Replies

VS 2005 : Load Report Fail - Crystal After Excel Export?

Feb 8, 2010

Why I've choosen this forum (VB.Net) instead of Reporting is this seems not a matter of reporting. When I load the report normally, it works fine. When I export the report to Excel, it works fine again. After that when I tried to open the report again, it gives the error : "Load Report Failed" . I've to restart my application for make it work fine again.I'm using a Crystal Report Viewer control to load the report.

View 5 Replies

Create An Excel File In Excel 2003?

Jun 24, 2009

how can I create an excel file in excel 2003, open it, add workbook, write into it, save it and close it by visual basic 2008.

View 2 Replies

Use Excel 2003 And Excel 2007 On Application?

Nov 13, 2009

how I can use excel 2003 and excel 2007 on my application. I add a reference to Excel 12.0 Object but this one is not compatible with Excel 2007 and i think if i add Excel 11 Object it will not run on excel 2007.

Is there any solution that I can use so that my project can be used with either excel 2003 and 2007?

View 4 Replies

Launch An Excel Document In Windows, Edit It And Get The Application To Ask To Save It?

Nov 1, 2010

I can launch Excel with the document I want using VB.Net 2010:

Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.xlsx"
p.Start()

Excel starts OK with the file opened. I edit the file, but when I close it down, Excel doesn't ask if I want to save changes. So it closes and loses my edits.

If I do the same with a text file:

Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = "c: empmyfile.txt"
p.Start()

It opens (in Notepad++), I edit it and close it, and Notepad++ asks if I want to save changes.

I've now tried similar code with a Word document - and that's OK. Also with an OpenOffice Sheet document and that works as well.

This behaviour is happening in Windows 7 with Excel 2010. It works as expected in Windows XP with Excel 2007.

What am I doing wrong with Excel? Is it me?

View 2 Replies

Delete Row From Excel 2003

Feb 4, 2011

I want to delete the record from excel but i has getting the ISAM error, [Code]

View 1 Replies

Excel 2003 Row Limit?

Sep 28, 2005

Excel 2003 Row Limit?

View 2 Replies

Exporting Excel 2003 To Pdf?

Sep 12, 2011

I have a vb6 app that creates an Excel 2003 doc that I need to export to pdf. I have the following code to export,

excelWorkBook.Worksheets.PrintOut Copies:=1, ActivePrinter:="Adobe PDF",' printtofile:=True, prtofilename:=strOutputName

but nothing prints. The app exports to pdf works in test, but not when I move it to production. I have to remote into the machine that runs the app, so my printers from my local pc are "attched" to the remote session, can this have something to do with no output. The remote machine does not have the Adobe print drivers installed.

What can I do to get the export to work?

View 1 Replies

.net - Viewstate Becomes Corrupt Intermittently?

Apr 13, 2011

I have had a user of my VB.net web app complain he keeps getting an intermittent error message, causing him to crash out of the system.

Stack Trace:
[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(Strings) +0
System.web. UI. LosFormatter.Deserialize(String input) +25

[code]...

It appears from the error message that the viewstate keeps becoming corrupt (see screen-dump below), but I don't understand why. He claims it happens every 2-3 minutes, but I've used the system a lot and have never experienced it.I should mention too that he is using the web-app in a very "non-standard" way. To achieve optimum speed he's actually using remote desktop, to connect to our server directly, and running it as localhost. ("Madness!"- yes, I know. I didn't make the decision.) That may not be relevant of course.

View 1 Replies

Can't Automate Excel (2003) From VB2005

Jan 10, 2006

When I try to make a new workbook from excel it doesn't work and returning the following error:

System.Runtime.InteropServices.COMException was unhandled ErrorCode=-2147319784 Message="Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))" Source="Microsoft.Office.Interop.Excel" StackTrace:

[Code].....

View 2 Replies

Create Dropdownlist On Excel 2003?

Oct 18, 2011

I'm creating Excel files using AutomationFactory.CreateObject("Excel.Application").

I'm using these lines of codes to create a dropdown list[code]...

View 1 Replies

Create Excel 2003 Workbook ?

Jun 5, 2011

I'm trying to create an excel 2003 workbook from my vb.net project I referenced the code from this website [URL]

However i'm getting error on this line "objSheets = objBook.Worksheets"

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

''Create the Excel object declaration

Dim objExcel As Excel.Application = Nothing

[CODE]...

View 8 Replies

Dll - Continue Developing Add-ins For Excel 2003

Apr 7, 2011

I'm developing excel add-ins with VS2008 on Excel 2003/2007 and would like to start supporting Excel 2010. So moving to VS2010 is a must but there is no way to continue developing add-ins for Excel 2003 there. Is there a possibility to work under VS2010 and then use/share the business logic dlls on VS2008 for Excel 2003??

[Code]...

View 5 Replies

How To Read Excel File In 2003

Apr 6, 2010

The first thing to do is to browse the excel file in my vb.net program then read the content of excel file and display the value of excel content in listview.

View 2 Replies

IDE :: Encodings In MX Excel 2003 And Notepad?

Jun 2, 2010

We have a Windows based application whose GUI is in Unicode coding (UTF-16 I believe). But each time I copy a string from a cell of MS Excel 2003 or from Nodepad and paste it to the GUI of our application, the string can not be displayed correctly, just comes out. ( but if you type directly from the keyboard into the GUI, it's fine). I believe it is because the string from Excel or Notepad is one-byte string (maybe UTF-8, I am not sure). What is default encoding in Excel 2003? How can I make it work correctly - change the encoding in Excel or Notepad or some other way?

View 2 Replies

Open Excel 2003 Or 2007 From VBS?

Sep 18, 2009

I have both 2003 and 2007 installed on my machine. I want to create a VB Script to open a few files in 2003 and in 2007 versions. How can i do that?

View 2 Replies

Program To Use Excel 2003 Instead Of 2007?

Feb 12, 2012

I have a program that we converted to vs 2010. When then moved it to the users computer and they only have Excel 2003 on their station. How can we tell the excel reference to use 2003 (version 11) instead of 2007 (version 12). The program now is looking for 2007 version 12.

View 3 Replies

Excel 2003 - Date Input Mask ?

Aug 10, 2011

how to create an 'Access-like' input mask for hastening date data entry.

Using C Pearson's much quoted code I've modified it as such:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim DateStr As String[code]....

Note: I'm aware that most of the time I'm simply re-typing the original code - it was a learning experiencing and I also realised that the different American and Australian date formatting was less of a programming issue due to the systems being set up differently in the first place.My issue is having run tests using only 4 digit entry, all types of digit entry, with and without DateValue on the final DateStr, changing the cell format to text, to general, to date - always results in a code like "8811" (i.e. 08/08/2011) being changed into 01/01/1924 (approximately).

At first I assumed the use of "DateValue" in assigning the final .Formula value was forcing this conversion. However, with or without DateValue it still seems to read the figure as a DateValue and convert it as such.I'm sure it has to be something elemental that I'm missing given the scores of people I alone have seen on boards reading C Pearson's code and not coming up with another peep.

View 3 Replies

Excel 2003 VBA IFTHEN ELSE Keeps Rounding Numbers?

Jun 24, 2009

I haven't used VBA in a very very long time. So, go easy on me. I'm trying to do an IF THEN ELSE function where whatever the pVal cell says, Excel will input the correct currency value in the next cell. I have the cell format in the Excel workbook set to currency with 2 decimal places. However, when I add the UDF, it rounds up! I basically copied and pasted this code from an online website, but theirs did not have any decimals. I've tried calcvalue = Format("48.95","Currency") but it still rounds. I'm sure I'm leaving out something simple. Here's my function formula so far.

[Code]...

View 4 Replies

Export Code From Excel 2003 To VB 2008?

Sep 9, 2009

I have some trouble to export this code which works fine to VB 2008 This code is intented to work with datalogger.

[Code]...

View 4 Replies

Write To And Read From Excel 2007/2003

Oct 29, 2010

This code is to write text to excel 2007/2003 and also read from excel file.

Reference also need to be added, but Microsoft Excel 10.0 Object Library is ask, and my machine only got Microsoft Excel 12.0/5.0 Object Library

I not able to make it....

Imports
Excel = Microsoft.Office.Interop.Excel
Public Class

[Code].....

View 2 Replies

Programmatically Created Controls Show Up Intermittently?

Feb 22, 2009

Now everybody knows that creating GUIs that have lots of repeated elements that are evenly spaced by hand is for chumps; all the cool kids use loops and add them at runtime. Given that being one of the cool kids is one of my top priorities I decided to give this a go - as my current project involves creating a grid of check boxes and then chunking them together under one event handler. In my experience - an nice effective way of dealing with grid like structures (2D arrays if you will) is to use nested loops such as:

For intY = 0 To 9
For intX = 0 To 9
Dim chk As New CheckBox

[code].....

View 3 Replies

VS 2008 Getting A Null Exception Error Intermittently

Dec 30, 2009

I'm hoping someone can assist. I'm still learning VB so excuse my lack of knowledge. The below code is a mashup of a code snippet I found that effectively reads from an SQLite database. The initial code snippet consisted of a textbox for input, a textbox for output, and also consisted of a datagrid to store the contents and a button to activate the lookup.

[Code]...

View 20 Replies

Detect The Print Preview Window Of Excel 2003?

Aug 5, 2010

I need to be able to test if the current view is print preview in Excel 2003.

Is there something in the excel object model to simply access this property? (Like the application.printpreview in the Word object model...).

PS: Long story short, I'm developing a vsto addin with keyboard short-cuts to my custom functions, and I need to disable this shortcuts when print preview is on.

View 1 Replies

NullReferenceException Was Unhandled Trying To Open A Workbook In Excel 2003?

Jul 19, 2010

I am trying to transfer data from a VB form to an existing Excel 2003 file. This is the code I am using, but it is throwing up the following error:I have coded in VBA but am new to VB.NET and am struggling with setting up the objects

Dim oXL As Excel.Application
Dim oWB As Excel.Workbook
Dim oSheet As Excel.Worksheet

[code].....

View 2 Replies

Office Automation :: Excel 2003 Workbook Project

Oct 6, 2010

I have a seemingly simple question I can't seem to figure out. I have an old VBA application that connects to a database using OLEDB, grabs data, and populates an excel sheet using Excel.QueryTable after the user clicks a button. I'm trying to port this rather large program to VB.NET. I've created a few projects in my solution, one of which being an ExcelWorkBook. I want this workbook to load each time users launch the program and be blank until they click a button which will populate the data.

[Code]...

View 1 Replies

Office Automation :: Excel 2007 Automated By .Net 2003?

Feb 12, 2009

I have both Excel 2003 and Excel 2007 installed on my system. When I call oExcel = CreateObject("Excel.Application"), Excel 2003 is used in the context in my .NET code instead of Excel 2007 (which I need to be used). I have referenced the "Microsoft Excel 12.0 Object Library" but when the code runs, the 11.0 version is used.

Is it because I am using Visual Studio .Net 2003 that Excel 2007 cannot be correctly referenced or do I need to change a reference or setting?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved