3.Handling

Start of the program


After starting R2EdiViewer, the graphical user interface appears.


File-->Open or Drag and Drop opens an EDI file.

R2EdiViewer has the following, optional startup parameters:

R2EdiViewer EDI filename or EDI directory
-DE -EN -FR
-SV[¬]
-CC= -CE= -CI= -CS= -CV= -CX=
-FS=
-HS=
-LY=
-TD=
-UD=

-OV=
-SC
-MR=
-PR=
-OE=
-DI
-WL[¬]


The green parameters can also be changed via the graphical user interface,

but the startup parameters given here have the higher priority.

The optional negation character ¬ (Alt 170) cancels the effect of the parameter.

 

3.1. Standard startup parameters


3.1.1. R2EdiViewer EDI-filename

Displays the EDI file in the default language.
The full path, consisting of drive, directory, and name, is to be specified.

Examples:
R2EdiViewer c:\Programme\R2EdiViewer\R2EdiViewerExample.edi
c:\Programme\R2EdiViewer\R2EdiViewer.exe c:\Programme\R2EdiViewer\R2EdiViewerExample.edi
R2EdiViewer.exe "c:\Program Files (x86)\R2EdiViewer\R2EdiViewer*.e*"

If the file name contains the placeholders * or ?, the first 10 found files are displayed
in a selection window.

The selection is made by means of the digits 0 - 9, the ESC key, or mouse click.

3.1.2. R2EdiViewer EDI-filename -DE -EN -FR

The Language-parameter defines the preferred syntax directory language, which means with -EN,
you will get the EDI file with the English description. If there is no proper description of the
syntax directory, the default language is used. The default language depends on the message:

  • EDIFACT = English
  • IDOC = English
  • ODETTE = English
  • VDA = German

Possible Language parameters are:

  • -DE = German
  • -EN = English
  • -FR = French

    Example:
    R2EdiViewer R2EdiViewerExample.edi -EN

 

3.1.3. R2EdiViewer EDI-filename -SV¬

The ShortView-parameter ignores empty field contents which makes the display
much clearer and shorter.
: With this toggle button you can also switch between both views.

Examples:
R2EdiViewer R2EdiViewerExample.edi -SV
R2EdiViewer R2EdiViewerExample.edi -EN -SV
R2EdiViewer R2EdiViewerExample.edi -DE -SV¬

3.1.4. R2EdiViewer EDI-filename -CC= -CE= -CI= -CS= -CV= -CX=

With the CharacterEncoding-parameter you can overcontrol the automatic detection
of the charset for the following files:

  • CC= CSV-output file
  • CE = EDIFACT/ODETTE/ANSIX12-input file
  • CI = INHOUSE-input file
  • CS = SAPIDOC-input file
  • CV =VDA-input file
  • CX =XML-input file

You have to enter a charset/codepage supported from Java.
In the GUI "Settings/Encoding" you can choose a charset from a list.

Examples:
R2EdiViewer R2EdiViewerExample.edi -CS=windows-1252
R2EdiViewer R2EdiViewerExample.edi -CV=IBM852 -CI=UTF-8

3.1.5. R2EdiViewer EDI-filename -FS=

The FontSize-parameter defines the font size (in points) to display the EDI files.
Valid values are 8 to 24 points, the default value is 13 points.

Example:
R2EdiViewer R2EdiViewerExample.edi -FS=10

3.1.6. R2EdiViewer EDI-filename -HS=

The HighlightingSize-parameter defines the file size (in KB) of the TMP file. Syntax-highlighting
is working until the size of the TMP file. Syntax-highlighting has an effect on processing time and
memory requirements. It depends on the size of your EDI files and your system environment
when you should shut off syntax-highlighting.
The default value is 1024 KB (max. 99999 KB).
For a value of 0 KB syntax-highlighting is not available.
For a value of 99999 KB syntax-highlighting is always available.

Example:
R2EdiViewer R2EdiViewerExample.edi -HS=1500

 

3.1.7. R2EdiViewer EDI-filename -LY=

The Layout-parameter defines the subdirectory in the user/program directory in which
the layout files are located.
-LY= without directory specification prevents an alternative display processing. 
All default layout files are delivered in the subdirectories "layouts" and "layoutsEdifileChecker".

