Results 1 to 4 of 4

Thread: Printing--Think I'm Using The Wrong Code

  1. #1

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Unhappy Printing--Think I'm Doing Something Wrong?

    I Am having trouble with this code:
    Code:
    Dim Response, xpos
    If Text1 = "" Then
    MsgBox "You Need To Have A Recipe In The Text Box."
    Else
    Response = MsgBox("Are You Sure You Wanna Print?", vbYesNo, "Print...")
    If Response = vbYes Then
    Timer1.Enabled = True
    xpos = 10
    Printer.ScaleLeft = xpos
    Printer.Print Text1
    cancelprint.Enabled = True
    End If
    End If
    Can Anyone see anything wrong with the code, i try
    to print and then the printer keeps reading spooling.
    And when i press stop on the play stop thing at the top, it starts printing.

    any help will be greatly appreciated,

    Flame

    [Edited by flame_211 on 10-09-2000 at 10:23 PM]
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: [email protected]

    Check out these sites:
    My Blog

  2. #2
    Lively Member
    Join Date
    Feb 2000
    Posts
    118

    close

    you need
    Code:
    Printer.EndDoc
    put that after Printer.Print
    Kokopeli
    VB6 SP3

  3. #3

    Thread Starter
    Hyperactive Member flame_211's Avatar
    Join Date
    Jun 2000
    Location
    I dont really think I know where I am???
    Posts
    393

    Talking

    then it will stop spooling and start printing?
    Reach me at:
    AIM: FlameWide
    AIM: Itz deep6
    MSN/Email: [email protected]

    Check out these sites:
    My Blog

  4. #4
    Lively Member
    Join Date
    Feb 2000
    Posts
    118

    Yes

    I commented out your cancelprint call and put the Printer.Endoc there and it worked. You need a space between your double quotes too.Text1.Text = " " like this. you have "". That didn't work. You wont get the message box to put a recipe in if you dont.
    Kokopeli
    VB6 SP3

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