Page 1 of 1
Retrieve Printer Name from Dialog?
Posted: Wed Jun 12, 2002 9:25 am
by vanessa
Hi, __I^m using R&R Report XBase Edition Version 9.0. My OS is Win 98SE, Program Language : Visual Basic 6.0 Database: DBase III with clipper index(.ntx).____How do I store which printer the user has selected through the printer dialog? I try using the code below but with no success.____Dim PrinterSel as string____if PrinterSel="" then__ RRReport1.Printer=?__else__ RRReport1.Printer=PrinterSel__endif____(To get the print dialog). __RRReport1.Action=1__PrinterSel=RRReport1.Printer__(? is being stored not the selected printer name being stored.)____Does anyone know how to solve this problem?____Regards__
=> Retrieve Printer Name from Dialog?
Posted: Thu Jun 13, 2002 8:08 am
by kfleming
I am confused by what you are trying to do.__Do you want to give the user the ? prompt to select a Windows printer and then store that selection for future use?____Kathleen__R&R Support
==> RE: Retrieve Printer Name
Posted: Fri Jun 14, 2002 7:15 am
by vanessa
Yes.
===> RE: Retrieve Printer Name
Posted: Fri Jun 14, 2002 2:00 pm
by kfleming
I do not know of a way to be able to do that.____Kathleen__R&R Support
====> RE: Retrieve Printer Name
Posted: Mon Jun 17, 2002 4:24 am
by ColinDow
Would it be possible to get the user to select the printer some other way? e.g fill a combo box with the printer names and store that instead____for i=0 to printers.count-1__ cboPrinters.Additem Printers(i).devicename__next i____then set the .printer property to the selected item.____I should add I havent done this its just a thought.__ ____