The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Hi everyone;

I need to add picture to spreedsheet as programmatically. I stored pics which user wanted on catalog, and I need write pics of users on spreedsheet as programmatically.

Ho can I do that?

 
#2
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Mehmet Tuğrul SARIÇİÇEK.

Please, see an example on the QR code page.

 
#3
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Thank you Timofey Bugaevsky,

I couldn't explain. I do not want to generate QRCode, I have already store pictures in a catalog object.

Here this catalog object.

And I get pictures via query use owner informations.

 
#4
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

you need this part:

Code
   SpreadsheetDocument = New SpreadsheetDocument;

   Template = GetCommonTemplate("QRCodeSample");
   Area = Template.GetArea("Output");

   Area.Drawings.QRCode.Picture = <picture object>;

   SpreadsheetDocument.Put(Area);

To get the picture from the catalog, you should store it in a value storage attribute. In that case:
Code
   Picture = New Picture(CatalogItem.Picture.Get());

 
#5
People who like this: 0 Yes / 0 No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Thank you so much Timofey Bugaevsky,

I solved like this, it's working well.

Code
PictureFile   = PredefinedValue("Catalog.GömülüDosyalar.EmptyRef");
      PictureFile   = Sdr.TahliyePlanı;
      If Not PictureFile.IsEmpty() Then
         Picture = New Picture(PictureFile.FileData.Get());
         Page7.Drawings.TahliyePlanı.Picture      = Picture;
      EndIf;



Bu on the next days I'll need to know how to use QRCode, so I learned because of this, thank you so much.
Thank you again.

Edited: Mehmet Tuğrul SARIÇİÇEK - Dec 07, 2015 04:58 AM
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)