Convert XLSX to Fixed Width Text Files Easily with 'Convert XLS' from Softinterface


Customers
 

Convert Open XML Excel Workbook to Fixed Width Text Files software, adobe customer

Adobe Systems Inc. Chooses 'Convert Doc'.  A custom site license has been signed by Adobe allowing them to install 'Convert Doc' on their servers.  They will be using it specifically to do Doc to HTML conversions. "We look forward to using your product and potentially working together in the future", Bob Free, Adobe

Convert XLSX to Fixed Width Text Files IBM Customer

Great customer service, prompt attention to our requirements and lightening speed development has been my experience with the staff at Softinterface Inc. Within a few hours of installing... Bruce King, IBM Canada, Toronto, Ontario


Click for the BBB Business Review of this Computers Hardware, Software & Services in Santa Monica CA


You need to convert from

XLSX  to Fixed Width Text (Unicode/ASCII/ANSI)

XLSM  to Fixed Width Text (Unicode/ASCII/ANSI)

XLS  to Fixed Width Text (Unicode/ASCII/ANSI)

Fixed Width Text File to XLS

Fixed Width Text File to XLSX

Fixed Width Text File to CSV

Fixed Width Text File to HTML/XML

Others  

Convert XLSX to Fixed Width Text Files With/Without MS Excel

(Batch Conversion of XLSX Files to/from Fixed Width Text, HTML, XML, XLS etc.)

English, Deutsch, Franįais, Italiano, 日本語, Brazilian Portuguese, Espaņol, Other Languages

'Convert XLS'  Used to convert XLSX to Fixed Width Text Files

Do you need software to convert XLSX to Fixed Width Text Files?  If so, we have the precise tool you need. 'Convert XLS' has a built in fixed width profile editor allowing you to specify:

  • Each columns width
  • [Optional] Character used to pad the data (when there is empty space)
  • [Optional] Left/right alignment
  • [Optional] Skip/remove specific columns from the output file
  • [Optional] Reorder the column position in the output file

The editor makes it easy to create numerous unique fixed width text profiles that can be recalled for use, modified or backed up at your command.  We store each profile in a simple text file for easy archiving, editing etc.

Converting the other way, from a fixed width text file to a XLSX, XLS, CSV, XLSX or html/xml file is also possible.

Note:Unicode and other text encodings (ASCII, ANSI, UTF8 etc.) are supported.

Furthermore, all our conversion tools allow you to automate the process by using the built in scheduler, command line (batch files, command prompt etc.), or for you programmers a COM/ActiveX interface. 

Download 'Convert XLS' a tool which can be used to convert Open XML Excel Workbook to Fixed Width Text Files

Office 2013 Compatible!

Convert XLSX to Fixed Width Text File with the User Interface

Directions for converting to/from a Open XML Excel Workbook (*.XLSX) file are given below:

Convert XLSX to Fixed Width Text Files with this profile editor. 

Fixed Width Profile Editor (click to enlarge)

Converting From XLSX file to a different file type

1. Select the Convert Files Action To Do.

2. Select the input file path. For a whole folder be certain to use the *.ext format.  For example if you want to convert the folder of xlsx files located in “C:\input folder\” then use “C:\input folder\*.xlsx”.

     Choose the Convert XLS conversion method.

     Specify the Original File Format.  In this case it is “[51] MS Open XML Excel Workbook (*.XLSX)”. You can also choose XLS and XLSM.

    Click on the Options button and then the “Converting to/from a Fixed Width Text File” tab and specify each column width, pad character and alignment for the output/target file.  Also, choose the sheets from the input file(s), ranges and whether to include values or 'formulas and values' to convert.

3.  Now specify the Target (output) file path. If you are doing a whole folder, then specify the whole folder using the “*.ext” format (for example "c:\output\*.txt").  Finally, specify the ‘Convert To File Format” target (output) file type, in this case it may be "[21] Text (ASCII), Fixed Width (*.TXT)" or for Unicode "[42] Text (Unicode), Fixed Width (*.TXT)".

4. Click the CONVERT button on the tool bar to start converting.

Converting To XLS file from a different file type

1.  Select the Convert Files Action To Do

