OmeLuuk
15th July 2002, 12:31
filter6.1 is the binary that makes the printer independent tmp file into a printer dependent output file that is being sent to the printer.

Sometimes this conversion is not what you want it to be (in current portingset 6.1c.06.04 when using matrix printers from Mannesmann, is solved in 6.1c.06.05).

You can compare the output file with the ${BSE}/lib/printinf/?/* file to see what code is inserted where. What printerdriver is actually used, can be seen in the argument list.

Use this alternative script to save the input/output files and the argument line used to call filter6.1:#!/bin/ksh
# script filter6.1 to catch the argument list,
# inputfile and outputfile from the filter6.1 binary.
# usage:
# $ mv ${BSE}/bin/filter6.1 ${BSE}/bin/filter6.1.org
# $ vi ${BSE}/bin/filter6.1 < copy this textfile
# $ chmod 755 ${BSE}/bin/filter6.1
#
# results:
# - for every run a line is written to ${BSE_TMP}/argfile.filter
# with runnumber and argument line used
# - for every run a file is written to ${BSE_TMP}/input###.filter
# containing the input file used (printer independent format)
# - for every run a file is written to ${BSE_TMP}/output###.filter
# containing the generated output file (printer dependent format)
# where the runnumber is used in the filenames (instead of ###)
#
# DO NOT FORGET to
# $ cp -p ${BSE}/bin/filter6.1.org ${BSE}/bin/filter6.1
# $ rm ${BSE_TMP}/*filter
# when done testing.

# get last runnum
runnum=`basename \`ls ${BSE_TMP}/output???.filter | tail -1\` | cut -c7-9`
# Format number with preceding zero's (illegal becomes 000)
runnum=`printf "%03d" ${runnum}`
# Raise runname with one
let runnum=runnum+1
# Format number with preceding zero's
runnum=`printf "%03d" ${runnum}`
echo ${runnum}: $* >> ${BSE_TMP}/argfile.filter
cp -p ${10} ${BSE_TMP}/input${runnum}.filter
filter6.1.org $*
cp -p ${12} ${BSE_TMP}/output${runnum}.filter
Happy testing.

günther
12th March 2004, 12:53
I would like to add additional data (files) to the spool file (additional shipment papers to a picking list). This is easy by adding spool.buf() calls at the end of the report.

There is only one problem: The spool file contains `printer independent´ stuff -- my additional files are already `printer formatted (pcl)´. And I see errors in log.filter6.1 like " skipped bad escape code: <ESC>-{37}".

So I would like to know about the "ESC CTRL-U #", "ESC CTRL-U !", "ESC CTRL-T !" sequences. Is there any documentation available?

OmeLuuk
2nd April 2004, 23:25
Read the Baan Windows Printing pdf file offered in solution 13743.

günther
5th April 2004, 08:23
The document is very good and documents lots of details on printing - not only for windows as the file name suggests.

Günther