Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Creating Images with VBA?

Author
Message
Manic
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Completely off my face...
Posted: 1st Aug 2007 15:59
does anyone know of a library or DLL that I'm going to be able to use within Access, at work? (i.e. I have no install privileges)

I need to be able to take some info off the database and create a simple image to be displayed on a screen, preferably with as little effort and heartache as possible.

I don't have a sig, live with it.
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 1st Aug 2007 16:08 Edited at: 1st Aug 2007 16:09
you dont need a dll, and you dont need to install anything. If you have the image data in the database (does access store the Binary Type?) you read the data into a byte array in vba, then convert the byte array to an image, and display it in a control.

My DBP plugins page is now hosted [href]here[/href]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Aug 2007 16:09
Use the Picture Box control that is part of VBA.

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 1st Aug 2007 16:21
You know that you can draw directly with Access as well, like you could plot the data directly onto a report, look up the PSET command.

The only instance that I've used this technique was when drawing vertical lines in a report, but there's nothing stopping you from drawing the whole image with code, maybe based on a simple array.

We're going down... in a spiral to the ground...
Manic
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Completely off my face...
Posted: 1st Aug 2007 17:49
thanks for the quick replys and I'm glad i don't have to mess around with libraries and such, I think I should have been more specific though.

The image i need to generate will be of which course modules are expected to be handed in that day, really all the image will need to be is a table, displaying like this;

Module Code | Module Name
BIOL/00127 | Human Genetics
CHEM/02344 | Medicinal Chemistry
etc | etc

as far as my understanding goes at the moment, the screens that the Uni use around the place run off a folder of images.

Either that, or a screen that is seperate from the rest of the system will need to display the information, directly off the database. I've got no experience of this area though, and it largely depends on what hardware is available.

I had hoped that i might just be able to generate a report, and then save it out as a jpg, but no luck there.

I'm having a bit of trouble concentrating right now, the office is hot and i've only had one coffee today, so sorry if this post seems a bit garbled.

cheers guys

Manic

I don't have a sig, live with it.

Login to post a reply

Server time is: 2024-11-18 23:27:50
Your offset time is: 2024-11-18 23:27:50