2.  Select the Original (input) file path. For a whole folder be certain to use the *.ext format.  For example if you want to convert the folder of fixed width text files located in “C:\input folder\” then use “C:\input folder\*.txt".

    Select the Convert XLS conversion method, not the 'MS Excel' conversion method.

      Specify the Original (input) File Format.  If you are converting from a ‘Fixed Width Text File’, then click on the Options button then the “Converting to/from a Fixed Width Text File” tab and specify each column width.  If converting CSV files, click on the Options button and then the “CSV, TSV…” tab to choose what character you want to distinguish each piece of data within each record of the csv file. By default the comma is used.

3.  Now specify the Target (output) file path. If you are doing a whole folder, then specify the whole folder using the “*.ext” format (for example "C:\Output\*.XLS").  Finally, specify the ‘Convert To File Format” target (output) file type.  In this case it will be “[51] MS Open XML Excel Workbook (*.XLSX)”.

4. Click the CONVERT button on the tool bar to start converting. 

 

 

Command Line Examples: Conversion of XLSX To Fixed Width Text File

NOTE: 'Convert XLS' can be used simply with the graphical user interface (GUI).  If you've never heard of 'Command Line' before, we would recommend not reading this section and instead download and try the software.

This is just a sample from the documentation.   If you have trouble running these examples please see Helpful Hints For Creating a Command Line within the documentation.

The first example shows how to convert from an Excel file(s) to a fixed width text file. In this example each column width can be specified since it uses the ‘Convert XLS’ conversion method (/M2). We also show how you can specify a range of cells to convert.

The second example shows how to convert from an Excel file to a fixed width text file using a column auto-sizing feature.  This too requires the use of the ‘Convert XLS’ conversion method (/M2).

The last example shows how to use the ‘MS Excel’ conversion method (/M1) to convert from Excel to a fixed width text file.

All the examples below create an 8 bit text file. To create Unicode text files, simply swap out /C21 with /C42 in the examples. Furthermore, you can easily change the examples below to handle XLSX or XLSM files by changing all instances of “XLS” to “XLSX” or “XLSM” and changing all instances of “/F-4143” to “/F51” or “/F52” respectively. For XLSB files use the /M2 switch instead of /M1.

Each switch shown in blue is described in detail below the examples given. It is highly recommended you review each switches description before implementing the example, thereby giving you the full power of ‘Convert XLS’.

Example 1: XLS File to a Fixed Width Text File 

First specify your fixed width text file format using the Using the Fixed Width Text Profile Editor. You give a profile a name, in this case lets call it Profile142. To convert a sheet named “Apples” in a single Excel file, “C:\in\input.XLS” to a fixed width text file and applying the fixed width profile Profile142 the following syntax would be used:

    ConvertXLS.EXE /S"C:\in\input.XLS"  /T "C:\out\out.txt" /C21  /F-4143 /M2 /N"Apples^^^2^Profile142" /V

Next we show how to convert a whole folder (and subfolders /R) of XLS files (C:\in\*.XLS) to fixed width text files located in the same folder.  We’ll also show how to specify how to convert the 7th worksheet (/N) in each workbook.  The following syntax would be used for such a case:

    ConvertXLS.EXE /S"C:\in\*.XLS"  /T "C:\in\*.txt" /C21  /F-4143 /M2 /N"7^^^2^Profile142" /R  /V

 

The /G switch can be used to tell ‘Convert XLS’ to simply place each output file in the same folder as each input file. Therefore the command line above is equivalent to the command line below:

    ConvertXLS.EXE /S"C:\in\*.XLS"  /G /C21  /F-4143 /M2 /N"7^^^2^Profile142" /R  /V

 

You may simply want to convert a whole folder and its subfolders and place the output into a separate folder/drive. In which case use this syntax:

    ConvertXLS.EXE /S"C:\in\*.XLS"  /T "C:\Out\*.txt"  /C21 /F-4143  /M2 /N"7^^^2^Profile142" /R  /V

 

Building on the last example, say you want to specify a range, say A1:B10 within a sheet to convert. No problem, simply modify the /N switch as shown below:

    ConvertXLS.EXE /S"C:\in\*.XLS"  /T "C:\Out\*.txt"  /C21 /F-4143  /M2 /N"7^A1:B10^^2^Profile142" /R  /V

 

