Inserting graphic into a field
Posted: Thu Jul 30, 2009 5:00 pm
Is there any way to insert a graphic into a field? I thought I remembered there being some way to do something like "set the image of char 1 of field myField to image "blah"" or something like that that, but after searching through the docs I cannot seem to find any reference to that functionality any more. I am currently using 3.0.
Here is what I am actually trying to accomplish...
I have an application that pulls a random sample from a larger population - you tell it what your total population, click a button, and then it applies a bunch of rules based the total size of your population, a minimum allowable sample size, a maximum required sample size, and (currently) spits out a text files that contains a list of the items thatyou should include in your sample. Currently the applciaiton saves this as a text file. However, this year they want the output to be something less editable. I can easily modify the application to spit out a image file instead of a text file, which would work, except that later Iwant to be able to reload the orginal sample and potentially pull an expanded sample from the same population that. To to this I need to be able to load the original sample, and generate a new set of unique samples in addition to the original items. In order to do that, I need to have the items included in the original sample available inthe saved file in some format that I can read back in and process - obviously an image file is not going to work for that.
Also, the client wants the output from this application to be openable in "some commonly available application, like Word", so using a rev stack as my data file is out.
I was hoping that I could create an off-screen field that contains an image of the list of samples, along with a text list of the original samples, then I could save out the RTF text of that field to a file, which would be openable in word, while at the same time my app could load the RTF file and parse out the text list of existing samples in order to exclude these from the resample. Unfortunately, I can't figure out how to put animageinto a field to allow me to do this.
I could build the RTF file myself, but I was hoping I could avoid figuring out the RTF format on my own and just let Rev handle that on it's own.
If anyone would like to see the existing application, which just outputs text files I have uploaded a copy to my website at http://www.edgore.com/Sampler_2.02.rev and I will keep it up there for a while (at least until I figure out what I need to do to make this work)
Here is what I am actually trying to accomplish...
I have an application that pulls a random sample from a larger population - you tell it what your total population, click a button, and then it applies a bunch of rules based the total size of your population, a minimum allowable sample size, a maximum required sample size, and (currently) spits out a text files that contains a list of the items thatyou should include in your sample. Currently the applciaiton saves this as a text file. However, this year they want the output to be something less editable. I can easily modify the application to spit out a image file instead of a text file, which would work, except that later Iwant to be able to reload the orginal sample and potentially pull an expanded sample from the same population that. To to this I need to be able to load the original sample, and generate a new set of unique samples in addition to the original items. In order to do that, I need to have the items included in the original sample available inthe saved file in some format that I can read back in and process - obviously an image file is not going to work for that.
Also, the client wants the output from this application to be openable in "some commonly available application, like Word", so using a rev stack as my data file is out.
I was hoping that I could create an off-screen field that contains an image of the list of samples, along with a text list of the original samples, then I could save out the RTF text of that field to a file, which would be openable in word, while at the same time my app could load the RTF file and parse out the text list of existing samples in order to exclude these from the resample. Unfortunately, I can't figure out how to put animageinto a field to allow me to do this.
I could build the RTF file myself, but I was hoping I could avoid figuring out the RTF format on my own and just let Rev handle that on it's own.
If anyone would like to see the existing application, which just outputs text files I have uploaded a copy to my website at http://www.edgore.com/Sampler_2.02.rev and I will keep it up there for a while (at least until I figure out what I need to do to make this work)