Example:
R2EdiViewer R2EdiViewerExample.edi -LY=layouts

3.1.8. R2EdiViewer EDI-filename -TD=

R2EdiViewer saves the TMP files in the Windows-User-Temp-Directory by default.
If the user doesn't have write access, R2EdiViewer will use the "private" directory.
With the TempDirectory-parameter you can define an alternative directory.

Example:
R2EdiViewer R2EdiViewerExample.edi -TD=C:\

3.1.9. R2EdiViewer EDI-filename -UD=

The "private" directory is used as the user directory. But if the "private" directory has no
write privileges, the directory is read from the environment variable "APPDATA"
and a R2EdiViewer subdirectory is created.

With the UserDirectory parameter an alternative directory can be specified.
If you only specified -UD (without directory), the directory is read again from the
environment variable "
APPDATA " and a R2EdiViewer subdirectory is created.

Examples:
R2EdiViewer R2EdiViewerExample.edi "-UD=Z:\my\data"
R2EdiViewer R2EdiViewerExample.edi -UD

 

3.2. Extended startup parameters


R2EdiViewer can also run in BATCH mode, i.e. it displays no files but the files
are stored in an output directory. R2EdiViewer runs in batch mode, as soon as
a directory is specified instead of a single file.
The OutputViewResultDirectory parameter -OV is then a required parameter.

3.2.1. R2EdiViewer EDI-directory -OV=

The OutputViewResultDirectory-parameter specifies the desired output directory
where R2EdiViewer stores the processed files.

Examples:
R2EdiViewer C:\directory_with_files "-OV=C:\OutputDir"
R2EdiViewer C:\directory_with_files  -SV "-OV=C:\OutputDir"

3.2.2. R2EdiViewer EDI-directory -SC

The ShowCSV-parameter shows only the CSV file based on a DATASEL file.
A possible existing report will be not executed.
This is useful if you want to use a CSV file in your own applications.

Example:
R2EdiViewer C:\directory_with_files -SC "-OV=C:\OutputDir"

3.2.3. R2EdiViewer EDI-directory -MR=

The MailReceiver-parameter is used to e-mail the PDF output of a report
to the comma-separated e-mail recipient.
The Mail-Server-Settings-Dialog allow you to define once the access to the mail server.

Examples:
R2EdiViewer C:\directory_with_files "-MR=harry@freenet.de"
R2EdiViewer C:\directory_with_files "-MR=harry@freenet.de,tom@freenet.de"

3.2.4. R2EdiViewer EDI-directory -PR=

The Printer-parameter is used to print the PDF output of a report to the
comma-separated printers. For each printout you have to define the Windows printer name
and the paper size in the format "printer-name#printer-size".
The following paper sizes are supported:
- iso-a0 until iso-a10

Examples:
R2EdiViewer C:\directory_with_files "-PR=HP LaserJet 4000 Series PCL6#iso-a4"
R2EdiViewer C:\directory_with_files "-PR=Canon 6800#iso-a3,Epson#iso-a4" 

 

3.2.5. R2EdiViewer EDI-directory -OE=

The OutputEdiFileDirectory-parameter specifies a directory where R2EdiViewer will copy
the EDI input files.

Example:
R2EdiViewer C:\directory_with_files "-OV=C:\OutputDir" "-OE=C:\BackupDir_EDI-files"

3.2.6. R2EdiViewer EDI-directory -DI

The DeleteInputEDIFile-parameter deletes the EDI input files after processing.

Example:
R2EdiViewer C:\directory_with_files -DI "-OV=C:\OutputDir" "-OE=C:\BackupDir_EDI-files"

3.2.7. R2EdiViewer EDI-directory -WL¬

The WriteLogFile-parameter writes a log file (R2EdiViewer0.html) into the user directory.
The user directory can be changed by the -UD parameter.

Example:
R2EdiViewer C:\DataDir -WL -DI "-OV=C:\OutputDir" "-OE=C:\BackupDir_with_EDI-files"
R2EdiViewer C:\DataDir -WL¬ -DI "-OV=C:\OutputDir" "-OE=C:\BackupDir_with_EDI-files"