473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Copying A Picture From An OLE Object On A Form To A File

Hi

Can anyone tell me if it is possible to save a picture stored in an OLE
objects on a form (bound object frame / unbound object frame) to a file.

I have seen a command SavePicture Picture as LPPictureDist, Filename, but
can not get it to work.

Steve
Nov 13 '05 #1
5 7431
For a single instance simply right click on the OLE Frame control in
Design view, select COPY. Now open up your favourite Paint program and
select PASTE from its Edit menu.

For programmatic export of embedded OLE Images see:
http://www.lebans.com/oletodisk.htm
A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire
contents of a table containing OLE Object Images to disk based Jpeg
files. User selectable compression rate. Version 1.5

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <st****@ufrmsa1.uniforum.org.za> wrote in message
news:cl*********@ctb-nnrp2.saix.net...
Hi

Can anyone tell me if it is possible to save a picture stored in an OLE objects on a form (bound object frame / unbound object frame) to a file.
I have seen a command SavePicture Picture as LPPictureDist, Filename, but can not get it to work.

Steve


Nov 13 '05 #2
Thanks so much for the help, it is really appreciated. The only hassle is
the dll will not save the jpg file, it gives a code of -10, any ideas?

Thanks Again
Steve

"Stephen Lebans" <Fo****************************************@linval id.com>
wrote in message news:Qi**********************@ursa-nb00s0.nbnet.nb.ca...
For a single instance simply right click on the OLE Frame control in
Design view, select COPY. Now open up your favourite Paint program and
select PASTE from its Edit menu.

For programmatic export of embedded OLE Images see:
http://www.lebans.com/oletodisk.htm
A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire
contents of a table containing OLE Object Images to disk based Jpeg
files. User selectable compression rate. Version 1.5

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <st****@ufrmsa1.uniforum.org.za> wrote in message
news:cl*********@ctb-nnrp2.saix.net...
Hi

Can anyone tell me if it is possible to save a picture stored in an

OLE
objects on a form (bound object frame / unbound object frame) to a

file.

I have seen a command SavePicture Picture as LPPictureDist, Filename,

but
can not get it to work.

Steve

Nov 13 '05 #3
OLEtoDisk has been used by thousands of people to export their images.

The error is most likely generated because you have not followed the
step by step instructions on the Export Form. Specifically:

You are trying to use a field as the source for the output filename that
contains illegal filename characters. This is Step#4 on the form.

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <st****@ufrmsa1.uniforum.org.za> wrote in message
news:cl**********@ctb-nnrp2.saix.net...
Thanks so much for the help, it is really appreciated. The only hassle is the dll will not save the jpg file, it gives a code of -10, any ideas?

Thanks Again
Steve

"Stephen Lebans" <Fo****************************************@linval id.com> wrote in message

news:Qi**********************@ursa-nb00s0.nbnet.nb.ca...
For a single instance simply right click on the OLE Frame control in
Design view, select COPY. Now open up your favourite Paint program and select PASTE from its Edit menu.

For programmatic export of embedded OLE Images see:
http://www.lebans.com/oletodisk.htm
A2KExportOLEtoJPEG.zip A2K ONLY! This version saves the entire
contents of a table containing OLE Object Images to disk based Jpeg
files. User selectable compression rate. Version 1.5

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <st****@ufrmsa1.uniforum.org.za> wrote in message
news:cl*********@ctb-nnrp2.saix.net...
Hi

Can anyone tell me if it is possible to save a picture stored in
an OLE
objects on a form (bound object frame / unbound object frame) to a

file.

I have seen a command SavePicture Picture as LPPictureDist,
Filename, but
can not get it to work.

Steve



Nov 13 '05 #4
another question.
I have around 900 photos (900 jpg files) named from 001.jpg to 900.jpg and I
need to insert in a table. eg. photo 001.jpg in register number 1.
the question is: how can I insert the 900 humdred files at the same time?
what kind of code do I need to use.

thank you very much

"Stephen Lebans" <Fo****************************************@linval id.com>
escribió en el mensaje
news:1k**********************@ursa-nb00s0.nbnet.nb.ca...
OLEtoDisk has been used by thousands of people to export their images.

The error is most likely generated because you have not followed the
step by step instructions on the Export Form. Specifically:

You are trying to use a field as the source for the output filename that
contains illegal filename characters. This is Step#4 on the form.

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Nov 13 '05 #5
Thanks I sorted it - it was my error.

Steve

"hal3" <h_**@no.no> wrote in message
news:VK***********************@telenews.teleline.e s...
another question.
I have around 900 photos (900 jpg files) named from 001.jpg to 900.jpg and I need to insert in a table. eg. photo 001.jpg in register number 1.
the question is: how can I insert the 900 humdred files at the same time?
what kind of code do I need to use.

thank you very much

"Stephen Lebans" <Fo****************************************@linval id.com>
escribió en el mensaje
news:1k**********************@ursa-nb00s0.nbnet.nb.ca...
OLEtoDisk has been used by thousands of people to export their images.

The error is most likely generated because you have not followed the
step by step instructions on the Export Form. Specifically:

You are trying to use a field as the source for the output filename that
contains illegal filename characters. This is Step#4 on the form.

--
HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill N. | last post by:
Using VB .Net 2003 Standard Edition. This simple form has a "File in Use" problem while the executable is running. Created this simple program to make sure that I hadn't done something in my...
22
by: Matt | last post by:
When browsing a web page a user has the ability to highlight content on a page (by holding down the left mouse button and dragging the mouse over the desired content). Is there a way to disable...
2
by: Lyn | last post by:
What is the best way to import a picture (bmp format) via VBA from a Windows file and embed it into a Bound Object Frame (and thence to an OLE Object in a table)? I found an MS knowledge base...
2
by: Lyn | last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph) with the following code which is based on MS article http://support.microsoft.com/?id=158941: strPathname =...
5
by: Lyn | last post by:
I am trying to copy selected fields from one table to another, by reading the source table record into a recordset (ADO) and then copying the relevant fields to an SQL statement "INSERT INTO...". ...
10
by: Martin Ho | last post by:
I am running into one really big problem. I wrote a script in vb.net to make a copy of folders and subfolder to another destination: - in 'from.txt' I specify which folders to copy - in...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
1
by: =?Utf-8?B?Y3JhbmtlX2JveQ==?= | last post by:
Hi Folks, I'm not sure where this post belongs since I'm using managed vc.net, but the issue is around GDI BitBlt. Here is a summary of the problem: - I am trying to copy a bitmap of my main...
2
by: raylopez99 | last post by:
Beware newbies: I spent a day before I figured this out: copying a bitmap (image) file to file is not quite like copying a text file--you have to do some tricks (see below), like using a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.