 Getting start
 Advanced
 Export
Last update on
Jul. 17, 2006
|
| Export editor |
|
|
Exporter format overview: An exporter format controls FileCake how to export file list. An exporter format is composed by patterns and literal strings.
What is an exporter pattern? A pattern is a placeholder that will be replaced with certain value such as file name, size, etc. A pattern usually starts with '${' and ends with '}'. For example, ${FILE_NAME} will be replace with the file name, without the file path.
What is a literal string? A literal string is you typed directly in the editor, without any '$' in it. You can input any strings you like. If a '$' is needed, use '$$' instead.
There are several tabs in the main form.
Pattern editor tabs:
Header: Define the export file header. This will be used only one time. Group header: Define the header for each duplicate group. This will be used on each group only one time. Content: Define the export file content. This will be used on each file. Group footer: Define the footer for each duplicate group. This will be used on each group only one time. Footer: Define the export file footer. This will be used only one time. The exported file will usually look like,
Header
GroupHeader of group 1
Content of file 1
Content of file 2
Content of file 3
... other files
GroupFooter of group 1
GroupHeader of group 2
Content of file 4
Content of file 5
Content of file 6
... other files
GroupFooter of group 2
... other groups
Footer
All these five tabs have the same user interface.
The left side is the editor area. You can type directly in the edit box. There are two help area under the editor. The 'Example' area shows the example text that the program will generate. The sample file is the first file of the file list. So if the file list is empty or no file list, this area will show nothing. The 'Message' shows the context help message. The right side is the pattern selector. Each pattern is grouped in several category. Whenever you click a pattern, it will be inserted to the editor or pop up a format editor. If you hold key 'Ctrl' and click a pattern, the default value will be inserted without any editor pop up. Click button 'All patterns' will show all patterns in a single form. Click here to see all patterns list Options tab: set the exporter options here.
Quote the strings when it contains special letters: If it is selected, any strings such as file name, directory, et, contains any of the characters in the edit box "Special letters" will be quoted with a mark showed in the combox box "Quote letter". For example, if the specail letters are ",", a file named abc,def.txt will be exported as "abc,def.txt", but a file named abcdef.txt will be exported as abcdef.txt, without any quote. If you want to always quote the strings, put the double/single quotation marks in the editor explicitly. Start file index: Set the start value of the file index. For example, if you set the value to 5, the first file's index is 5, the second is 6, etc. This option only affect the '${FILE_INDEX}' pattern. Start group index: Set the start value of the group index. For example, if you set the value to 5, the first group's index is 5, the second is 6, etc. This option only affect the '${GROUP_INDEX}' pattern. Replace text: Replace all "Old text" with "New text" in the text. This is very useful when the destination file format must avoid certain characters. For example, in XML file, the ampersand character (&) and the left and right angle bracket (< and >)must not appear in their literal form. If they are needed elsewhere, they muse be escaped using the strings "&", "<" and ">" respectively. So in the Predefined XML exporter format, we set to replace "&" with "&", "<" with "<" and ">" with ">". You can open the XML format in the exporter editor to see that. Default Encoding: The encoding used to export the file. Usually you should select "Ansi" for most format, except the XML format. As you see, we set the XML format default encoding to "UTF-8" as the header is <?xml version="1.0" encoding="UTF-8"?>.
The Exporter Editor menus: 1, File: New: Clear current format. Open...: Open a exporter format file. Save: Save the exporter format file. Save As...: Save the exporter format file to another name. Usually the file is a XML file. Reopen: Open your recently used file quickly. You can also open the predefined file such as CVS, or XML. Export...: Export the file list using current exporter format. Close: Close the Exporter Editor.
2, View: Highlight: Check it to enable the syntax highlight in the editor. Example: Check it to show the Example help area. Message: Check it to show the Message help area. |
|