
OCX-Control/Object in CR - passing arguments/setting properties?
If the data is a char field in the database, then all you need do (!!) is
StringToCode39 ({your_table.your_field})
2. Set the font as Code39-digits.
Note, the above is for data which can be expressed as Code39
barcodes. A working (and workable) font for these is shipped with
CR - c39digit.ttf - at least with the standalone versions of CR.
Warning: other barcode fonts with CR DON'T WORK!!
--
Les Schmalzbach
(remove nospam- to reply).
Quote:
> Hello,
> maybe somebody can help me to solve my following problem:
> I'm working with VB5 and CR 4.6. In order to print labels with data from
> an Access-
> Database I want to use a OCX-Control for printing barcodes. One field in
> the DB and
> therefore in the report contains the digits for the barcode. I can
> insert the barcode-field - a rectangle - in the detail section ("Insert
> - Object...") and I can type digits into the .text-property of the
> OCX-control. The control translates the digits into bars - but this
> works only in draft mode via manually typing...
> Is there a way to pass the content from one DB-/Report-Field to the
> Control with VB or CR like
> "CrystalReport.OCXFieldname.Text = CrystalReport.barcodedigitfield.Text"
> or something similar???
> BTW: When using a formula-field the OCX-Control-Field is not shown in
> the
> expression editor.
> Or is the only way to print barcode labels to fill a VB-Form with data
> and print
> the form with the .PrintForm-method? I can't believe...
> Thanks for any help/suggestion
> Robert Stahlbock
> Hamburg/Germany