Hi all,
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
vslexgrid.printgrid "",true,10,20
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.
Yen
nguyenyen
0
Newbie Poster
Recommended Answers
Jump to PostThis 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 …
Jump to PostPrinterlist is shows the printers installed on your system. So have to make sure that a printer is istalled, select the printer and print to it. I see if I can find the full code again and post it here later,
All 5 Replies
Minimalist
96
Posting Pro
nguyenyen
0
Newbie Poster
nguyenyen
0
Newbie Poster
Minimalist
96
Posting Pro
Minimalist
96
Posting Pro
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.