Results 1 to 2 of 2

Thread: SAVE and PRINT functions

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Galt, Ca
    Posts
    47
    Can anyone help me with the code for "save" and "print" with a text box? I need it to be saved as a *.txt file and if you know how to make it print, you are the man!

    thanx
    empty words

  2. #2
    Hyperactive Member
    Join Date
    Nov 1999
    Location
    Galway, Ireland
    Posts
    316
    Ok then to print a text box

    printer.print text1.text
    printer.enddoc

    easy huh...

    to save the text to a text file

    file_name = "hello.txt"
    Open file_name For Append Shared As #6
    Print #6, "Hello this is good heh"
    Close #6

    if you get rid of the append it creates a new file everytime.


    With the Printer object there is lots you can do with fonts etc etc let me know if this works for you

    [email protected]

    Co Galway
    Ireland

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width