Common questions about 1C:Query language, Query builder tool and Data composition schema
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;
A confirmation e-mail has been sent to the e-mail address you provided .
Click the link in the e-mail to confirm and activate the subscription.
Get our brochures now! They are packed with all the info you need on 1C:Enterprise, a comprehensive technological platform with a wide range of built-in and separate tools and services and a system of off-the-shelf solutions powered by this platform. Plus, data on customer projects, including stats on their size and the effect of automation. Just leave your email address to download!
We're committed to your privacy. 1С uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy
Your request has been successfully sent.