Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Saving Pictures on a Hard Drive

Forum

Search UsersRules
Saving Pictures on a Hard Drive
#1
Active user
Points:: 1
Joined:: Jul 20, 2011

Saving pictures on a hard drive, creating directories by Goods catalog items descriptions and saving related pictures in those directories.
To create a directory I use CreateDirectory() function, but how to save a picture in that directory?

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

First you need to get a picture from the ValueStorage:
<ValueStorageAttribute>.Get()
Next see the Syntax Assistant for the Picture object Write() method:
Picture.Write
Syntax:
Write(<FileName>)
Parameters:
<FileName> (required)
Type: String.
The full file name of the picture to be saved. If no directory name is specified, the picture will be saved in the directory of executable program files.
Description:
You can use it to write a picture to a file with a specified name.
Availability:
Thin client, web-client, server, thick client, external connection.
Example:
Picture.Write("C:\My Documents\My Pictures\home.bmp");

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.