Setting Print Data Defaults (Magic xpa 4.x)
When working with Print Data for the first time, you need to fill in the required details. These details are then saved for the next use.
It can be useful to create user default settings. How do you do this?
The last usage values are saved in the registry.
HKEY_CURRENT_USER\Software\MSE\Magic xpa\2.2\PrintDataSettings
(The path changes according to the specific version used.)
To create the Print Data defaults, follow these steps:
-
Create a Print Data file from the application in the usual way. Enter the required file name and location, so that the registry will change to these values.
-
Go to the relevant key in the registry.
-
Park on the key name, select Export… from the context menu, and save the .reg file on the hard disk.
-
To use the .reg file that is created each time you run a program where these definitions are needed, it is possible to use the Invoke OS command (or Exit command in eDeveloper V9) with this expression: 'cmd /c reg import PATH\FILE.REG'
-
Then, you should set the show attribute for the operation to Hide. This can be put, for example, in the Task Prefix, and this way it will set the values to the desired ones whenever the task runs.