Results 1 to 2 of 2

Thread: print problems(solved))

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2004
    Location
    youngstown, oh
    Posts
    202

    Resolved print problems(solved))

    ok i have 3 forms...a frmStartup, frmNewCharter, and frmAbout.
    theres a menu on frmStartup called mnuFilePrintYachtTypes. what it is suposed to do is to print the list of yachts in the "Yacht Type" list box on my frmNewCharter. check the code out...
    VB Code:
    1. Private Sub mnuFilePrintYachtType_Click()
    2. 'Print the contents of yacht type combobox.
    3.  
    4. Dim intIndex As Integer
    5. Dim intFinalValue As Integer
    6. intFinalValue = frm.NewCharter.cboYachtType.ListCount - 1
    7. For intIndex = 0 To intFinalValue
    8.     Printer.Print frm.NewCharter.cboYachtType.List(intIndex)
    9. Next intIndex
    10. Printer.EndDoc
    11.  
    12. End Sub
    am i right...will thsi work ?

    it sure does, thanks for ur help !!
    Last edited by jlbovo; Nov 9th, 2004 at 01:06 AM.

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