Operating System - HP-UX
1833499 Members
2618 Online
110052 Solutions
New Discussion

Printing postscript throug HP9050 using Oracle applications 11.5.10

 
SOLVED
Go to solution
sarma
Advisor

Printing postscript throug HP9050 using Oracle applications 11.5.10

HI
we installed the hp-9050 series printer. We are not able to print the PostScript output to the printer. Any suggestions on configuring it is appreciated
thanks
6 REPLIES 6
TwoProc
Honored Contributor

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

You need to pass the flag "-ops" (for postscript) on the command line that prints the document (for definded executable you'll find an "lp" command. Or, try "-oraw" instead. If you can make the "-ops" command work, you're a bit better off b/c number of copies still works, with the "-oraw" flag - it won't.

As an Oracle Apps Sysadmin - navigate to "Install", "Printer","Driver". Search for any of the drivers that start with "HP" (HPLJPORTRAIT for example), look in the "Arguments" box and there you'll see the actual "lp" command that you need to edit.

Now, rather than editing your canned driver definition - you really need to make a new driver, new style to go along with it, and tie it together to the Printer "Types" form. I won't go into all that b/c it can be pretty lengthy (even though its not that hard) and its all there in your sysadmin manual.

However, I always try and recommend that the developers develop for text mode (yes, you can pick fonts) - Oracle has a document on developing in character mode. The reasons are: files are MUCH smaller and faster, they never require memory upgrades on the older Laserjets to make them work, and the preview mode works fine from within the forms.

If you/they really persist in using postscript for the reports, you'll have to install a ghostscript viewer for the preview mode to work automatically (like just click on the button), and while we've figured that one out, we never found great documentataion on that process, so that will be another hurdle for you.

I prefer text mode. Programmers prefer postscript b/c it's easier to make nicer looking output.
We are the people our parents warned us about --Jimmy Buffett
sarma
Advisor

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

Hi
thanks for the feeback. The reason we had to use was to print a bank micr # and some special formatting. It will be a dedicated check printer.

Now, when I set up the hp9050 q, I already had hplj4si setup provided at the time of install of 11.5.10, so I forced it to go to that set up

On the PORTRAITHPLJ4SI :
I had the following
Command :

lp -c -d$PROFILES$.PRINTER -n$PROFILES$.CONC_COPIES -t"$PROFILES$.TITLE" $PROFILES$.FILENAME

Initialization :
/eE/e&l0o2a7C/e(s0t0p11H/e&a5L
Reset
/eE

When I tried printing using
lp -d infosys1p (our Q) -ops , it did print something but not the same way it printed on hp laserjet 4000 series where it printed the right way

Any feedback is appreciated

Thanks
Bill Hassell
Honored Contributor

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

The escape sequences in the initialization string are PCL, not Postscript. If the printer is truly being sent Postscript code then the PCL sequences won't have much of an effect. It should be noted that PCL codes come in different versions and due to the wide differences in technology (dots per inch, font design, etc), older codes may not be upward compatible. Or the chosen codes were not the best choices for portability. You'll need to identify the language being used, then the tasks in the PCL codes, and look in a good PCL manual. The 4Si and the 9050 are generations apart.


Bill Hassell, sysadmin
TwoProc
Honored Contributor

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

Try the "-oraw" option. Of course this will, as Bill says, completely ignore the initialization strings.

Also, I never install with drivers for Laserjet 4si, 3si, 4000, etc. in Oracle. I always use plain ol' "HP Laserjet" as the model chosen from the Oracle Driver. This gives me the greatest consistency across the board. The Oracle drivers don't address higher features of newer (heck even older) printers anyway, so just choose Laserjet and the inconsistencies that you've been experiencing will probably go away. Up until I was shown that by an experienced Oracle Consultant years back, I was fighting the same problem between all of my Laser printers - no consistency.
We are the people our parents warned us about --Jimmy Buffett
Eric Antunes
Honored Contributor
Solution

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

Hi Sarma,

If you had those reports printing ok on the HP4000 printers, all you have to do to print on HP9000 series is:

1 - install the HP9000 printer in Unix (check /etc/lp/interface/model.orig/ for customize options like banner, etc...);

2 - Just use the Printer Style and Drivers you were using for the HP4000 (see attachments). As you can see I'm using the postscript Style and Driver under the PCL Type (HPLJ4SI)

3 - Check if you have the psport (if you want portrait) or another *.prt file you refer above in $FND_TOP/reports

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
sarma
Advisor

Re: Printing postscript throug HP9050 using Oracle applications 11.5.10

Resolved it by regenerating the Q's