Streaming Images into Crystal Reports
Embedding dynamic barcodes into Crystal Reports versions XI and above can be
done without installing components on any client machines, provided all
report-running machines can access the IDAutomation streaming web component from
the server right into the Crystal Report.
Streaming Dynamic Barcodes in Java
When generating barcodes on large reports, latency may cause a
slow-down in report generation. If this issue is experienced, consider implementing
the server-side ASP Barcode Server for
IIS or the IDAutomation
Java Barcode Package on the local machine that is generating the reports.
Additionally, many other
Crystal Barcode Integration options are available
that do not have latency issues.
-
Order a one year subscription to the
Dynamic Barcode
Image Generator Service or use the
free and fully-functional demo. 2D barcode types such as Aztec, PDF417, DataMatrix
and MaxiCode are only available in the
purchased product. Alternatively, the following barcode streaming
products may be implemented on your own web server:
- The Java package servlet is used in this example. However, for testing
purposes and evaluation, the
Dynamic Barcode
Generator Service may also be used without installing any software.
Simply replace
http://trl:7001/servlet/LinearServlet?BARCODE=
with
http://www.bcgen.com/demo/linear-dbgs.aspx?Format=jpeg&BARCODE=
in the examples provided.
- In the Crystal Report, click on Insert from the file menu and select
OLE Object.

- Select Bitmap image in the Insert Object dialogue box and click
OK.

- Position and size the object to meet the needs of the report. (NOTE:
When the object is dropped onto the report designer, the object will
be in "Edit" mode. Simply click off of the object to return to the Report
Design Mode.)
- Select the object and click on Format - Graphic Properties from
the file menu.
- Select Picture from the list of tabs, and then click on the Graphic
Location icon.

- In the formula window, enter the URL address of the streaming server
and append the appropriate parameters to ensure the JPEG file type is
created, as well as field that needs to be encoded and any other necessary
parameters. The following examples encode {Table1.id}
within the barcode that is streamed into the report:
"http://trl:7001/servlet/LinearServlet?BARCODE="+{Table1.id}+"&CODE_TYPE=CODE39"
BCGEN Example:
"http://www.bcgen.com/demo/linear-dbgs.aspx?Format=jpeg&BARCODE="+{Table1.id}+"&CODE_TYPE=CODE39"

- Save and Close the Format Function window.
|