print text from a macro to a printer

Discussion in 'Microstation' started by Ivo Blaauw, Nov 5, 2003.

  1. Ivo Blaauw

    Ivo Blaauw Guest

    Does anybody know of a way to let a macro print a piece of text to a
    printer?

    I want V7 to display a messagebox with some HOW TO comments and let
    the user be able to print the contents of this box later. It does not
    really matter if the text-string comes from the messagebox or from a
    txt-file or from the macro itself. There really is not going to be any
    interaction of the user. It's just going to be a HOW TO message, and I
    want to be able to print that.

    Also I would like to be able to put a little more text in the message
    as in the MbeMessageBox. And Without the slider on the right. It is
    not really working in a custom dialog.

    Tia

    Ivo
    Productgroep Ingenieursbureau Civiele Techniek
    Gemeentewerken Hilversum
    - - - - - - - - - - - - - - - - - -
    I fixed it right the first time,
    it must have failed for other reasons.
    - - - - - - - - - - - - - - - - - -
    Do not use my e-mail adress or distribute my e-mail
    adress to 3rd party without my explicit permission.
     
    Ivo Blaauw, Nov 5, 2003
    #1
  2. Ivo Blaauw

    Don I Guest

    i've never actually done this with MS Basic--but I've done it with
    C++.

    Try opening a "file" for write. The file name is lpt1.prn (of course
    this assumes you've got lpt1 mapped to the printer--I can't think of
    another way.
     
    Don I, Nov 17, 2003
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.