issue-#48 fixes in HostPrinter

Post Reply
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

issue-#48 fixes in HostPrinter

Post by Josef Templ »

This issue is about two small fixes in HostPrinter.
See http://redmine.blackboxframework.org/issues/48.

1. The open command specified in the constant

Code: Select all

dialogCommand = "StdCmds.OpenToolDialog('HostPrinters.printing', '#Host:Print')";
opens the resource file using an undocumented form of OpenToolDialog.
The real problem, however, is that this has a nasty side effect in environments that
use a case sensitive file system or a magically mixed case sensitive/insensitive file system
such as a Novell file server. The effect is that the file is renamed into lower case form and then
case sensitive tools such as git or svn are confused because they don't find that file any longer.
By using the standard form all problems vanish.

Code: Select all

dialogCommand = "StdCmds.OpenToolDialog('Host/Rsrc/Printing', '#Host:Print')";
2. the page numbering needs to be adapted in order to support nested print jobs.
There are no changes observable by normal users, i.e. users that don't use
nested print jobs. A nested print job is required in special situations only, in particular if
in an office environment multiple users share a common printer and a large number of documents is printed.
Such a sequence must not be mixed with print output from other users and this is what nested print jobs
are intended for. They group a sequence of individual print jobs into a unit.
Nested print jobs are only used by application specific print commands, not by the
standard print commands included with BB. The page numbering within the individual
documents is not affected by the change.

I use both fixes successfully since many years in a locally modified version of HostPrinters.

For the diffs see http://redmine.blackboxframework.org/pr ... b68c01ef69.

- Josef
Post Reply