Robert,
One of the major differences between VB.Net and C#.Net that causes problems
with interop and things like you're trying to do is that there are no
optional parameters in C#.
As a result you must supply a value for all parameter values of a method or
class call.
With interop I've used oMissingValue as defined below for parameters that
don't require actual values.
object oMissingValue = Type.Missing; &
object oMissingValue = System.Reflection.Missing.Value;
Hope this helps.
Barry
in Oregon
"Robert" <rhill938@hotmail.com> wrote in message
news:964C9917-B850-45E6-A6A6-C841DA4AC695@microsoft.com...[color=blue]
> No. I have the data. I do not need to open a recordset and obtaion data
> from a database. The data is coming form the dataset passed into the
> procedure. I am creating a recordset from the data in the dataset. As[/color]
part[color=blue]
> of this process, I create a .xsl file which comtains both the schema and[/color]
the[color=blue]
> data. I need to open the recordset with this .xsl file. VB.NET is like[/color]
this:[color=blue]
>
> rs.Open("C"\Files\MyXslFile.xsl")
>
> I want to do it in C# which is like this:
>
> rs.Open("C:\files\xslfile.xsl", object ActiveConnection,
> ADODB.CursorTypeEnum, ADODB.LockTypeEnum, int Options)
>
> Since I do not need a connection, cursor type, lock type, or any options,
> how is this accomplished?
>
>
>
>
> "Jeff Gaines" wrote:
>[color=green]
> > On 30/12/2004 Robert wrote:
> >[color=darkred]
> > > I agree if I were using Excel .xls files. This is a .xsl file which
> > > is an ADO Recordset format for defining the schema.
> > >
> > > Robert[/color]
> >
> > Sorry, must have Excel on my mind :-)
> >
> > The example I gave included the extra parameters, did you try them?
> >
> > --
> > Jeff Gaines
> > Posted with XanaNews 1.17.1.2
http://www.wilsonc.demon.co.uk/delphi.htm
> >[/color][/color]