You will need
- - administration skills "1C:Enterprise".
Run the program "1C:Enterprise", to do external processing, in a mode "Configurator". Add in handling props "object Reference" with the value type of the configuration object to which you connect an external print form. To make it easier to debug your code, make a screen form, insert an input Field, associate it with the requisite "object Reference".
Create own layout in processing, you can also use the overall layout configuration, or copy ready. In the "Shared object module" processing, create a mandatory option "Print/Export", which will be called via a standard mechanism dialog box, select print forms. This function returns the props of type table document.
Use this sample code for the functions available on the website http://www.cfdt.ru/?globalNav=1§ion=5&page=4. Create two functions, similar to those used in the development of the model operations. For example, the function of forming a value structure that is used to automate entering the data into layout table in the document. Include perform all necessary queries and resolving settlement problems when creating external processing.
Make a function that will generate a tabular document and populate the layout information of the structure "the print Settings". Please note that any report that exists in your configuration, you can convert in the external processing.
You can also compare and combine existing processing and reports. Starting external processing, you can perform in the program "1C:Enterprise" platform and opening it like a normal file stored on the hard disk of the computer. It will work similar to that which is part of the applied solution.
Advice 2: How to open external processing 1C
External processing are not part of the application solutions and stored in separate files that have the extension .epf. The main advantage of external treatments is the possibility of their use in a variety of application solutions without changing the structure of the solutions.
External treatment can be created in the Configurator. To do this, click "File" upper service panel of the application window and select "New". Use the option "External processing" in the list of the opened window "Select document type" and confirm your selection by pressing the OK button.
Run the newly created external processing to perform, opening it as a standard file that is stored on the hard disk of the computer. Such processing will be to work as a applied solution. to do this, open the main menu and select the item "File". Select the subcommand "Open" and specify the full path to the saved file external processing with the extension .epf in the dialog box Open. Confirm the selected actions by clicking the Open button.
Note the ability to convert any existing configuration, the processing in the external. You can also add external treatments or reports the structure of the application solutions as a new object. To do this, run the Configurator and enter the command "Search in data". Select the desired action from the submenu:- replace with external handling;- to insert external processing;- save as an external treatment;- to compare, to combine with external treatment.
Note that in version 8.2 the program can't work with files saved on the computer. You can only use files stored on the server. Therefore, in order to access external processing, you must first send a file of such processing on the server. After that, connect your external treatment , and open its form. Please note that moving the file to an external processing server assumes that the transfer of the file in temporary storage.