Results 1 to 2 of 2

Thread: Difficulty with printing

  1. #1

    Thread Starter
    Addicted Member SaharaWizard's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    254

    Arrow Difficulty with printing

    Hello ppl
    I am using "printfrom" to print a small invoice at certain points in an application.
    I was suggested to use "printform" becasue I could fill up the data into it and control size and dimensions of the paper print out easier (Is this the best way to print an invoice - 14x3 cm?)
    Problem is that everytime I print an invoice a little window pops up showing how many pages are going to printer!
    1. How do I get rid of it?
    2. Do I have to load an unload the form for invoice everytime?
    3. In one or two occasion I got overflow error although there is nothing wrong with the data, is it becasue of print?
    Thanks

    The code I am using is:

    Code:
    Private Sub cmdPrint_Click()
    
    'LOADING INVOICE FORM
    Load frmInvoicesPrintout
    frminvoIcesPrintout.Visible = false
    
    'SENDING DATA INTO THE FORM
    frminvoIcePrintout.lblTN.Caption = Trim(txtId.Text)
    frminvoIcePrintout.lblSN.Caption = Trim(txtStyle.Text)
    frminvoIcePrintout.lblKRN.Caption = Trim(txtKR.Text)
    frminvoIcePrintout.PrintForm
    End Sub
    Last edited by SaharaWizard; Mar 3rd, 2005 at 06:10 PM.
    Don't let your schooling get in the way of your education.

  2. #2
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    Re: Difficulty with printing

    Is this a VB.6 application? If so, you might have better luck posting to the Classic Visual Basic forum, I think Printform was used in VB6.

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