Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 19155, Character File Printer

by Calin Lukas Email: Anonymous


Powerfull Win32 platform tool for text capture and/or text migration designed for users in mainframe, client/server, internet or even desktop environments.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 4.0  to 6.0 152 downloads
Copyright: All rights reserved


Size: 1,348,948 bytes
Updated on Fri, 01 Nov 2002 14:55:01 GMT
Originally uploaded on Fri, 01 Nov 2002 14:50:34 GMT
SHA1 Hash: 978F0CE3A49775362B930794F48BF57875852A73
MD5 Hash: 246CBF876F2E4E52933F4838242FD1A4

    Explore the files in this upload

Description
Character File Printer is a tool for text capture and/or text migration designed for users in mainframe, client/server, internet or even desktop environments. Character File Printer will be installed as printer on your system. Users can transfer print jobs from mainframes (e.g. AS/400) to PCs or Win32 servers with installed Character File Printer and directly migrate data from EBCDIC to ASCII. One can download data from Internet sites and convert data to text files. And very important: Character File Printer can be used as text capture or text migration server in enterprise environments. With Character File Printer you will be able to import data from applications, even if these were not designed to export data. Technical description: 1. Driver Settings Into the Settings section of the configuration file, one can use the following lines: - DebugTrace= - LastFile= - Unicode=TRUE or FALSE - Align=Left or Right - PromptDialog=TRUE or FALSE - AvgWidth= - AvgHeight= - AppendOutput=TRUE or FALSE - ForceTabstops=TRUE or FALSE - EstimateMode=TRUE or FALSE Into the UDT section of the configuration file (User Defined Table), you may define your own character translations. - DebugTrace This parameter is *ONLY* used in case you encounter printing problems while using our driver. In order for us to offer you the best technical support, we strongly suggest that you enter the following lines in the configuration file: [Settings] DebugTrace=15 ; Other options If DebugTrace parameter is 0, then no log file will be created (DEFAULT). If DebugTrace is greater than 0, the c:\Cfp.log file will be created, in which the log information will be written according to the valid DebugTrace values which are from 1 to 15. - LastFile It saves the name of the last file into which the export has been made (the output filename). ** Only for Microsoft WindowsNT4/2000/XP users (under Microsoft Windows9x/ME the macros remain as are) ** Starting with version 2.1 the output filename may contain %user% and %time% macros. These macros are replaced by their actual values before the output is sent to file. The macro %user% is replaced by the name of the owner of the print job (the user name). The macro %time% is replaced by the printing time in following format: MMDDYYYY-HHmmSS where: MM - month of the year (1-12) DD - day of month (1-31) YYYY - the year HH - the hour mm - the minute SS - the seconds Samples: c:\%user%\%time%.cfp is exapanded to c:\John\12242001-101023 if the user John prints the document on 24th December 2001, 10:10:23 - Unicode (available only for Microsoft WindowsNT4/2000/XP; under Microsoft Windows9x/ME this option is ignored) If TRUE then Unicode character set is used to create the output file. If FALSE then ASCII (8-bit) character set is used to create the output file. The default value is FALSE. In order to activate Unicode option, ensure that your Settings section in the configuration file reads like: [Settings] Unicode=TRUE ; Other options If one of the lines is missing, the default values will be taken into consideration. - Align If set to Right then the right-aligned overcomes the left-alignment of your text. Set it to Right if your document contains one or more tables with right-aligned columns. Otherwise, set it to Left. The default value is Left. - PromptDialog If TRUE then the 'choose output file' dialog is displayed every time a new document is printed. If FALSE the 'choose output file' dialog is not displayed. The output filename is read from the setup file. - AvgWidth It controls the average width of characters for the document that is printed. If less than or equal to 0 the value is ignored, and the average character width is obtained from Windows GDI. If set to a positive value, the average character width obtained from Windows is replaced by this value. Average character width controls the horizontal spacing in your documents, being used to compute the white spaces inserted between separate words on the same line of text. Larger values cause the words (columns of your document) to be closer one to another. For example, next line in ASCIIExp.ini file will force the average character width to 10 points. [Settings] AvgWidth=10 ; Other options Note that for a good output file, this value should be close to the dimension of the font used in your document. - AvgHeight It controls the average height of characters for the document that is printed. If less than or equal to 0 the value is ignored, and the average character height is obtained from Windows GDI. If set to a positive value, the average character height obtained from Windows is replaced by this value. Average character height controls the vertical spacing in your documents, being used to compute the empty lines inserted between text lines. Larger values cause the lines to be closer one to another. For example, next line in the configuration file will force the average character height to 10 points. [Settings] AvgHeight=10 ; Other options Note that for a good output file, this value should be close to the dimension of the font used in your document. - AppendOutput If TRUE the printed document's content will be appended to the output file. Otherwise, a new output file will be created every time a document is printed. Available in Character File Printer 2.1 or higher. - ForceTabstops If TRUE then the TAB stops (found for previous rows of your document) will prevail over the actual coordinate in the current row. This parameter may be useful in case of report-like documents. - EstimateMode If TRUE then the text extent will not be computed by the Windows API GetTextExtent function, but using the following formula: TextExtent = AverageFontWidth * StringLength ; In this way a monospaced font "behavior" is simulated. In order to control the font width, you may use AvgWidth parameter. Available in Character File Printer 2.1 or higher. - UDT Section In this section character translations may be defined by the user. The entries of this section have to be in the following format: old_value=new_value, where old_value is the decimal code of the character you want to be replaced and new_value is the new code (also decimal). For instance: [UDT] 35=88 95=32 47= The UDT section above defines following translations: * all occurences of '#' (35) charcter will be replaced by 'X' (88) character * all occurences of '_' (95) charcter will be replaced by blank character (32) * all occurences of '/' (47) charcter will be replaced by the non-printable charcter with code 0 Note that the UDT Section is valid only if the Unicode option in Settings section is set to FALSE. Tips for Output Enhancing Although the driver has been tested with a large number of applications, it is possible that (sometimes) the output produced in the text file looks "buggy". For example, the columns of your Microsoft Word (Excel) document may appear not vertically aligned. In order to overcome this inconvenience, it is recommendable to select a monospaced font (Courier or Fixedsys, for example). System Requirement Microsoft Windows 95/98/ME/NT4/2000/XP operating systems running on Intel hardware.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04