473,614 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Excel._Workshee t.SaveAs

The applicacion sends me the next message "Method not found:
Excel._Workshee t.SaveAs (..."

I thinks that its about permissions but I do not know how to fix it.

I have the same source in two different servers, It work in one of these but
it doesn's work in the second one.

oExcel = New Excel.Applicati on
oExcel.Visible = False : oExcel.DisplayA lerts = False
'Start a new workbook
oBooks = oExcel.Workbook s
oBooks.Open(sTe mplate)
......
oSheet.SaveAs(s File) ' Error in this line

The source is VB .net

Aug 9 '07 #1
3 6220
What version of Excel are you using in each place? Are the same? I *guess*
Excel 2007 has WorkSheet.SaveA s() while Excel 2003 doesn't ???

"Rod" wrote:
The applicacion sends me the next message "Method not found:
Excel._Workshee t.SaveAs (..."

I thinks that its about permissions but I do not know how to fix it.

I have the same source in two different servers, It work in one of these but
it doesn's work in the second one.

oExcel = New Excel.Applicati on
oExcel.Visible = False : oExcel.DisplayA lerts = False
'Start a new workbook
oBooks = oExcel.Workbook s
oBooks.Open(sTe mplate)
.....
oSheet.SaveAs(s File) ' Error in this line

The source is VB .net
Aug 10 '07 #2
I debug and comment the SaveAS line, I run again my application and it sends
me an error in the line with a Open() method.

That's why i am thinking that it a permissions issue.

"Siva M" wrote:
What version of Excel are you using in each place? Are the same? I *guess*
Excel 2007 has WorkSheet.SaveA s() while Excel 2003 doesn't ???

"Rod" wrote:
The applicacion sends me the next message "Method not found:
Excel._Workshee t.SaveAs (..."

I thinks that its about permissions but I do not know how to fix it.

I have the same source in two different servers, It work in one of these but
it doesn's work in the second one.

oExcel = New Excel.Applicati on
oExcel.Visible = False : oExcel.DisplayA lerts = False
'Start a new workbook
oBooks = oExcel.Workbook s
oBooks.Open(sTe mplate)
.....
oSheet.SaveAs(s File) ' Error in this line

The source is VB .net
Aug 10 '07 #3
http://msdn2.microsoft.com/en-us/lib...fk(vs.80).aspx
Should be apparently oExcel.Workbook s.Add(), not oExcel.Workbook s.

"Rod" wrote:
I debug and comment the SaveAS line, I run again my application and it sends
me an error in the line with a Open() method.

That's why i am thinking that it a permissions issue.

"Siva M" wrote:
What version of Excel are you using in each place? Are the same? I *guess*
Excel 2007 has WorkSheet.SaveA s() while Excel 2003 doesn't ???

"Rod" wrote:
The applicacion sends me the next message "Method not found:
Excel._Workshee t.SaveAs (..."
>
I thinks that its about permissions but I do not know how to fix it.
>
I have the same source in two different servers, It work in one of these but
it doesn's work in the second one.
>
oExcel = New Excel.Applicati on
oExcel.Visible = False : oExcel.DisplayA lerts = False
'Start a new workbook
oBooks = oExcel.Workbook s
oBooks.Open(sTe mplate)
.....
oSheet.SaveAs(s File) ' Error in this line
>
The source is VB .net
>
Aug 10 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
41167
by: I Decker | last post by:
Hi all, Hope this is the right group. I am writing a program in c# to open create an excel document, enter some data, save it and then email it as an attachment. I have successfully created an excel document which the user can see (at this stage of development) and passed some data to it. I then used the savas method to save the file. Again this seems to work as the file is created. However once I close the excel file and try and...
2
7438
by: Jac | last post by:
Hey, We wrote a ASP.NET application and use excell for our reports. But on my localhost everything works fine. The excell-file is saved and opend. But when I try to excecute on the real machine I receive following error trace : : | or * • Make sure the file/path name doesn't contain more than 218 characters.]
1
10737
by: javzxp | last post by:
Hi I'd like to use C# to open an existing Excel workbook and save each worksheet it contains into a new Excel file. The name of each new Excel file should be the name of the worksheet copied from the existing file. So, as an example:
1
3382
by: ʹÃûÑï | last post by:
hi: purpose: clone the firest sheet in Excel.xls into excel2.xls here is my code it well done in winform£º ------------------------------- string SubFile=@"D:\Excel2.xls"; string MainFile=@"D:\Excel.xls"; Excel.Application ExcelMainFileApp,ExcelSubFileApp;
2
1986
by: Randy | last post by:
Hello, I'm trying to figure out how to do the above. I'm using a snippet of code I found on the net (see below). My problem is when I hit the line (oXL = new Excel.Application();) I get an exception which says..."Access is Denied". Does anyone know what I'm doing wrong? string strFileName = null; string fileName = "Hockey"; Excel.Application oXL; Excel._Workbook oWB;
1
4365
by: trialproduct2004 | last post by:
Hi all i am having application storing data in excel sheet. This applicaton is in C# .net. I want to update rows of excel sheet in C#. Can some one help me how to do it. please help me. Thanks in advance.
1
4785
by: Girish | last post by:
Hi, I want to embed a txt document into an excel using python. Here is my code, but i get an error message =================================================== Traceback (most recent call last): File "C:\Documents and Settings\kusumap\Desktop\Girish.py", line 7, in ? worksheet.OLEObjects.Add(Filename="C:\Documents and Settings
1
1746
by: steveKC | last post by:
Hi, Anyone know how to extarct data from Oracle to excel without the header using vb.net? Below is my coding: Dim rst As ADODB.Recordset cn = New ADODB.Connection
1
6965
by: raul15791 | last post by:
Hi, I'm new to C#. I'm writing a program that open a new excel file, write into it and lastly close the file. But the program is that there will be a orphaned process named EXCEL.EXE left on the process queue whenever the program quit. Anyway to terminate it automatically when the application exit? I read some previous postings on the same problem and try to use Marshal.ReleaseCOMObject and Garbage Collection. None of these works. Here's my...
0
8124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8576
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8427
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6087
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5538
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4049
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4119
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1712
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1421
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.