ChangePrinter

Michael audax at wideband.net.au
Tue Jul 8 16:44:30 PDT 2008


I have done all of this and I cannot get either the ChangePrinter  
command or the Default Printer wizard to work.  I am using

ChangePrinter "Canon iP4500 series"

and if I change a character in the name, I get an error message that  
the printer doesn't exist, so obviously Pan is recognising the printer  
name, it's just not directing output to it.  My other printer is a  
Brother mono laser.  Changing "If 1=0" in the ListPrinters command  
code has no effect either.

Somewhere in my system there is a setting/preference that defaults all  
printing to the printer last used - could that be over-riding the Pan  
commands?  At the moment, I can't recall where that preference is.

michael


On 09/07/2008, at 12:22 AM, David Thompson wrote:

>> Following the steps outlined in the Panorama Handbook, I can't get it
>> to work - is there a hidden pitfall?
>
> Looking at the Panorama Handbook, I see only one
> step, so I'm not sure which steps you are
> referring to.
>
> With a database that has at least one form in
> front, open the Default Printer wizard. It can be
> found on the Preferences sub-menu of the Wizards
> menu. Click on one of the pop-up menus, and look
> to see if the printer you wanted is listed. If it
> is, then the name you see in the menu is the
> exact name you should be using in the
> ChangePrinter statement.
>
> The list of printers in the Default Printer
> wizard, and the ChangePrinter command, both rely
> on the ListPrinters command. This command doesn't
> work for everyone. If the list of printers that
> appeared in the Default Printers wizard's menu
> was blank, or didn't list all of the available
> printers, then it doesn't work for you.
>
> ListPrinters is a custom statement. It's code
> contains an alternate method for listing the
> printers that will probably work if the usual
> method doesn't.
>
> Search for the ListPrinters command - not the
> listprinters( function - in the Programming
> Reference wizard, and select it. Then press
> command-1 to open the procedure. Near the top you
> will see a statement that reads
>
> if 1=0
>
> Change that to
>
> if 1=1
>
> or any other condition that is guaranteed to be
> true. Then save and quit from Panorama. When you
> re-launch, try the Default Printers wizard again,
> to see if your printer is listed now.
>
> Dave
> _______________________________________________
> Qna mailing list
> Qna at provue.com
> http://provue.com/mailman/listinfo/qna



More information about the Qna mailing list