Changing printer parameters 
Author Message
 Changing printer parameters

I have been trying to get PDXWIN 5.0 to change printer settings by using
PrinterSetOptions and ReportPrintInfo but I have had no success.  I am
printing to an HPlaserjet 3si on a Novell Network.  

I can apparently change the parameters:  If I stop the script before the
report is printed, the printer setup looks like it should.  I want to print on
legal size paper in the lower tray in landscape orientation and that is what
menuaction(menufileprintersetup) shows, but when I send the command to print:

Report.print(RPI)

Report is a report variable.
RPI is a reportprinterinfo variable.

It will always print from the upper tray with 8.5 X 11 inch paper.  Are there
secrets to controlling a printer under OPAL control that I need to learn?  Or
doesn't it work?

The report prints fine when I do it interactively.  Of course, I must always
go into design mode to set the page layout correctly before printing.  Why
doesn't PDX store with the report the page layout?

Hope this is enough information to respond to.  I can show code if needed.



Tue, 30 Jun 1998 03:00:00 GMT
 Changing printer parameters

: Report.print(RPI)

: Report is a report variable.
: RPI is a reportprinterinfo variable.

Did you try a report.open() before report.print(RPI)?

: The report prints fine when I do it interactively.  Of course, I must always
: go into design mode to set the page layout correctly before printing.  Why
: doesn't PDX store with the report the page layout?

Think of a huge headquarters with hundreds of various printers all with
their own settings.  Now what do you do?  IMO, not storing page orientation
and page size is the way to go.

Andrew
--
Andrew Bennett



Wed, 01 Jul 1998 03:00:00 GMT
 Changing printer parameters

Quote:
> Think of a huge headquarters with hundreds of various printers all with
> their own settings.  Now what do you do?  IMO, not storing page > orientation and page size is the way to go.

Managing page layouts in a networked environment with multiple printer
settings doesn't seem to be much of a problem for other applications,
like MS Word or Quattro Pro.  They adjust page layouts specified by the
user according to which print driver is used.  Why should it be a problem
for PDOX?

Kate



Wed, 01 Jul 1998 03:00:00 GMT
 Changing printer parameters

Here's some code to clarify the previous message:

var    

rptOpenrec              ReportOpenInfo
RPI                             ReportPrintInfo
Rpt                             Report
POI                             PrinterOptionInfo

endvar

        menuaction(menufileprintersetup)

; Printer setup shows portrait, 8.5X11, upper tray

        PrinterGetOptions(POI)
        POI.view()

;POI shows portrait, upper tray

        POI.orientation = prnLandscape
        POI.defaultsource = prnManual

        if not(PrinterSetOptions(POI)) then

;This always returns an error because the printer does not support
PrintQuality.  So what good is the error since it appears that every
thing else does get set properly.

                errorshow()
        endif

                menuaction(menufileprintersetup)

; Printer setup shows landscape, manual tray

                RPI.name = "SomeReport"
                RPI.orient = PrintLandscape
                Rpt.print(RPI)

;Report prints landscape, but does not use manual tray.  The same thing occurs
when I try to switch to lower tray where the legal size paper is.  Prints
landscape but does not use the lower tray.

                menuaction(menufileprintersetup)

;printer setup now shows Upper Tray, Portrait, 8.5X11 paper.  But I have
done nothing to reset the printer parameters.

Does anyone know what is going on?



Thu, 02 Jul 1998 03:00:00 GMT
 Changing printer parameters
Quote:

>Think of a huge headquarters with hundreds of various printers all with
>their own settings.  Now what do you do?  IMO, not storing page orientation
>and page size is the way to go.

I disagree - if I have a report that must be printed on legal-sized paper,
in landscape mode (for example, printing onto a pre-printed form), then those
attributes should be stored with the report.  If the printer doesn't support
those settings, then the user should be informed by some sort of dialog box.  IMO.

Jim



Fri, 03 Jul 1998 03:00:00 GMT
 Changing printer parameters

*
**Think of a huge headquarters with hundreds of various printers all with
**their own settings.  Now what do you do?  IMO, not storing page orientation
**and page size is the way to go.

*I disagree - if I have a report that must be printed on legal-sized paper,
*in landscape mode (for example, printing onto a pre-printed form), then those
*attributes should be stored with the report.  If the printer doesn't support
*those settings, then the user should be informed by some sort of dialog box.
*IMO.
*
*Jim
*
I agree with you, Jim.  If Pdox didn't intend for users to store page
parameters for each report, why is the only place you can change this
information is in the DESIGNER?  Right now I must allow each user into the
report designer in order to get the printer settings right.  It appears they
must have access to Report|Page|Layout in order to change the printer trays.  
I hope I am still doing something wrong because this is not the right way to
do business.



Sun, 05 Jul 1998 03:00:00 GMT
 Changing printer parameters

Quote:


>Subject: Re: Changing printer parameters
>Date: 17 Jan 1996 11:09:54 GMT

>*

>**Think of a huge headquarters with hundreds of various printers all with
>**their own settings.  Now what do you do?  IMO, not storing page orientation
>**and page size is the way to go.
>*I disagree - if I have a report that must be printed on legal-sized paper,
>*in landscape mode (for example, printing onto a pre-printed form), then those
>*attributes should be stored with the report.  If the printer doesn't support
>*those settings, then the user should be informed by some sort of dialog box.
>*IMO.
>*
>*Jim
>*
>I agree with you, Jim.  If Pdox didn't intend for users to store page
>parameters for each report, why is the only place you can change this
>information is in the DESIGNER?  Right now I must allow each user into the
>report designer in order to get the printer settings right.  It appears they
>must have access to Report|Page|Layout in order to change the printer trays.  
>I hope I am still doing something wrong because this is not the right way to
>do business.

Why not have More than one version of the report with a dialog flow that calls
the appropriate series of reports for that users Printer Dialog Selection over
the entire App.?


Sun, 05 Jul 1998 03:00:00 GMT
 
 [ 7 post ] 

 Relevant Pages 

1. [4.5] Printer/Font Manager Error when changing printers

2. How to change parameter order in parameter collection

3. Parameter change suggestion after hardware change

4. Parameter change suggest after hardware change

5. Changing the Default Printer programatically

6. Changing the Default Printer programatically

7. Changing the Printer for apps

8. Changing default printer.

9. Changing Default Printer Properties

10. Change default printer in Win95

11. Change Default Printer with VB code?

12. Printing problem: user changes printer resolution , fonts chang


 
Powered by phpBB® Forum Software