~Vamsi
10th October 2002, 23:36
Logos / Preprinted Forms in Baan

Complexity = High
This Project is Abandonware. Use at your own risk!
While a few people have been able to make it work and use it, many have questions that do not receive answers. So do not proceed any further unless you are brave.

Note that this will work only in the following environment:
Baan installed on Unix
HP or compatible printers (most laser printers are!)


Old Chinese proverb:
"Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed him for life."

So here are the various resources that help you catch your own fish :)
Peter Hamilton (http://www.hamil.org/pcl/)'s HP PCL Laser Overlay creation utility
This (http://www.hamil.org/pcl/ovl.zip) is the software that I used from the above site
Improved (http://www.shady.com/downloads/pcloverlay/) version of Peter Hamilton's software. No binaries - you will need a compiler
In trying to write this document, I hit upon a goldmine. Click here (http://www.hpdevelopersolutions.com), to join hpdevelopersolutions program as an affiliate member (for free ;-) Then go to developer kits, laserjets, printer languages, PCL 5 to download technical manuals

Steps to follow:
Download Peter Hamilton's program
Unzip contents into a single folder
Install a printer with following settings
Local Printer
Port = File
Manufacturer = HP
Printer = HP Laserjet III
Name = Overlay Printer
Set as Default = No
Create the letterhead / form in your favourite Windows program
Print to "Overlay Printer".
Save the output to "logo.prn" in the same directory that you unzipped the contents of Peter Hamilton's software
Open a MSDOS shell. Navigate to the directory where the program and logo.prn are located
execute the command "ovl logo.prn logo.ovl"
Open LOGO.OVL in a hex editor and traverse to the end of the file. Find the string "&f1s1x10x4X". In that string replace the last small 'x' with a capital 'X'. And the '4X' with NULs (ascii zero). So the final string should look like "&f1s1x10X<00><00>"
put LOGO.OVL on your Baan server, say in ${BSE}/lib/barcode/font folder
Modify the printer driver associated with your printers to include the following line
pfont14=\E&f0s1y2x1S,
The 1 in the 1y is the macro number, which is an option that one can specify when using ovl. The default is 1. If you choose to use a different number, make sure they are in sync
Do not forget the comma at the end of the line. This is very important
In the report that you need the logo in put the below code in the report.script
before.program:
long ret
ret = run.prog("/usr/bin/lp", "-d" & tolower$(spool.device) &
" -oraw -s ${BSE}/lib/barcode/font/LOGO.OVL", RP_WAIT)
Create a field on the report with print expression of " ", domain tcmcs.str1 and user font 14


If you are still with us at this point, a report you print to the printer should have a logo on it.

Known issues:
At this point this does not correctly get the linespacing. I am assuming that there are linespacing commands in the generated OVL file or that it resetting the existing values to some arbitrary value. Please update this thread on how to fix that.

If you find this too complex, then go for a forms package. There are plenty of them out there. I use Streamserve (http://www.streamserve.com). Other options like Jetform exist. The above process can be made easy by buying tools to create and generate the PCL overlay. Please use your good friend Google (http://www.google.com) for that.

lvdvelde
5th August 2003, 14:58
Hey Vamsi,

I have this all working perfectly - different overlays for the first page and every next page, including logo's, header and footer.
Except for the linespacing - the Baan report has only 42 lines.

Did you learn anything yet on how to fix that?

Greetings, Lex

lvdvelde
5th August 2003, 16:08
Hi again,

just found out how to get the right linespacing.

In the beginning of the generated OVL file, you will find the following escape sequence:

\E&l 4d 1e (HEX 1B 26 6C 34 64 31 45)

This says: 4 lines per inch, top margin of 1 line.

When you change that to - say - 7 lines per inch, it looks a lot more like a Baan report.

\E&l 4d 1e (HEX 1B 26 6C 37 64 31 45)

Have fun!

Lex

~Vamsi
5th August 2003, 17:18
Lex,

I am glad someone is using the solution. This is one thread that I contributed to Code & Utilities that never got any response :).

Could you post a sample pdf document for people to see what is possible without investing big dollars.

lvdvelde
6th August 2003, 21:28
dumdumdum...

the escape sequence for the correct linespacing should look like:

\E&l 7d 1E (HEX 1B 26 6C 37 64 31 45)

you can view the attached PDF for the result.
Header and footer including text and logos are the overlay macro, the printed data (customer address, items amounts etc.) is the Baan report data.

-- off the record - I had to construct the PDF in MS Word, because the overlay is printed as a file directly to any HP printer..... not to something like a PDF printer. But I swear our Baan output looks exactly the same! :-)

Lex

rupertb
7th August 2003, 11:43
Vamsi sometimes you've just got to modify those proverbs...

Old Chinese proverb:
"Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed him for life."



New Chinese proverb:
"Give a man a fish, and you feed him for a day.
Teach a man to fish, and you feed him for life -
Give him a rotten fish and he'll probably never bother
you again!"


Great solution - now I've got to find an application for those overlays...

Regards,
Rupert

baanbab
20th August 2003, 17:56
Hi

I tried the print a report based on vamsi's posting. It worked but I still had the line spacing problem after changing the escape sequence in OVL file.

Can you please post the OVL file which has printed with proper lince spacing.

Thanks,
Babu

~Vamsi
25th August 2003, 18:00
Babu,

Please post your OVL file.

sant123
28th October 2003, 06:18
Vamsi,

I went through the same steps described in your posting, still having no luck getting it to work. one thing I noticed was I got the the error when I tried to run the statement lp -dprintque -oraw -s ${BSE}/lib/barcode/font/logo.ovl from unix shell, I got the error, I wish I could connect to office and give you the right error message, I would try that tomorrow.

we have IBM unix AIX4.3.3. Baan4c4.

all I need is to print logo on the sales invoice, your complex idea looks really good ( since i don't have to mess around with the client PCS).

One other thing, there was no folder by name fonts underneath barcode folder, all the printer drive files are under $BSE/lib/printinf/h(for hp)/ folder.

Help.

~Vamsi
28th October 2003, 20:16
lp -dprintque -oraw -s ${BSE}/lib/barcode/font/logo.ovl

That command sends the overlay to the printer. If are going to run it at the command prompt you will have to expand the environment variable ${BSE}. Make sure that the lp command for you os is what you have quoted.

sant123
3rd November 2003, 23:46
Vamsi,

This is what I am trying to do. I would like to print invoice with the company logo on it and email it to the customers.

we have the Novell Groupwise email system, I have problem using mailx or sendmail command from AIX4.3.3 ( this is where Baan 4c4 is installed), so I gaveup on the email part. now I want atleast have the logo printed on the invoice and send the report to the Microsoft word ( Baan standard soln) and save the report on the client pc and manually e-mail it to the customer as the attachement.

I tried all the three types:

1. html format, it changes the page length, but I could use it.
2. Client side solution, ( create font and open it in BWprint ) the problem how would I email it ?? so this is not the solution.
3. your solution seems the good one, where I don't need to do anything on the client side, but if I send it to the word document does it still add the logo to the report.

Thanks for any help.

also the error I get when I do lp -d the error is as follows.

0782-040 Cannot open print file.
The file name is raw
The errno (error number) from the open system call is 2
Check the file name specified with your print request.
<EOT>

~Vamsi
4th November 2003, 00:27
You left me boggled. I am not sure I understand if you want to print the invoice or email it.

This solution works as follows:
- An overlay of the logo is created
- This is then transferred to the printer
- A standard Baan report is printed to this printer with code to activate the overlay. In effect printing the logo on the invoice.

You can then *mail* this invoice to the customer, but not *email* it.

What part of the above is causing a problem? If you want to talk about this solution send me an email and I will send you my phone number.

If you are creative you can use the Vanilla PDF solution I posted in this forum to generate PDF, overlay a logo on each page and email the resulting file. Sounds complex - perhaps it is.

For an out of box solution to add a logo to an invoice and then email it in a single step, look to www.nazdaq.co.il.

sant123
4th November 2003, 05:20
I tried to give as much details possible and made it quite complicated.

I understand your solution creates the print file with the overlay logo, but could not be used as the attachement that could be sent as an email.

I would try to look into the PDF creation tool.

I would still email you to get the overlay print problem solved. I didn't get the logo printed, I used the User Font 13 in my case since 14 is already used for some other report. couldn't get it to work.

Thanks.
Sant.

shah_bs
18th March 2004, 19:50
Hello people.

This is under BAAN IVc3 and HPUX: I found that, the command as suggested for the report script does not expand the ${BSE}. So, here is what I did:


before.program:
domain tcmcs.long p.ret.c
domain tcstr.128.c p.command.c

p.command.c = "-d"
& tolower$(spool.device)
& " -oraw -s "
& bse.dir$()
& "/lib/barcode/font/LOGO.OVL"

p.ret.c = run.prog(
"/usr/bin/lp",
p.command.c,
RP_WAIT)




And that worked.

~Vamsi
18th March 2004, 22:14
Shah could you please improve the documentation based on your experience. Either use this thread or start your own in Wiki.

shah_bs
19th March 2004, 01:24
Vamsi,

You are assuming I am the expert. All I did was follow the steps you outlined, with some tweaking to make things work.

I will try collect the whole process again into a single 'document', but you will have to be patient.

Regards

shah_bs
22nd March 2004, 18:51
The user (bless his soul) is not satisfied with the black-and-white logo.

So, what could be the incantations that need to be invoked to make it print on the color printer.

So far, simply directing the output to the HP Color Laserjet 4500 has not worked - the logo does not print at all, not even as black-and-white.

~Vamsi
22nd March 2004, 21:22
Send Lex a PM. His sample has color in it.

shah_bs
28th April 2004, 17:31
I started to put together a new version of the documentation, but after reviewing what I did and comparing with Vamsi's first post, I find that his version still works. The only differences are as follows:

a. I did NOT do the following step, as I found that the logo prints without doing this. [But does not seem to be a problem to do it anyways]:


Open LOGO.OVL in a hex editor and traverse to the end of the file. Find the string "&f1s1x10x4X". In that string replace the last small 'x' with a capital 'X'. And the '4X' with NULs (ascii zero). So the final string should look like "&f1s1x10X<00><00>"


b. Used bse.dir$() function instead of {$BSE} in the script.


So, I think I will avoid confounding the issue by 're-documenting'.

maximus
23rd July 2004, 18:39
Hi,

I did all the steps as listed in the post, and also tried to print the ovl from the command line, but with no luck,

I am attaching the ovl and the printer driver file. Need some advice guys.

Thanks & Regards
Max

~Vamsi
9th September 2004, 20:13
Max,

Are you still interested in solving this problem? I issued a print command as follows from my command line:
copy logo.ovl \\myprintserver\myprinter /b

and I got a one page printout with the number 4 at the top left corner of the page. Is that what the contents of the page are? Can you make the same appear when you print from within Baan?

maximus
9th September 2004, 20:16
Hey,

Thank you for the input, let me try it out and get back to with the results.

Regards
Max

crdeshpande
14th February 2005, 05:41
Hi vasmi

How to combine your Both solutions i.e Overlay printing and Vanilla PDF?

how to use HP drivers to divert printer O/P to xyz file?

phr024
23rd February 2005, 11:16
Very nice solution,

but on every second (and following) page, all text output by Baan is printed itallic... !?

So, it looks like the first logo pages somehow leaves the printer in an "italic mode".

Does anyone have an idea on how to reset this?

Kind regards,

Patrick Harder.

alibaba
24th March 2005, 12:59
sorry I dont understand behind step-add command line to local .inf/reg or add command lime to device queue in baan?
My server is UNIX but I want print to local windows printer...



Modify the printer driver associated with your printers to include the following line
pfont14=\E&f0s1y2x1S,

~Vamsi
24th March 2005, 17:33
Device : MYPRINT
Device Type : Direct
Driver : hp_lj4
Description : HP4
System Queue : /usr/bin/lp -dmyprint -s -c -n%d %s -oBSDh
Paper Type : LETTER Letter Format
Page Length : 0
Left Margin : 0
Path :
Change allowed :
4GL Program :
Argument :
Form Feed :
Locale : ISO-8859-1

You should have a printer defined as above in Baan. This is a direct printer and can be only be created with Baan running on Unix. Now the hp_lj4 is a driver that resides on the Baan server. You will have to make a change to it or a copy of it - that is what is described.

alibaba
25th March 2005, 06:15
thank you very much Vamsi , I understand now.
But I want print report to windows printer via local BWPrint,this solution can do it ?

~Vamsi
25th March 2005, 17:10
No. If you need logos using BWPrint, look at this solution:
http://www.baanboard.com/baanboard/showthread.php?t=1194

alibaba
26th March 2005, 05:15
I was Printed it successful!

muzzle
22nd April 2005, 16:31
Hi,
I would like to print packing slips with the company logo on it but with no luck.
We have AIX4.3 BaanIVc4
I tried to run the statement "lp -dprintque -oraw -s ${BSE}/local/ABBSA.OVL" from unix shell and I got this error message :

<root@obelix:/> lp -dx61 -oraw -s /baanIV/bse/local/ABBSA.OVL
<root@obelix:/>
Message from root on obelix (UNKNOWN) [Fri Apr 22 13:22:04 BST 2005] ...
Message from queueing system:
=====> MESSAGE FROM PRINT JOB 363765 (/baanIV/bse/local/ABBSA.OVL) <=====
0782-040 Cannot open print file.
The file name is raw
The errno (error number) from the open system call is 2
Check the file name specified with your print request.
<EOT>

What's and how to solve this problem?

Thanks in anticipation
Muzzle

günther
25th April 2005, 16:18
AIX is sligthly different to UNIX ;-). I haven't been using it for over 8 years now. So I checked the internet and I found at http://dbforums.com/showthread.php?p=3710798#post3710798:

> lp -o lan -c -dcrud -s /etc/motd
> Same problem -o commands not defined for AIX virtual printer.
> Use sysV if you want to use.
> Can change /usr/bin/lp to a shell script and have it call enq.

Günther

teddybear
4th November 2005, 09:40
Although spend some time, I manage to print the logo. Thanks to those who contribute to this thread, especially Vamsi.

Just like phr024, I have this "side effect" after printing the logo. I notice all the text after the printing of the logo are printed in italic.

Suggestion to this problem are approciate.

mark_h
8th November 2005, 19:11
Just saw this - I did not have this problem. I do know I made changes to the ovl file so it ended like with an escape sequence. See attached. Not sure if this is your problem, but probably just need to reset the printer.

gprince
18th November 2005, 23:37
Hello everyone,
I hope you can help me out. I am having a problem with my AP checks being double and trippled spaced when merged with the overlay.

Thanks for your help!

mark_h
21st November 2005, 14:06
You probably just need to play with some of the pre/post escape sequences for your printers. I did not have the problem you described, but I did make some changes to get it to come out okay.

gprince
21st November 2005, 15:17
Hello Mark,

Thanks for information. Right after I posted the question, we were able to adjust some pre escape sequences and got it to work.

Thanks again for you suggestion!
Garry

awassif
24th February 2006, 20:25
Although spend some time, I manage to print the logo. Thanks to those who contribute to this thread, especially Vamsi.

Just like phr024, I have this "side effect" after printing the logo. I notice all the text after the printing of the logo are printed in italic.

Suggestion to this problem are approciate.
Many thanks for all of you who contributed to this issue.
All worked OK with the exception of the font of Baan reports. All came out as Italic. Teddybear reported the same problem on Nov 05. Anyone was able to solve the issue.
Thanks

mark_h
24th February 2006, 21:34
Have you tried playing with the pre/post escape sequences as I suggested above? Not sure if that is actually your problem but it did takes some changes to get it to work for me.

awassif
24th February 2006, 22:32
Hello Mark,
The "post" escape sequence matches mine. But the "pre" is different. I spent a few hours trying to get to work but unfortunately all my trials did not get me a reasonable result.
Any suggestions as of what part exactly changes the style from Italic to Upright on the "post" escape sequence.

Thanks again for your reply,
- Ameen

mark_h
24th February 2006, 22:37
Try adding Esc(s0S as one of the end escape sequences. This sets it back to upright. Got this escape sequence from an old laser jet manual.

awassif
24th February 2006, 23:02
Excellent, it worked!
I added Esc(s0S to pfont14 in my printinf file.
Changed the line from:
pfont14=\E&f0s1y2x1S,
to
pfont14=\E&f0s1y2x1S\E(s0S,
Result: upright font on the overlay form.

Thanks again for your time Mark!
- Ameen

phr024
2nd May 2006, 09:56
Thank's this solution works fine with me....

Thank's a lot Awassif!!

Kind regards,

Patrick Harder.

rjohmit
12th May 2006, 18:51
Little late to the game here but I'm attempting to set this up.

When I try to print a report using the new device, I get an error message. It has "ttadv31809" in the title bar. The error text is:

/usr/bin/lp -dmyprint -s -c -n1 /baan/bse/tmp/tmp056401200 -oBSDh


(Error 1)


Anyone have any ideas?

mark_h
14th May 2006, 17:15
Are you trying to print the overlay or the baan report itself? Because the lp command inside the report should be trying to print the overlay so I would not expect a /baan/bse/tmp directory. If this is the command in the report then replace the file to be printed with the full path to the ovl file.

rjohmit
15th May 2006, 16:55
This error occurs when I try to print the report (including the code to print the overlay) from the Baan session.

Despite receiving this error, it sometimes prints the report including the logo. However, the logo is very pixelated and doesn't look good at all.

I'll keep working on it. Thanks!

sigmabaani
21st June 2006, 10:54
Hi experts,

I found the solution for printing a Logo. It works with my generated OVL-file. But the Logo is centered in the page, when its printed. Now i need to find a way how to set the logo an arbitrary position.
Changes in the reportfield and its position have no results. Is the problem in the OVL-file? I have printed the bitmap on the Overlay Printer with Microsoft Paint.
Who has a solution?

Greetings

mark_h
21st June 2006, 14:21
Check your overlay file I believe that is where the problem is. At the start of the file are some escape sequences break them down to see if any are causing the problem. I never really had this problem, but I did play with a few of the escape sequences at the start to make it look better.

~Vamsi
21st June 2006, 16:14
Try creating your OVL file from a page based software, for eg. Microsoft Word.

bartman
20th October 2006, 14:01
Hi friends,
yet another problem with our company logo. I've created the logo.prn from an PDF File, converted to ovl with described tool and hex modified the last row in the ovl. My outgoing A4-PDF file contains of a company logo on the top and some text on the footer of the page. When launching report, the logo with footer is printed fine, but the BaaN report data ist just printed on the next site (without logo) and the caracters are unreadable.
Anyone some ideas?

norwim
10th January 2007, 17:10
Hi Vamsi,

this was very helpfull indeed.
I fiddled around with the layout of a report the whole day, but to add the logo didn't even take an hour.
One important hint should be added though:
" ... tolower$(spool.device) ... " doesn't work, if the printer in unix has a different name than the device in Baan. As we use different "Baan-Printers" for example to adress different paper trays of one printer in unix, this is the case here.
But of course it is quite trivial to fetch the system name of the printer from ttaad300.
Thanks to all other contributors too of course.

regards

Norbert

tM2006
22nd September 2007, 15:23
for vamsi solution
can we use in window server 2003
if not please advise us which kind of method we can use in order to print the logo on the report

thanks

~Vamsi
1st October 2007, 06:21
for vamsi solution
can we use in window server 2003
if not please advise us which kind of method we can use in order to print the logo on the report

thanks

You cannot use this solution on servers that are not Unix based. Alternatives abound. Please use search. Try logo.

kazasaritha
23rd November 2007, 12:45
Dear Mr.Vamsi,

I Did the entire process. But, could not succeed. I doubt that printer driver editing is some thing wrong. Could you please let me know what is the file excactly i should edit to put " pfont14=\E&f0s1y2x1S, ".

Thanks and Regards,

Saritha

mark_h
24th November 2007, 01:35
It goes in the print driver file for the printer. For example if you are printing on a HP 5 laser Jet - the printer probably has a print driver like HP_LJ5. You are printing on a UNIX platform? This only works for the UNIX platform. Anyway - you then locate the print driver under $BSE/lib/printinf/h - I think, not at work to check. Then you just vi the file, locate pfont14 and put it there.

kazasaritha
26th November 2007, 06:03
Even now after doing the said changes also I am not getting. Attaching the .ovl file.

Regards,

Saritha

rduncan10
22nd April 2008, 19:34
Hi,

I've been testing this method with some success, but I have a few issues.

First, I cannot get the line spacing to work, despite changing the PCL commands in the OVL file. I notice the line spacing starts to double wherever I put the empty User14 text field on the report. I'm not sure if this is the same problem everyone else had (nobody really describes the line spacing issue).

Second, a thick gray line appears down the right side of the overlay. I originally created the overlay by scanning the letterhead to PDF and printing from that. I then tried recreating it from scratch in Word. Both versions have the gray line.

I am using Linux and CUPS for printing (the printers are setup as raw LPD Printers). I don't know if this would affect the way this works or if anyone else has got this to work with CUPs.

I attach my overlay.

Thanks for any help,
Rob

rivern
10th July 2008, 10:03
Hi guy:
I'm not successful. if anyone make a PPT demo for this topic.It's very useful.
Best Regards
Rivern

GROENZ
29th July 2010, 11:02
Hi, I am in the process of following this method to get our company logo to print on the invoice supplied by Vamsi http://www.baanboard.com/baanboard/showthread.php?t=7119

However I am stuck where I need to modify the printer driver. Can anyone please tell me how to do this?

Also the script, I am not sure where to add this in as I am not really 100% sure how to write scripts. Here is what our script looks like at the moment:

|*** program *****************************************************************

before.program:
tcmcs.dll0095.read.parm("tdpcg000")
tcmcs.dll0095.read.parm("tdpur000")
itccom0000.get.multi.currency.data(get.compnr())
date = utc.num()
g.project = ""
array.length = tdpur.dll0022.array.length()
rdi.domain("tcdisc", disc.difo, g.dummy.string,
g.dummy.string, g.dummy.long,
g.dummy.string, g.dummy.long)
rdi.domain("tcpric", pric.difo, g.dummy.string,
g.dummy.string, g.dummy.long,
g.dummy.string, g.dummy.long)
lattr.textexpand = TRUE
print.header.text = TRUE

|*** fields ******************************************************************

Would appreciate it if anyone can please help me to add the script in vamsi's post to our script

And lastly how to create a field on the report?

Thank you very much in advance

mark_h
29th July 2010, 14:04
First note that this will only work on BaaN on UNIX. You profile says your OS is vista.
If you are not familiar with coding scripts I recommend using a tool fromhttp://www.nazdaq.co.il.. I have not used the tool myself, but heard it is easy to use.

The print driver on our UNIX systems is $BSE/lib/printinf. You would need to look at your device to see what the name is. Then there are sub directories to find the actual print driver file. For example h would have our hp drivers(all we use). Follow first ~vamsi thread through one step at a time. I still do not think this is something a novice should try. It will walk you through creating the overlay - but be prepared to play with the settings and using the hex editor to change. It will show you the font to setup in the print driver and how to set-it up. It will also explain how to get the overlay(logo) to appear on the report when it prints.

GROENZ
30th July 2010, 07:49
Hi Mark,

Thank you for your reply. We are running LN FP3 on a Linux server. My OS is vista. Will have a crack at it again and see how I go.

pbenven
21st March 2011, 20:35
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:

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)

pbenven
12th May 2011, 17:45
Changed the code around to satisfy the possibility of having multiple overlays depending on company number:

|*** 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 ************

pbenven
18th May 2011, 22:23
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.

mark_h
19th May 2011, 22:33
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.