Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #61  
Old 21st March 2011, 21:35
pbenven pbenven is offline
Junior Member
 
Join Date: May 2007
Location: Quebec
Posts: 21
pbenven is on a distinguished road
Baan: mk 8.5 and 8.1 - DB: BISAM - OS: HP-UX
This is a bit of an old one, but I would like to express my thanks to all who posted their tips. Here are a couple of my own:

- Printing multi-page reports showed an incorrect offset on page length. At the top of the OVL file, I changed the margin value to 2 - so "4d2E" instead of "4d1E".
- My Canon IR's did not require me to modify the end of the OVL files.
- I had to create new MK printers and new UNIX queues so that the 2 would match (thanks norwim).
- I learned (the hard way) to flush the PCL portion of the printer's hard disk in between tests. Good way to lose your mind, that.
- Since I am using MK, "run.prog" and subsequently "RP_WAIT" are not available, so I used "shell" instead:

Code:
        domain  tcmcs.long      p.ret.c
        domain  tcmcs.str128    p.command.c


        p.command.c = "-d"
        & (spool.device)
        & " -oraw -s "
        & "/opt/mk/bse6.0/lib/barcode/hp_barcode/QCCPOv2.OVL"

        p.ret.c = shell(
                        "/usr/bin/lp "
                        & p.command.c,
                        0)
Reply With Quote
Sponsored Links
  #62  
Old 12th May 2011, 18:45
pbenven pbenven is offline
Junior Member
 
Join Date: May 2007
Location: Quebec
Posts: 21
pbenven is on a distinguished road
Baan: mk 8.5 and 8.1 - DB: BISAM - OS: HP-UX
Changed the code around to satisfy the possibility of having multiple overlays depending on company number:

Code:
|*** Begin Print Overlay *************

        domain  tcmcs.long      p.ret.c
        domain  tcmcs.str128    p.command.c
        domain  tcmcs.str128    ovlfile
        domain  tcmcs.str3      company

        company = str$(get.compnr())

        ovlfile = "/opt/mk/bse6.0/lib/ovl/invoice"
                & company
                & ".ovl"

        p.command.c = "-d"
                & (spool.device)
                & " -oraw -s "
                & ovlfile

        p.ret.c = shell(
                "/usr/bin/lp "
                & p.command.c,
                0)

|*** End Print Overlay ************
Reply With Quote
  #63  
Old 18th May 2011, 23:23
pbenven pbenven is offline
Junior Member
 
Join Date: May 2007
Location: Quebec
Posts: 21
pbenven is on a distinguished road
Baan: mk 8.5 and 8.1 - DB: BISAM - OS: HP-UX
One interesting problem...

Suppliers are tied to specific languages, 2 and 4 in my case. Language 2 suppliers get their reports in language 2, language 4 suppliers in language 4 (duh).

I have modified both the 2 and 4 Purchase Order Reports with the code in my previous posts and everything seems to be working fine - except...

If I send a batch of Purchase Orders to be printed, and the batch contains orders for both language 2 and 4 based suppliers, only the language 2's will print with overlays.

Last edited by pbenven : 18th May 2011 at 23:38.
Reply With Quote
  #64  
Old 19th May 2011, 23:33
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,936
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Been a long time since I looked at this and I never used multiple languages. Is it possible that each time the language changes you need to resend the overlay? I am not sure how the languages interact with the printer and I wonder if switch languages causes something to happen to the overlay in memory. Not really sure about this and just speculating.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Forms morpheus Tools Development 9 23rd January 2003 14:36


All times are GMT +2. The time now is 22:38.


©2001-2017 - Baanboard.com - Baanforums.com