When I run an Excel method, the C# compiler forces me to fill all the
optional parameters.
It looks like this
Excel.Run("AddSheets",null,null,null,null,null,nul l,null,null,null,null,null,null,null,null,null,nul l,null,null,null,null,null,null,null,null,null,nul l,null,null,null,null);
Originally, the AddSheet macro has no parameters.
This is a ridiculous example, but myWorkbook.SaveAs(excelName) does not work
too. 2 1114
C# does not support optional parameters so you need to supply every
parameter to method.
What is the question?
"gideonrv" <gi******@discussions.microsoft.com> wrote in message
news:5A**********************************@microsof t.com... When I run an Excel method, the C# compiler forces me to fill all the optional parameters. It looks like this:
Excel.Run("AddSheets",null,null,null,null,null,nul l,null,null,null,null,null
,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null,
null,null,null,null); Originally, the AddSheet macro has no parameters. This is a ridiculous example, but myWorkbook.SaveAs(excelName) does not
work too.
After I posted this question I found an answer: I added a VB project which
serves as an intermediae connection between C# and Excel.
"Lebesgue" wrote: C# does not support optional parameters so you need to supply every parameter to method. What is the question?
"gideonrv" <gi******@discussions.microsoft.com> wrote in message news:5A**********************************@microsof t.com... When I run an Excel method, the C# compiler forces me to fill all the optional parameters. It looks like this: Excel.Run("AddSheets",null,null,null,null,null,nul l,null,null,null,null,null ,null,null,null,null,null,null,null,null,null,null ,null,null,null,null,null, null,null,null,null); Originally, the AddSheet macro has no parameters. This is a ridiculous example, but myWorkbook.SaveAs(excelName) does not work too. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Savas Ates |
last post by:
i cant delete data from excell which i use as a database with asp .. i
encounter an error report about isam. how can i delete data from excell help
meee!
|
by: alvis |
last post by:
I need to write a windows service that will read a excell spreadsheet and
either update a row in my sql db or insert the row.
My question is how do i read excell spreadsheet row by row in VB dotnet
|
by: Mustafa |
last post by:
I have an ASP script where i am generating the excell sheet dynamically i am
passing some column header text which is long text so i want it to display
it vertically in column (cell).In excell i...
|
by: Mustafa |
last post by:
I have an ASP script where i am generating the excell sheet dynamically i am
passing text as column heading which is long text so i want it to display it
vertically in column (cell).In excell i...
|
by: Robert Halstead |
last post by:
Hi guys, I have a asp.net web app and it's connecting to
an excell 2003 document (in another folder) via
OleDataAdapter. Everything works and all, it's just that
when I shutdown IE and try to...
|
by: alvis |
last post by:
hi i have a windows service that uses an excell workbook
when i create the excell app
i cant distroy it after i am finished i am using this code
whats wrong?
thanks
Dim processes1(), p1 As...
|
by: Delforce |
last post by:
Hi all,
My application allows you to create a new excel file and then double click
it in the list view to start it in excell. If the excell file is an existing
one then I can start it now...
|
by: glibo |
last post by:
I am trying to change the tab name when i open a excell spread sheet on the run time in c#.
I changed it in the code:
Response.AddHeader("content-disposition","filename=" + sFileName + ".xls");...
|
by: Bram2008 |
last post by:
How to use macro in excel?
Can i get some code to record excell data to vb?
O y, i have project in vb, and i write data in vb, then i transfer it to excell to build chart. This is my code :
...
|
by: Ali Rizwan |
last post by:
Hi all,
I m creating a database. The data for database will fetched from an excell sheet. Now how can i read an excell sheet and update my database with that excell sheet.
Or
I want to show...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |