AVR 8.2 and AVR 9.0 no longer support OLE Print files (print files created by adbpfm.exe).
The process to convert those OLE Print files is performed by the .NET Print file Designer (or the Upgrade Assistant when projects were written for the "Classic" AVR).
The .NET Print File Designer (which is now part of the DataGate Studio), allows the opening of OLE Print Files. In the process of loading the OLE Print files. the controls are automatically converted to the new .Net print controls. The conversion will not be 100% effective when third party controls were used in the OLE Printfiles.
The output window will report the conversion process, possibly issuing errors if the conversion is not complete (and the user will need to manually re-add the equivalent control).
Note: Applications written for Classic and/or AVR prior to 8.2/9.0 will fail at runtime if the Print files are not converted.
As an alternative to convert print files from OLE to .NET, a utility is provided to convert files in batch. This utility is called OlePrintfileToNetPrintfile.exe, and can be found in C:\Program Files\Common Files\ASNA Shared\Client\Printing 9.0 .
This utility does not have a G.U.I, so it can only be launched from the command line. An MSDOS batch file is recommended for multiple printfile file conversions.
The following are the command line required and optional parameters:
Required options:
/src - Path of the OLE Print File.
/rdb - Database name where /src is located.
Additional options:
/dest - Path where the converted file will be placed.
Default is the value of /src.
/wdb - Database name where /dest will be placed.
Default is the value of /rdb.
/bak - Path to a library where original file will be placed.
Library is created if it does not exist.
If this switch is used, the value of /dest is ignored.
/wlocal - Path of a file where the converted Ole Print file will be placed.
If this switch is used, a file is not created in the database.
/lsdb - List available database names.
Note : If an object exists at /dest in /wdb, the converter will overwrite it.
The converter has the capability of accepting a file for the value of /rdb and/or /wdb.
This file should contain
a serialized Source Profile (used internally for now).
When calling from batch program, it is recommended to re-direct the output to a
file to make it easier to review the batch process result.
Something like the following is recommended.
Assuming the current command prompt directory is set to “C:\Program Files\Common Files\ASNA Shared\Client\Printing 9.0”
Assuming the batch file is called ConvertMyOlePrintfiles.bat, the contents would look like the following:
To start the batch process, type ConvertMyOlePrintfiles.bat from the command line.
After the batch process runs, the user may edit the new ASCII file “result.txt
” to get details about the conversion process.