Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Query language and DCS > Logo on report form

Forum

Search UsersRules
Logo on report form
#1
Just came
Points:: 0
Joined:: Nov 26, 2012

Now I need to put a logo on the DCS report. How can I do that?

Profile
#2
Just came
Points:: 0
Joined:: Nov 26, 2012

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!

Profile
#3
Active user
Points:: 32
Joined:: Sep 16, 2011

You will need to add the picture using Script after the report is generated:

Code
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;

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.