I'm using vb6.
I'd like to get number of copies when user printing.
It means that after I adjust all information in vslexgrid and print it by
after that print preview dialog appear and number of copies can be entered by users.
I want to get that number of copies . Page always fixs from 1 to 1.
Thanks a lot for any help.
Jump to Post
This comes off a code snippet in this forum
Private Sub cmdPrint_Click() 'set the printer and print something If Len(PrinterList.SelectedItem.Text) > 0 Then Set Printer = Printers(PrinterList.SelectedItem.Index - 1) Printer.Copies = NoCopies End If 'add any print statements here that you want Printer.Print "hello" Printer.EndDoc cmdCancel_Click End …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.