Avatar billede onlinepc Nybegynder
02. juli 2001 - 12:19 Der er 9 kommentarer og
1 løsning

Billeder i databasen

Jeg har en database meget lig NorthWind.mdb, hvor der er billeder integreret.
Hvordan laver jeg en rutine, der kan trække disse billeder ud, og gemme dem i selvstændige filer
Avatar billede terry Ekspert
03. juli 2001 - 13:38 #1
Hi onlinepc, your not having much luck with this question are you?
I would suggest that you dont save your pictures in the database, but a link (path + filename) to the actual file. Access does have its limitation, and picture files do tend to fill quite a bit. If you still do need to do this then I will see what I can do, but I have not tried this myself...

terry


Avatar billede onlinepc Nybegynder
03. juli 2001 - 13:56 #2
Jeg er nødt til at have dem trukket ud, og jeg ønsker ikke at gøre det manuelt én af gangen, da der er mange billeder
Avatar billede terry Ekspert
03. juli 2001 - 13:59 #3
does this mean that you know how to get them out one at a time? If you do then cant you code a routine to take them out one at a time and write them to files ??
Avatar billede onlinepc Nybegynder
03. juli 2001 - 14:01 #4
Nej, jeg kan kun komme i tanke om Copy and Paste via et billedbehandlingsprogram
Avatar billede terry Ekspert
03. juli 2001 - 14:03 #5
Ok, I will have a play around, and get back to you if I found something out!

terry
Avatar billede terry Ekspert
05. juli 2001 - 08:30 #6
online pc, the only suggestion I can come up with is to make a form with a bound object frame and the picture field as its records source. You could use the form wizard for doing this. You can then scroll through the pictures one at a time. If ýou then right click on the picture you can select \"Bitmap Image Object\" + \"open\" from the shortcut menu. This will open the picture in some other application, for example Paint, where you can then save the picture.

If I do fall over something else then will get back to you.

terry
Avatar billede terry Ekspert
05. juli 2001 - 08:41 #7
Just come up with something which might help a little

If you have a bound object frame,
this opens an applicatation for example piant, where you can save the picture. You could infact use the SendKeys to select the file-save menu etc....


Me.fldPicture.Verb = acOLEVerbOpen
Me.fldPicture.Action = acOLEActivate

fldPicture is the name of the bound object frame
Avatar billede onlinepc Nybegynder
05. juli 2001 - 10:19 #8
Terry>> Har ikke løst problemet, og vi har måttet bruge din sidst foreslåede løsning.
Men tak for ihærdigheden, så mine 60p går til dig
Avatar billede terry Ekspert
05. juli 2001 - 10:20 #9
thanks, sorry I couldnt come upp with anything better!
Avatar billede terry Ekspert
06. juli 2001 - 09:10 #10
hi again onlinepc, you may be interested in a new question>
http://www.eksperten.dk/spm/87079

hope it gives you the answer your looking for!
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester