Re: Oracle reports6

From: herbert.fukerider <herbert.fukerider_at_rfn.de>
Date: Thu, 07 Oct 1999 14:32:08 +0200
Message-ID: <37FC92C7.6EE55EC9_at_rfn.de>


Hi,
Just solved my problems with reports 6.0 on HP-UX client-server:
Here ist what I found out after hours:
  • Reference Manuals AND Installation guide have errors:

  • TK6_PRINT env variable is wrong,  must be TK_PRINT
    e.g. setenv  TK_PRINT "lp -ops -s -d'%n' -n%c"
     
  • The Postscript engine now sets *PageSize AND *InputSlot for EACH page

  • With Dev4.5 only *PageSize was set, and only once for the whole output.
    As there is an error at least in the
    $ORACLE_HOME/guicommon6/tk60/admin/PPD/hpljet41.ppd file,
    printing fails:
    Here is the Section of that file with my Line Numbers:

     440  *DefaultInputSlot: Lower
     441  *InputSlot Upper/Multipurpose Tray: "
     442      1 dict
     443      dup /Policies 2 dict dup /PageSize 2 put dup /MediaType 0 put put
     444          setpagedevice
     445          1 dict
     446      dup /MediaType (MP CASSETTE) put
     447      setpagedevice"
     448  *End
     449  *InputSlot Lower/Paper Cassette: "
     450      1 dict
     451      dup /Policies 2 dict dup /PageSize 2 put dup /MediaType 0 put put
     452          setpagedevice
     453          1 dict
     <<< 454      dup /MediaType (UPPER CASSETTE) put <<< !!! ERROR LINE !!!
     >>> 454      dup /InputSlot (UPPER CASSETTE) put >>>  !!! CORRECTED LINE !!!
     455      setpagedevice"
     456  *End

    Note: You have to correct all Lines beginning with "dup /MediaType (" for all InputSlots.
     

  • Set the following Default entries in your ppd-File to your desired Values:

  • Note: See the lines below *Default... for allowed Values.
    If you want a Default pagesize of A4, there must be a line beginning with
    *PageSize A4/A4 ... below the line beginning with *DefaultPageSize:
    e.g. to set DefaultPagesize to "A4",  edit the *DefaultPageSize line
    and other Default entries:
    *DefaultPageSize: A4
    *DefaultPageRegion: A4
    *DefaultImageableArea: A4
    *DefaultPaperDimension: A4
    *DefaultInputSlot: Lower
     
  • Setup your uiprint.txt file to use the corrected ppd file.

  • If you then call Page Setup from your application, these Default Values will appear
    in your dialog box and no further changes need to be made.
Hope this will help you.
Herbert Fukerider
 

Peter Krause wrote:

Hi,

We are migrating a client/server, forms4/reports2 application to Dev6
remaining as client/server.  Everything is running fine apart from one
thing. When we convert a report we have to reset the page setup i.e.
margins and layout, to get the whole document on the paper. We can get
it right in live previewer and print correctly. When we run it from the
application the margins and/or layout have been reset in the page
setup. If we change the page setup in the application and set the
margins to what we had in report builder the report prints correctly
from the application for each and every report thereafter. If the
"Reports Background Engine" is closed the application forgets the
settings and  starts printing incorrectly. Now, we can make the
application work by telling the users to set the margins and page
layout before they print there first report and to not close the
"Reports Background Engine" but this is undesirable. How can we set the
page layout and margins to default to the correct size?

Peter

* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!

-- 
"If Bill Gates had a dime for every time a Windows PC crashed--
 Oh, wait a minute... he does."
  Received on Thu Oct 07 1999 - 14:32:08 CEST

Original text of this message