The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Feb 26, 2015
Company: Uguz Limited sirketi

I have one image file. (C: \ temp \ image1.jpg)
I have one catalog.
The name of the image area in my catalog [ImageField].
...
-Code
-desc
-name
-imagefield
...

How can I store the file?
Do you have sample code?

 
#2
People who like this: 0 Yes / 0 No
Active user
Rating: 2
Joined: Jan 14, 2013
Company:

You used 'Managed applicationor' Or 'ordinary application' ?

if you use 'ordinary application'
- imagefield  type ValueStorage

Code
MyPicture = New Picture("C:\temp\image1.jpg");
imagefield  = New ValueStorage(MyPicture);

Show:
- Add item : 'picture'
Code
Controls.Picture.Picture = imagefield.Get();

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

Joined:
Company:

Hello, Erdogan!

We recommend using the managed application mode.

Please, see following topics:
How to change the picture on a button programmatically?
How to insert a picture into the template?
How to add picture to spreadsheet programmatically

Hope, this helps.

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