|
|
Re: Barcode on the fly [message #367198 is a reply to message #367178] |
Wed, 25 February 2009 17:22 |
Eclipse User |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Tomas,
Can you try using a script similar to the following (oncreate for an
image). Set type to uri.
importPackage(Packages.java.io);
importPackage(Packages.java.lang);
var file = new File("c:/temp/test.png");
var ist = new FileInputStream(file);
var lengthi = file.length();
bytesa = new ByteArrayOutputStream( lengthi);
var c;
while((c=ist.read()) != -1){
bytesa.write(c);
}
ist.close();
this.data = bytesa.toByteArray();
Jason
Tomá¹ Andrýsek wrote:
> Have partial solution, I'm able create barcode image on the fly:) So my next
> question is - I have defined image in report, created image on disk (random
> name). Is it possible to insert it into report by report definition?
> Something like "when render report, make image and place it into document" ?
> Thanks
>
> Tomas
>
> "Tomá¹ Andrýsek" <tomas.andrysek@atlas.cz> pí¹e v diskusním pøíspìvku
> news:go07p8$8jq$1@build.eclipse.org...
>> Hi,
>> can anyone help me:
>> In DB table I have number, which present barcode. I want to make image
>> from this number and insert it into generated report. I found examples on
>> iText pages, but i don't know, how can I insert this image during
>> transformation BIRT document to target document (HTML/PDF/Excel).
>>
>> Any ideas?
>>
>> Thanks
>>
>> Tomas
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03052 seconds