barcode via Dynamic Image [message #364730] |
Tue, 19 August 2008 18:16 |
Eclipse User |
|
|
|
Originally posted by: spam2.logemann.org
Hi,
i want to embed Barcodes by generating them on the fly as images with a
barcode java library and send the raw image data to Birt.
I saw that an image in birt can be from a dynamic source. Has anyone
ever done this? In Birt you can select a DataSet (why a dataset) or a
Report Item for an image.
So normally i would do in my calling java program:
task.getAppContext().put("imageRaw",
someByteArrayOutputStream.toByteArray());
So i would pass a byte[] to the birt context and bind this to a DataSet
or something else....
Do you think this will work? Anyone done something similar?
Marc
|
|
|
Re: barcode via Dynamic Image [message #364733 is a reply to message #364730] |
Tue, 19 August 2008 19:39 |
Eclipse User |
|
|
|
Originally posted by: spam2.logemann.org
Hi,
its so nice when ideas instantly work. For all those interessted in the
solution. See this:
http://logemannreloaded.blogspot.com/2008/08/embed-barcodes- in-birt-wo-barcode-fonts.html
Marc
Marc Logemann schrieb:
> Hi,
>
> i want to embed Barcodes by generating them on the fly as images with a
> barcode java library and send the raw image data to Birt.
>
> I saw that an image in birt can be from a dynamic source. Has anyone
> ever done this? In Birt you can select a DataSet (why a dataset) or a
> Report Item for an image.
>
> So normally i would do in my calling java program:
>
> task.getAppContext().put("imageRaw",
> someByteArrayOutputStream.toByteArray());
>
> So i would pass a byte[] to the birt context and bind this to a DataSet
> or something else....
>
> Do you think this will work? Anyone done something similar?
>
> Marc
|
|
|
|
Re: barcode via Dynamic Image [message #364755 is a reply to message #364739] |
Wed, 20 August 2008 16:15 |
Eclipse User |
|
|
|
Originally posted by: spam2.logemann.org
i already postet the solution in this thread. Perhaps it also works for
you....
Marc
Steven F. schrieb:
> Marc Logemann wrote:
>> Hi,
>>
>> i want to embed Barcodes by generating them on the fly as images with
>> a barcode java library and send the raw image data to Birt.
>>
>> I saw that an image in birt can be from a dynamic source. Has anyone
>> ever done this? In Birt you can select a DataSet (why a dataset) or a
>> Report Item for an image.
>>
>> So normally i would do in my calling java program:
>>
>> task.getAppContext().put("imageRaw",
>> someByteArrayOutputStream.toByteArray());
>>
>> So i would pass a byte[] to the birt context and bind this to a
>> DataSet or something else....
>>
>> Do you think this will work? Anyone done something similar?
>>
>> Marc
>
>
> We're using BIRT to generate barcodes, but I've been using barcode fonts
> and embedding the fonts in PDFs. We've gotten this font based method to
> work with Code39 and Code 128 fonts.
>
> I'd be interested in using images as you describe if you ever get it
> working.
>
> Steven
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03531 seconds