Salesforce

Setting Print Data Defaults (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Setting Print Data Defaults (Magic xpa 3.x)

Objective

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?

Solution

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:

  1. 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.

  2. Go to the relevant key in the registry.

  3. Park on the key name, select Export… from the context menu, and save the .reg file on the hard disk.

  4. 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'

  5. 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.

Reference
Attachment 
Attachment