Print Setup

Post Reply
Ollie
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Print Setup

Post by Ollie »

My users find it strange that they have to select a Printer when all they want to do is Preview first (That is complicated by the fact that the Select Printer Dialog box actually says "Print")

I have to make the user "Select a Printer" before the preview, because in the preview screen there is no option to "Select a Printer"

Is there a way around this? i.e. Show the previewed Output and then let the user select a printer, change properties etc. and then print.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Ollie,

If you do:

Code: Select all

PRINT oPrn PREVIEW
   PAGE
      oPrn:Say( 2, 2, "Hello" )
   ENDPAGE
ENDPRINT
then the preview will be shown and no request to select a printer will be done, as FWH will use the default selected printer
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Post by Rick Lipkin »

Antonio

I think what Ollie is asking is that the only time we get a chance to get the printers is before the preview is run ..

It would be nice ( if possible ) that there could be a getprinters dialog in rpreview and another icon added to the preview tool bar to chose the printer after the output has gone to preview.

Thanks
Rick Lipkin
SC Dept of Health, USA
R.F.
Posts: 840
Joined: Thu Oct 13, 2005 7:05 pm

Post by R.F. »

I think it could be difficult because the metrics for the preview are taken from the current default printer driver.

To choose the printer AFTER the preview is shown, you need an "independent" device, which is difficult to implement since you need basic metrics for the printing calculations

The easy way would be to REBUILD the report once showed in the preview, I mean, you add the printer choose dialog from the preview, and then you will build the report again WITHOUT previewing and send it right to the printer
Saludos
R.F.
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Rene is right, the preview is a preview of what the report will look like on a specific print device, and then when you wish to print to a different device, you need to rebuild the report. If you change the print device after the preview, this may have the undesirable side effect of the actual printed report not being exactly the same as the preview. The user will, of course, blame the program.

A better option is to provide the standard File-Printer Setup on the menu and also display the current printer name on the message bar. It can also be displayed on the print button tooltip. This way the user can easily see what the application's currently selected printer is. They will learn to select a printer before generating a preview.

I don't recommend asking the user to select a printer before each report. This is tedious for the user. The program should make some basic assumptions based on probability. What is the probability that the user doesn't want to use the current printer? Better yet, what is the probabilty that the user doesn't want to use the printer that they just used last time? An even smarter program would keep track of which printers each user uses for each report, then assume they want to use the same one next time. A really smart program would keep track of which printer was used the last ten times. If the user printed to printer A nine times then to printer B on the tenth time, which printer is the user most likely to use on the 11th time?

Probability is not the same as possibility. Just because a user MIGHT want to do something doesn't mean that it is likely. When the user prints to the same printer 9 out of 10 times, asking the user which printer they want every time they print is not a good interface design. Maybe you could ask them the first 5 or 10 times, then after that always make an assumption based on probability and not ask anymore.

Less is more. No matter how great you think your interface is, less of it would be better.

James
rspilon
Posts: 8
Joined: Sat Apr 28, 2007 5:58 am

Correction

Post by rspilon »

The very nature of enhanced metafiles allows device independence on playback due to the correct information being recorded in metafiles via device abstraction.

The only limitation is the destination device on playback - ie - resolution et al.
Post Reply