416-621-9348 cgreaves@chrisgreaves.com Visit www.ChrisGreaves.com for this image! Chris_GEDC1894_Head (Small).JPG
Home Site About Services Products

Embedded images (Home) ; Obtain set of original images on disk ; Build application ; Try with images embedded as images in a GUI form within the application ; Switch to images embedded as numeric strings within the application ; Converting a stored image to an ASCII string ; Converting an ASCII string to a stored image ; Optimizing storage of the embedded string ; Function to insert an image from an embedded string ; Macro to drive the function ; Essay with a string as a parameter (statement) ; Converting An Embedded String To A String ; Converting A String To An Array Of VBA Statements ; Converting an string of VBA assignment statements to an array of VBA code ; Converting an array of VBA code to a macro .


Loading

Toronto and Mississauga, Thursday, March 18, 2010 8:45 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.

Embedded images

The task was to build an application (developer) that could be driven by a text file, build a second application that could be used (end-user) to generate documents with embedded images.

The challenge was to manage the image-handling so that the user couldn’t corrupt the source images.

That constraint meant that the images (defined by name in each text file) could not be stored on a hard drive; they had to be stored within the end-user application.

The journey went something like this:

Obtain set of original images on disk

Build application

Try with images embedded as images in a GUI form within the application

Switch to images embedded as numeric strings within the application

Converting a stored image to an ASCII string

Converting an ASCII string to a stored image

Optimizing storage of the embedded string

Function to insert an image from an embedded string

Macro to drive the function

Essay with a string as a parameter (statement)

Essay with a string as a parameter (continuation statements)

Converting an embedded string to a string array

Converting a string array to an array of VBA statements

Converting an string of VBA assignment statements to a an array of VBA code

Converting an array of VBA code to a macro

Some of these were dead-ends, and I had to back-track. I include them here so that you can see that the process of discovery does lead, legitimately, to dead-ends, and also so that, if you’re brilliant, you have a chance at circumventing the problems I faced and coming up with a better solution. In which case please Contact Me .


Loading

Toronto and Mississauga, Thursday, March 18, 2010 8:45 PM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.