Specifying ranges can be very powerful. For example if you want to only extract column N you can use “N:N” for the range.

Example 2: XLS File to a Fixed Width Text File  (Autosize Columns) 

This is identical to the first example of Example 1, however this time we don’t specify each column width, rather, we allow ‘Convert XLS’ to automatically size the columns to fit all the data.  Notice the only change is in the /N switch.

    ConvertXLS.EXE /S"C:\in\input.XLS"  /T "C:\out\out.txt" /C21  /F-4143 /M2 /N"Apples^^^0" /V

 

Of course the example immediately above can be adapted to do whole folders and subfolders similar to what we did in Example 1.

Example 3: XLS File to a Fixed Width Text File  (Using ‘MS Excel’ Conversion Method) 

In this case we use the ‘MS Excel’ conversion method (/M1) to convert from a XLS file to a Fixed Width Text file.  Notice that when using the ‘MS Excel’ conversion method we can’t specify each column width and this will be a slower conversion.

    ConvertXLS.EXE /S"C:\in\input.XLS"  /T "C:\out\out.txt" /C21  /F-4143 /M1 /N"Apples^^" /V

·          The /S and /T switches above specify Source (input) and Target (output) path respectively and are both required when converting a single file.  It is always a good idea to use double quotes around the path especially if there are space characters within the path.

·          The /C21 switch specifies that the target (output) file to be a fixed width text file whereas the /F-4143 switch specifies the original (input file) is a XLS file.  See Excel Conversion File Type Constants in the documentation for all possible values for /C and /F.

·          The /M2 switch tells it to use the ‘Convert XLS’ conversion method which is exceptionally fast and allows for the specification of each columns width. /M1 switch is used to specify the ‘MS Excel’ conversion method which is a bit slower and requires MS Excel.

·          The /R switch tells it to search the original folder and its subfolders for files to convert.

·          /G switch can be used to tell ‘Convert XLS’ to place each output file in the same folder as each input file.

·          /N"{Sheet^Range^DelimChar^FixedWidth^Profile}"  Is used when converting to/from an Excel, CSV or fixed width text file. It specifies which Sheets to convert, what Range to convert and what delimitation/separation character to use, and the method to import export to a fixed width text file.  The syntax for this parameter is critical, the items are separated by a carrot character "^".  If you do not include Sheet, Range or DelimChar by leaving them blank they will default to all sheets, all used ranges and the comma delimitation character.  Be certain to include the double quotation character around this parameter.

 

Sheet:  Use "*" or "" for all sheets. You can use names of sheets, or the numeric index. If using numeric indices, you can specify ranges of sheets (i.e. "1,4,10-20" and "4-10,9" etc.).

Range: Not used in these examples. You could optionally specify a range; say if you only wanted to convert a portion of the input XLS file.  Use the same syntax as an Excel range (e.g. A1:B10, B:B).

DelimChar: is for specifying the ASCIIASCII_Chart value of the delimitation character used in a CSVCSV_File_Definition file. 44 for comma, 124 for Bar “|”, 9 for the tab etc.

FixedWidth:  ‘Convert XLS’ Conversion Method only (/M2).  Here you can specify how to import/export a fixed width text file.  The following numeric values are valid:

  0 = Auto size column widths to fit all data (Default)

  1 = Use same widths as specified in the Excel file

  2 = Use widths specified by the Profile.  Widths can be specified in the user interfaces Fixed Width Text Profile Editor.  

Profile = If you are specifying a fixed width text profile to use do it with this parameter. Use the Fixed Width Text Profile Editor to generate a profile. The full path to the txt file could be used. As an example if you want to specify to convert sheets called ‘Apples’ and ‘Oranges’, and use the range “A2:B20” and a fixed width text file profile named MyFixedWidth you would do so like this:

/N"Apples,Oranges^A2:B20^^2^MyFixedWidth"

·          The /V (for Verbose) switch is used to give instant feedback by having the program report the status of the conversion with a message box.  You can remove this once you have perfected your command line specification.  You can also (or instead of /V) create a Log file that will contain the results of the conversion by using the /L switch.

Note: It is highly encouraged that you use the Verbose (/V) switch initially to see what the status of your conversion is and to help you perfect your command line.  When in verbose mode the program will tell you what went wrong or right with your command line using message boxes.