shiva321krishna
5th April 2010, 12:17
Hi,
For Generating a barcode we have a function called bc$(type, rows, String), But the function is working fine only when we use it as bc$(9, 2, String). It was found using trial and error method, its not generating Bar Code for any other arguments.
Can any one help me to sort out this issue.
Regards
PSK
bdittmar
5th April 2010, 13:04
Hello,
have a look at your barcode directory if there other types of barcodescripts are present and in proper coding.
BaanERP Programmers Guide
bc$()
--------------------------------------------------------------------------------
Syntax
string bc$( long type, long rows, string barcode(.) )
Description
Use this to create a barcode of the specified type.
Arguments
type
This points to a shell script that generates the barcode. The script is stored in the barcode directory; this is specified in the printer information file. The script names take the form 'typexx', where xx is a two digit number. For example 'type02'. You specify the two digit number in this argument.
rows
The height of the barcode, as a number of lines.
barcode
The string that must be converted to a barcode and printed.
Context
Bshell function.
Example
print bc$( 02, 2, input_string )
refresh()
-------------
Or give more details on your behaivior.
Regards
shiva321krishna
5th April 2010, 13:57
I have seen the directory mentioned by you and i find 5 files entirely in a subfolder called hplj4, i.e. README, type01, type02, type03 and type04. But my question is how is it considering the first argument when i give it 9(as there is no shell script provided for type09). Please clarify me.
Regards
PSK
bdittmar
5th April 2010, 14:34
Hello,
based on your printerdriver located in $BSE/lib/printinf/....
At used printerdriver, theres an entry like:
barcode_dir=hp
The barcodescript is used from directory:
$BSE/lib/barcode/hp/typexx
Regards
shiva321krishna
5th April 2010, 14:59
Actually my question is, why its only printing Bar Code correctly when i give the first argument as 9, i dont have a file named "type9" in the location provided earlier.
Regards
PSK
oledba
5th April 2010, 15:53
Hello Mr.PSK
I understand you are having an Issue/Problem , But - you need to workout on some things i noticed.
1.You need post the Problem / Issue in appropriate Section Not in Blogs / General discussions.
2.Members here are trying to help - be Polite, use "PLEASE " - trust me it works
Actually my question is, why its only printing Bar Code correctly when i give the first argument as 9, i dont have a file named "type9" in the location provided earlier.
3.Dont be Rude - remember - members here are not on your payroll
and mainly follow the etiquette of the Forum.
bdittmar
5th April 2010, 16:20
Hello,
refer to BaaN Quick Guide 1307 !
Regards
shiva321krishna
5th April 2010, 16:22
Am sorry Oledba, I did not mean that way, i was just trying to reframe my question properly, about what i was searching for. Please dont take me in other way.
binoy000
2nd August 2010, 08:46
Hi Shiva,
Hope by now the problem might have solved.
You need to check the BaaN Client Version also.
Also Please print any report in Preview mode and then take the Barcode under Help, and see all the types supported. Print and see whether the type you wanted is printing or not.
Regards,
Binoy