Main > Forum > 1C:Enterprise Platform > 1C:Query language and DCS > Logo on report form
Now I need to put a logo on the DCS report. How can I do that?
Still actual.I tried to add a picture to the template. It is inserted and displayed on the template, but when I save and reopen the MainDataCompositionSchema template it disappears!
You will need to add the picture using Script after the report is generated:
DataCompositionSchema = GetTemplate("MainDataCompositionSchema"); TemplateComposer = New DataCompositionTemplateComposer; DetailsData = New DataCompositionDetailsData; Settings = SettingsComposer.Settings; DataCompositionTemplate = TemplateComposer.Execute(DataCompositionSchema, Settings, DetailsData); DataCompositionProcessor = New DataCompositionProcessor; DataCompositionProcessor.Initialize(DataCompositionTemplate,, DetailsData); SpreadsheetDocument = Items.Result; OutputProcessor = New DataCompositionResultSpreadsheetDocumentOutputProcessor; OutputProcessor.SetDocument(SpreadsheetDocument); OutputProcessor.Output(DataCompositionProcessor); NewPicture = SpreadsheetDocument.Drawings.Add(SpreadsheetDocumentDrawingType.Picture); NewPicture.Picture = PictureLib.Logo;