...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
Printable View
...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
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
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