×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Printer Selection

Printer Selection

Printer Selection

(OP)
How can I return the printer selected using the PRINTERDIALOG?
I have a need to store the Printer names in a printers table then I can have users use look-up for choose a printer from the table

 

RE: Printer Selection

Hi Tuz,

IF PRINTERDIALOG('Choose a Prinnter')
   MyChosenPrinter = PRINTER{PROPPRINT:Device}
END

Read more on PRINTERDIALOG & PRINTERDIALOGA in the help.

Regards

RE: Printer Selection

(OP)
Thanks Shankar

Working Perfect now!

Tuz

RE: Printer Selection

Hello
Can we assign this code to work from inside the preview screen.
I tried to assign to a button inside the preview screen but it worked after colsing the report and run it again.

Regards

 

RE: Printer Selection

Hi!

When a report is generated it creates WMF files (with an extension of TMP in the Windows Temp folder) for all the pages of the report. The WMF file contains formatting specific to the printer that was chosen before generating the report. To change the printer at the preview stage will not work. What 3rd party previewers that offer this feature do is create a new preview using the earlier WMFs as images and is a bit tricky to do. You may need to invest in a 3rd party tool like IceTips Previewer from www.icetips.com.

If you want to insert code to choose a printer i.e. call PRINTERDIALOG(), do that in the OpenReport method - before parent call.

Regards
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close