A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Saving an image to a temporary file?



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2008, 01:52 AM posted to microsoft.public.access.forms
RussCRM
external usenet poster
 
Posts: 39
Default Saving an image to a temporary file?

I want to use a command button, say "cmdDisplayImage" to display/
transfer a captured image from the
ezVidCap1 control to an image or OLE box on the same form such as
"PhotoPreview" (not sure which one is possible/best...perhaps someone
can help me...I'm new at this.) I really don't want to "save" it
first.

Then, I want another command button such as "cmdSaveImage" to save the
file to a folder (such as \\Server\Database\Images when the user
clicks another command button when they have the image they want in
the "PhotoPreview" box. Right now I have something for this like:

Dim stPhotoPath As String
stPhotoPath = "photo_" & [GuestPhotoLink] & ".dib"
ezVidCap1.SaveDIB "\\Server\Database\Images\" & [stPhotoPath]

This has worked for storing the image directly from the ezVidCap
control, but I really want to send it to the preview and THEN save it
to the folder when the user clicks the cmdSaveImage button. Is there
any way to keep it in a temp file until it is saved and then delete
the temp file? Is there a better way?

Once it is saved, how do I go about sending the path to my
tblPhotos.GuestPhotoLink field?

I read something about image lists on a form, but I don't know how to
use them or if that's what I need.

Can anyone help??
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.