Avatar billede ripley Nybegynder
06. juli 2001 - 08:45 Der er 7 kommentarer og
1 løsning

OLE-objekter SUCKS!

Er der en, der lige kan hjælpe mig?
Jeg har en database fyldt med OLE-objekter (billeder) -hvordan kan jeg få adgang til disse billeder, altså trække dem ud og måske lægge ned i mappe som ganske almindelige billeder uden alt det ole-pjat?
Avatar billede terry Ekspert
06. juli 2001 - 09:07 #1
Avatar billede ripley Nybegynder
06. juli 2001 - 09:13 #2
HM. Det blev jeg ikke stort klogere af...
Avatar billede terry Ekspert
06. juli 2001 - 09:25 #3
the reason I referred to the other question was first to inform you that the question had been brought up recently, without a satisfactory answer, and secondly to say that you could maybe get some help too!

If there arent too many pictures then you could actually use the method of opening the picture in an application and saving it to a file. This could be automated with the Sendkeys action from VB Code.
Avatar billede ripley Nybegynder
06. juli 2001 - 09:29 #4
Do you mind explaining that last bit?
Avatar billede ripley Nybegynder
06. juli 2001 - 09:33 #5
Oh, I see now that you wrote \"if there aren\'t too many pictures\" - I am afraid there are. Lots and lots, actually.
Avatar billede terry Ekspert
06. juli 2001 - 09:52 #6
As I answered in the other question, its possible to bind the picture field to a bound object frame. Then in code its possible to open the picture in the application associated with it. For example a BMP file would open in Paint. Then in code the Sendkeys could be used to actually automate the Paint application. Sendkeys sends keystrokes to the active application, in this case it would be Paint. So sending keys to open the file-save menu etc. could maybe automate it all for you. Obviously you would have to alter the file name in code too. Then close Paint, and move to the next picture......(In code)
Avatar billede terry Ekspert
06. juli 2001 - 09:53 #7
Just an idea I had, as OLE doesnt make it easy!
Avatar billede terry Ekspert
17. juli 2001 - 09:46 #8
ripley> can you respond to this question please?
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