Results 1 to 3 of 3

Thread: print dialog

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Posts
    33
    how do i get the print dialog to appear, and then how do i recieve the information the user input into it?

  2. #2
    Hyperactive Member mikef's Avatar
    Join Date
    Jun 2000
    Location
    Beach bound...
    Posts
    510
    Add a common dialog control to your form and name it CommonDialog1. Then use the following statement to call the dialog box:

    CommonDialog1.ShowPrinter


    Once the user clicks OK you are responsible for the printing code. Here is an example:

    Printer.Print "This is a Test"

    or

    test$ = "This is a Test"
    Printer.Print test$

    To send it to the printer when done use:

    Printer.EndDoc

    It is really simple to use once you get the BASIC concept. Hope this helps a little.



  3. #3
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Thumbs up this should work

    try this

    Add the commondialog control to the form

    commondialog1.printerdefault = true
    Commondialog1.showprinter
    printer.print text1.text
    Matt

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