how do i get the print dialog to appear, and then how do i recieve the information the user input into it?
Printable View
how do i get the print dialog to appear, and then how do i recieve the information the user input into it?
Add a common dialog control to your form and name it CommonDialog1. Then use the following statement to call the dialog box:
CommonDialog1.ShowPrinter
Once the user clicks OK you are responsible for the printing code. Here is an example:
Printer.Print "This is a Test"
or
test$ = "This is a Test"
Printer.Print test$
To send it to the printer when done use:
Printer.EndDoc
It is really simple to use once you get the BASIC concept. Hope this helps a little.
try this
Add the commondialog control to the form
commondialog1.printerdefault = true
Commondialog1.showprinter
printer.print text1.text