![]() Create a new string value, REG_SZ named Scripting file.To add this value, use regedit.exe to open the Registry Editor and add do the following: In this example below we have created a printer named Custom TIFF Printer which we want to have use the script file named MyTIFFScript.INI and is located at C:\Scripts\. The recommended approach is to create a custom named printer for your process. This can be important when you have multiple processes automating printing at the same time and don’t want them to interfere with each other. As each printer has their own section, each printer can also have its own separate script file. ![]() Using the Scripting file key is common when automating the printing process. Simply copy the sample script file from the installation folder, make any changes to the settings contained in the script file and rename it in the desired location. Under each printer subkey is another subkey called PrinterDriverData and it is under this key that the Image printer will look for a registry key named Scripting file and use its value to locate the script file.įor the TIFF Image Printer the default script file name is pntif12s.ini, for the Raster Image Printer it is pnras12s.ini and for the PDF Image Printer it is pnpdf12s.ini, but when using the Scripting file key in the registry you can supply a full path to a script file with the script file name of your choosing. Under this key, your Image Printer, as well as any custom-named copies you have made, will each have their own subkey listed here by printer name. Information about each printer is stored in the Windows registry, by printer name, in the following location: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\ If a script file can be located and opened, any settings in this file override the initial settings read from the profile selected in the Printing Preferences dialog. If no registry key is found, or if the path is empty or incorrect, then the folder specified by the current TEMP environment variable is used to search for a script file. It then looks for a registry key in the Windows registry to see if a path to a script file, or a script file name has been set there. When a file has been printed, the Image Printer first reads its initial settings from the profile selected in the printer’s Printing Preferences dialog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |