Retrieve Printer Name from Dialog?

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
vanessa
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

Retrieve Printer Name from Dialog?

Post by vanessa » Wed Jun 12, 2002 9:25 am

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__

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> Retrieve Printer Name from Dialog?

Post by kfleming » Thu Jun 13, 2002 8:08 am

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

vanessa
Posts: 4
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Retrieve Printer Name

Post by vanessa » Fri Jun 14, 2002 7:15 am

Yes.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Retrieve Printer Name

Post by kfleming » Fri Jun 14, 2002 2:00 pm

I do not know of a way to be able to do that.____Kathleen__R&R Support

ColinDow
Posts: 39
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Retrieve Printer Name

Post by ColinDow » Mon Jun 17, 2002 4:24 am

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.__ ____

Post Reply