Logo on report form

Common questions about 1C:Query language, Query builder tool and Data composition schema

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 26, 2012
Company: Roshan Ice Cream

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

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 26, 2012
Company: Roshan Ice Cream

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!

 
#3
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Sep 16, 2011
Company: individual

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;

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

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.