caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "SooHyoung Oh" <shoh@duonix.com>
To: "Nicolas Cannasse" <warplayer@free.fr>, "OCaml" <caml-list@inria.fr>
Subject: Re: [Caml-list] OCam'OLE pre.3b
Date: Tue, 10 Sep 2002 14:54:14 +0900	[thread overview]
Message-ID: <001c01c2588e$7e673ad0$fe00a8c0@hama> (raw)
In-Reply-To: <002301c257ec$4c663420$5200a8c0@warp>


Actually, I'm a novice on Visual Basic for Applications as well as Visual
Basic.

I tried to make button and check_box in excel application,
but I can't find any function in excel.ml, excel.mli
which make buttons, and button (except of Buttons.add)

And I guessed some function's usage and made the folloing programs.
It makes an error
    Fatal error: exception Ocamole.Com_error("IDispatch.GetIDsOfNames")

===================
let app = IApplication.application_ (IApplication.create())
let books = Application_.get_workbooks app
let book = Workbooks.add books
let sheets = Workbook_.get_worksheets (Workbook.workbook_ book)
let sheet = Worksheet.query ~unsafe:true (Sheets.get_item sheets
~index:(VT_INT 1))
let isheet = Worksheet.worksheet_ sheet

let cboxes = CheckBoxes.query ~unsafe:true (Worksheet_.idispatch isheet)
let test1 () =
   let cbox = CheckBoxes.add cboxes 50.0 50.0 300.0 400.0 in
   ()

let buttons = Buttons.query ~unsafe:true (Worksheet_.idispatch isheet)
let test2 () =
   let but = Buttons.add buttons 50.0 50.0 300.0 400.0 in
   ()

---
SooHyoung Oh
tel: 02)583-8709, 042)861-8649
cell. phone: 011-453-4303
web: http://www.duonix.com

----- Original Message -----
From: "Nicolas Cannasse" <warplayer@free.fr>
To: "SooHyoung Oh" <shoh@duonix.com>; "OCaml" <caml-list@inria.fr>
Sent: Monday, September 09, 2002 7:33 PM
Subject: Re: [Caml-list] OCam'OLE pre.3b


> > Can anyone give more complex example using Ocam'OLE
> > which uses Excel's various components such as UserForm, Page, Text,
Label,
> > Button?
>
> You should look at Excel VBA samples/help. Then the OCaml usage should be
> almost the same ( with an additional type-safety ).
>
> Regards,
> Nicolas Cannasse
>
>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      reply	other threads:[~2002-09-10  5:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-23 12:52 Nicolas Cannasse
2002-09-09  7:12 ` SooHyoung Oh
2002-09-09 10:33   ` Nicolas Cannasse
2002-09-10  5:54     ` SooHyoung Oh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001c01c2588e$7e673ad0$fe00a8c0@hama' \
    --to=shoh@duonix.com \
    --cc=caml-list@inria.fr \
    --cc=warplayer@free.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).