r1 - 04 Apr 2006 - 19:38:53 - PatrickVanderVekenYou are here: Baanboard.com Wiki >  Infodevel Web > ASCIIPrintInfDriver

Introduction

I welcome any feedback / improvements to this. It has only been tested to a limited extent.

Instructions for Baan IV (no idea whether the same applies to other Baan versions)

1. Rename the included "ascii.txt" file attachment to "ascii" and place in ${BSE}/lib/printinf/a

2. Create one or more paper types for it, with maximum paper width (e.g. 999) and the paper height you want.

3. Create a script/program to process the resulting output.

4. Create a Baan device ("Direct" device type) using the ascii printer driver and paper type you created. Set the Device Queue to execute the script/program from step 4. (Make sure to specify %s as an argument for the output file, and optionally %d for # of copies if it will be supported)

ALERT! Currently, the output will have ^M (CR) at the end of each line. I do not know how to configure the printinf file to eliminate those. Therefore:

5. Modify the script/program from step 3 to strip the ^M. This is desirable for UNIX, but may not be for Windows server.

Advantages vs. "Rewrite file"

1. Specify multiple copies when printing (must be supported by processing script/program)

2. Specify page range (e.g. only output pages 1 - 4 to file)

3. Change paper type, allowing convenient change of page height with a single device

Disadvantages

1. Inability of user to specify the filepath of the output in the Printer Dialog window.

Downloads

Requirements

Comments

 
Show attachmentsHide attachments
Topic attachments
I Attachment Action Size Date Who Comment
txttxt ascii.txt manage 2.7 K 04 Apr 2006 - 19:37 PatrickVanderVeken  
Edit | WYSIWYG | Attach | Printable | PDF | Raw View | Backlinks: Web, All Webs | History: r1 | More topic actions





 
Baanboard Wiki
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Baanboard.com Wiki? Send feedback