Results 1 to 3 of 3

Thread: New to printing...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    ...but I think I've got the very basics figured.

    However.

    How do I print out a ListView (report style) giving the user full print options (or at least choice of Landscape/Normal)?

    Thanks.

    -Git

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111
    If you add the Microsoft Common Dialog Control to the Project and create CommonDialog1 on a form called Form1 then you can do the following

    Private Sub MyPrint()
    Dim Counter as long

    Form1.CommonDialog1.ShowPrinter
    For counter=0 to ListView.listcount-1
    Printer.print Listview.list(counter)
    next
    Printer.EndDoc
    End Sub

    The Common dialog control shows the standard windows Print box and sets the Printer, along with Papersize, Quality and Landscape/portrait properties so you don't have to

    Cheers

    Chris

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    That wasn't quite what I was looking for, thanks anyway. =)

    I'm using a report style ListView, like a table, and I want to print all the data in it if possible.

    Thanks. =)

    -Git

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