Project

General

Profile

Defect #485

Barcode Plugin Not run in WEB

Added by juan pablo about 12 years ago. Updated over 10 years ago.

Status:
In Progress
Priority:
Normal
Start date:
04/04/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):
mozzilla firefox and IE

Description

By running the bean barcade in webclient get the following error:

Wrapped java.lang.NullPointerException (C: \ Documents and Settings \ juampy \ servoy_workspace \ pv_clientes \ forms \ pv_ccc_comprobante_datos.js # 142)
at C: \ Documents and Settings \ juampy \ servoy_workspace \ pv_clientes \ forms \ pv_ccc_comprobante_datos.js: 142 (onActionImprimir)

In SmartClient worked well.
I'm using it as follows:

var code1 = "0123456789"
drawtext1 var = true;
globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1);

I appreciate a prompt response. Thank you!

History

#1

Updated by Servoy Components about 12 years ago

  • Status changed from New to Feedback

Is that really your code?

Is this 'drawtext1 var = true;' or this 'globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1);' line 142?

I would first take a good look at 'drawtext1 var = true' and try again.

Please let me know if that solved your issue.

#2

Updated by juan pablo about 12 years ago

hi, sorry I wrote wrong code. M:y really code is:

var code1 = "0123456789"
var drawtext1 = true;
globals.vg_barcode = plugins.it2be_barcode.EAN128 (code1, drawtext1); (I get the error here)

thanks!

#3

Updated by Servoy Components about 12 years ago

Hmm, I will check next week to see if I can replicate this...

#4

Updated by juan pablo about 12 years ago

Hi Marcel, You could see something?

Greetings!

#5

Updated by Servoy Components about 12 years ago

Apologies, I did not have the time yet.
I am not sure about this week but when I have the time it will be Friday or next week Monday.

#6

Updated by Servoy Components about 12 years ago

The underlying libraries for converting the barcode to an image need AWT components.
This is not supported in web.
As far as I can see the bean does support web, the plugin does not.

I will see that I can find a way to convert the barcode without AWT but I don't know how long that will take.

#7

Updated by Servoy Components over 10 years ago

  • Status changed from Feedback to In Progress

Also available in: Atom PDF