Re: Barcode

2020-03-21 Thread stardata.info via 4D_Tech

Some free font bar code, accept only numeric characters.

Ferdinando


Il 21/03/20 20:00, 4d_tech-requ...@lists.4d.com ha scritto:

Message: 6
Date: Fri, 20 Mar 2020 23:41:00 +
From: Keisuke Miyako
To: 4D iNug Technical<4d_tech@lists.4d.com>
Subject: Re: Barcode
Message-ID:<40ca229a-034a-4e28-bc82-fab803a3e...@4d.com>
Content-Type: text/plain; charset="utf-8"

it seems like on some versions of 4D (for Mac),
an invisible character is appended at the end for alignment.

that would screw up the barcode data.

2020/03/21 2:01、Lee Hinde via 4D_Tech 
<4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール:
But we ended up using hmBarcode because the free fonts didn't work 
with new scanners that the client got.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Barcode

2020-03-20 Thread Stephen J. Orth via 4D_Tech
Even when we were using bar code fonts, we would always purchase them to ensure 
the quality of the image.  These need to be precise, especially if your using 
compact, high density codes.

Free fonts are really not free...


Steve

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Keisuke Miyako via 
4D_Tech
Sent: Friday, March 20, 2020 6:41 PM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: Keisuke Miyako 
Subject: Re: Barcode

it seems like on some versions of 4D (for Mac), an invisible character is 
appended at the end for alignment.

that would screw up the barcode data.

2020/03/21 2:01、Lee Hinde via 4D_Tech 
<4d_tech@lists.4d.com<mailto:4d_tech@lists.4d.com>>のメール:
But we ended up using hmBarcode because the free fonts didn't work with new 
scanners that the client got.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Barcode

2020-03-20 Thread Keisuke Miyako via 4D_Tech
it seems like on some versions of 4D (for Mac),
an invisible character is appended at the end for alignment.

that would screw up the barcode data.

2020/03/21 2:01、Lee Hinde via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
But we ended up using hmBarcode because the free fonts didn't work with new 
scanners that the client got.

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Barcode

2020-03-20 Thread Stephen J. Orth via 4D_Tech
As I've said previously, we also switched away from fonts (to hmBarcode) for 
varying reasons:

1. The various Windows OS updates have caused problems due to the changes on 
how they index fonts internally.

2. Bar code fonts are not part of the normal Windows font list, so you need to 
have a way to install these on every system using your code.

3. Windows now treats fonts as potentially malicious ways to introduce 
something nefarious.  Depending upon where you store fonts, you will run into 
situations where the OS locks it down.

There are other reasons not to use fonts and instead use a "system" that 
generates pictures instead.

Best,


Steve


-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of Lee Hinde via 4D_Tech
Sent: Friday, March 20, 2020 12:02 PM
To: 4D iNug Tech <4d_tech@lists.4d.com>
Cc: Lee Hinde ; stardata.info 
Subject: Re: Barcode

There are a bunch:

https://www.google.com/search?client=firefox-b-1-d=barcode+fonts+free

But we ended up using hmBarcode because the free fonts didn't work with new 
scanners that the client got.


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Barcode

2020-03-20 Thread Lee Hinde via 4D_Tech
There are a bunch:

https://www.google.com/search?client=firefox-b-1-d=barcode+fonts+free

But we ended up using hmBarcode because the free fonts didn't work with new 
scanners that the client got.


> On Mar 20, 2020, at 9:26 AM, stardata.info via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> Someone knows some links of free font barcode?
> 
> Thanks
> 
> /Ferdinando/
> 
> Il 20/03/20 12:23, 4d_tech-requ...@lists.4d.com ha scritto:
>> Send 4D_Tech mailing list submissions to
>>  4d_tech@lists.4d.com
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://lists.4d.com/mailman/listinfo/4d_tech
>> or, via email, send a message with subject or body 'help' to
>>  4d_tech-requ...@lists.4d.com
>> 
>> You can reach the person managing the list at
>>  4d_tech-ow...@lists.4d.com
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of 4D_Tech digest..."
>> 
>> 
>> Today's Topics:
>> 
>>1. Re: Printing Listbox multiple pages (resolved) (John J Foster)
>>2. Re: Remote working with 4D networks - what are people using ?
>>   (Tim Nevels)
>>3. Re: barcode (Bernd Fröhlich)
>>4. Re: Gmail, LSA, and OAuth (Chuck Miller)
>>5. Re: Gmail, LSA, and OAuth (Tom Benedict)
>>6. Re: Remote working with 4D networks - what are people using ?
>>   (Keith Goebel)
>>7. Re: gitignore for projects (John DeSoi)
>>8. Re: Remote working with 4D networks - what are people using ?
>>   (Herr Alexander Heintz)
>>9. Re: Remote working with 4D networks - what are people using ?
>>   (Paul Dennis)
>>   10. Re: Remote working with 4D networks - what are people using ?
>>   (Milan Adamov)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Thu, 19 Mar 2020 09:44:21 -0700
>> From: John J Foster 
>> To: 4d_tech@lists.4d.com
>> Subject: Re: Printing Listbox multiple pages (resolved)
>> Message-ID: <3e46f8d3-7bc0-432b-9909-d71c54422...@isomedia.com>
>> Content-Type: text/plain;charset=utf-8
>> 
>> Hi All,
>> 
>> Never mind - unless you found something a bit easier…
>> 
>> I found an older JPR example (I think) and it was really easy!
>> 
>> Just change the code to something like this:
>> 
>> C_BOOLEAN(vOver;$ref)
>> 
>> PRINT SETTINGS
>> If (ok=1)
>>  SET PRINT PREVIEW(True)
>>  OPEN PRINTING JOB
>>  FORM LOAD("Timescan_print")
>> 
>>  vOver:=False  // Flag for cancel printing
>>  Repeat
>>  $ref:=Print object(*;"tscanChartInfo")
>>  vOver:=Print object(*;"lb_Timeline")
>>  If (Not(vOver))
>>  PAGE BREAK
>>  End if
>>  Until (vOver)
>>  CLOSE PRINTING JOB
>> End if
>> 
>> For all those who might need it in the future.
>> 
>> John…
>> 
>>> Hi All,
>>> 
>>> I have an array based listbox of results that needs to be printed. I am 
>>> starting with simple code:
>>> 
>>> PRINT SETTINGS
>>> If (ok=1)
>>> SET PRINT PREVIEW(True)
>>> OPEN PRINTING JOB
>>> FORM LOAD("Timescan_print")
>>> $ref:=Print object(*;"tscanChartInfo")
>>> $ref:=Print object(*;"lb_Timeline")
>>> CLOSE PRINTING JOB
>>> End if
>>> 
>>> But this only prints a single page (rows printed based upon listbox 
>>> height). Obviously I haven’t designed it to calculate and print multiple 
>>> pages yet and want to be efficient as I proceed.
>>> 
>>> Before I stumble my way through this I have reviewed past NUG threads and 
>>> looked at Miyako’s and Keith’s examples But either, in Miyako’s case, it 
>>> creates random values on the fly but does create multiple pages, for 
>>> Keith’s example which stops at the size of the listbox.
>>> 
>>> So do I need to create a series of form pages: Header, row lines, footer, 
>>> etc. and then print object and calculate or….
>>> 
>>> Is there an easier way to manage array based listbox printing over many 
>>> pages?
>>> 
>>> Does anyone have any sample code of printing multi-page array based list 
>>> boxes?
>>> 
>>> Thanks,
>>> John…
>>> 
>> 
>> 

Re: barcode

2020-03-19 Thread Bernd Fröhlich via 4D_Tech
Chuck Miller:

> The only problem is creation of of bar code. I think hmbar code does all 
> types (128 etc) which are harder to do programmatically.  When I tried, I was 
> able to get 128 working on a Mac or a PC but not both. The coding seems to 
> have been slightly different

If you need a "Code 39" barcode then you can use the following method.
I adapted it out of a component by Thomas Maul and made it standalone.
It returns a picure that you can place on a form to print.

C_TEXT($1;$tCode)
C_LONGINT($2;$lScale)
C_PICTURE($0)
C_TEXT($tPattern;$t;$tSVG;$tLine;$tPoints;$tRef)
C_LONGINT($i;$x;$x2;$y;$y2;$lCount;$lHeight;$lWidth;$lBarwidth;$lScale)

$tCode:=$1
If (Count parameters>1)
$lScale:=$2
Else 
$lScale:=1
End if 

If ($Tcode#"*@")
$tcode:="*"+$tcode
End if 
If ($tcode#"@*")
$tcode:=$tcode+"*"
End if 
If (Length($tcode)>32)
g4D_AlertErr ("Code zu lang!")
End if 

$tPattern:=""
For ($i;1;Length($tCode))
$t:=$tCode[[$i]]
Case of 
: ($t="*")
$tPattern:=$tPattern+"1001011011010"
: ($t="0")
$tPattern:=$tPattern+"1010011011010"
: ($t="1")
$tPattern:=$tPattern+"1101001010110"
: ($t="2")
$tPattern:=$tPattern+"1011001010110"
: ($t="3")
$tPattern:=$tPattern+"1101100101010"
: ($t="4")
$tPattern:=$tPattern+"1010011010110"
: ($t="5")
$tPattern:=$tPattern+"1101001101010"
: ($t="6")
$tPattern:=$tPattern+"1011001101010"
: ($t="7")
$tPattern:=$tPattern+"1010010110110"
: ($t="8")
$tPattern:=$tPattern+"1101001011010"
: ($t="9")
$tPattern:=$tPattern+"1011001011010"
: ($t="A")
$tPattern:=$tPattern+"1101010010110"
: ($t="B")
$tPattern:=$tPattern+"1011010010110"
: ($t="C")
$tPattern:=$tPattern+"1101101001010"
: ($t="D")
$tPattern:=$tPattern+"1010110010110"
: ($t="E")
$tPattern:=$tPattern+"1101011001010"
: ($t="F")
$tPattern:=$tPattern+"1011011001010"
: ($t="G")
$tPattern:=$tPattern+"1010100110110"
: ($t="H")
$tPattern:=$tPattern+"1101010011010"
: ($t="I")
$tPattern:=$tPattern+"1011010011010"
: ($t="J")
$tPattern:=$tPattern+"1010110011010"
: ($t="K")
$tPattern:=$tPattern+"1101010100110"
: ($t="L")
$tPattern:=$tPattern+"1011010100110"
: ($t="M")
$tPattern:=$tPattern+"1101101010010"
: ($t="N")
$tPattern:=$tPattern+"1010110100110"
: ($t="O")
$tPattern:=$tPattern+"1101011010010"
: ($t="P")
$tPattern:=$tPattern+"1011011010010"
: ($t="Q")
$tPattern:=$tPattern+"1010101100110"
: ($t="R")
$tPattern:=$tPattern+"1101010110010"
: ($t="S")
$tPattern:=$tPattern+"1011010110010"
: ($t="T")
$tPattern:=$tPattern+"1010110110010"
: ($t="U")
$tPattern:=$tPattern+"1100101010110"
: ($t="V")
$tPattern:=$tPattern+"1001101010110"
: ($t="W")
$tPattern:=$tPattern+"1100110101010"
: ($t="X")
$tPattern:=$tPattern+"1001011010110"
: ($t="Y")
$tPattern:=$tPattern+"1100101101010"
: ($t="Z")
$tPattern:=$tPattern+"1001101101010"
: ($t="-")
$tPattern:=$tPattern+"1001010110110"
: ($t=".")
$tPattern:=$tPattern+"1100101011010"
: ($t=" ")
$tPattern:=$tPattern+"1001101011010"
: ($t="$")
$tPattern:=$tPattern+"1001001001010"
: ($t="/")
$tPattern:=$tPattern+"1001001010010"
: ($t="+")
$tPattern:=$tPattern+"1001010010010"
: ($t="%")
$tPattern:=$tPattern+"1010010010010"
Else 
g4D_AlertErrCaseOf (Current method name)
End case 
End for 


Re: barcode

2020-03-19 Thread Mike Kerner via 4D_Tech
we wrote a library way back in the day that used 4d draw, i think, but
using a font was always less hassle and faster.
building your own barcodes is like writing EPS or PDF or PCL from scratch.
You can do it, but if you don't have to, maybe you shouldn't.


On Wed, Mar 18, 2020 at 3:53 PM Chuck Miller via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> The only problem is creation of of bar code. I think hmbar code does all
> types (128 etc) which are harder to do programmatically.  When I tried, I
> was able to get 128 working on a Mac or a PC but not both. The coding seems
> to have been slightly different
>
> Regards
>
> Chuck
>
> 
>  Chuck Miller Voice: (617) 739-0306
>  Informed Solutions, Inc. Fax: (617) 232-1064
>  mailto:cjmillerinformed-solutions.com
>  Brookline, MA 02446 USA Registered 4D Developer
>Providers of 4D and Sybase connectivity
>   http://www.informed-solutions.com
>
> 
> This message and any attached documents contain information which may be
> confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution, disclosure,
> printing, copying, storage, modification or the taking of any action in
> reliance upon this transmission is strictly prohibited.  Delivery of this
> message to any person other than the intended recipient shall not
> compromise or waive such confidentiality, privilege or exemption from
> disclosure as to this communication.
>
> > On Mar 18, 2020, at 3:45 PM, Jody Bevan via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Is there a problem with using a font? Just asking as that is what I am
> doing. Seems to work great.
> > The font is free, so cost is not an issue.
> >
> > Thanks
> >
> > Jody
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: barcode

2020-03-18 Thread Chuck Miller via 4D_Tech
The only problem is creation of of bar code. I think hmbar code does all types 
(128 etc) which are harder to do programmatically.  When I tried, I was able to 
get 128 working on a Mac or a PC but not both. The coding seems to have been 
slightly different

Regards

Chuck

 Chuck Miller Voice: (617) 739-0306
 Informed Solutions, Inc. Fax: (617) 232-1064   
 mailto:cjmillerinformed-solutions.com 
 Brookline, MA 02446 USA Registered 4D Developer
   Providers of 4D and Sybase connectivity
  http://www.informed-solutions.com  

This message and any attached documents contain information which may be 
confidential, subject to privilege or exempt from disclosure under applicable 
law.  These materials are intended only for the use of the intended recipient. 
If you are not the intended recipient of this transmission, you are hereby 
notified that any distribution, disclosure, printing, copying, storage, 
modification or the taking of any action in reliance upon this transmission is 
strictly prohibited.  Delivery of this message to any person other than the 
intended recipient shall not compromise or waive such confidentiality, 
privilege or exemption from disclosure as to this communication. 

> On Mar 18, 2020, at 3:45 PM, Jody Bevan via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Is there a problem with using a font? Just asking as that is what I am doing. 
> Seems to work great.
> The font is free, so cost is not an issue.
> 
> Thanks
> 
> Jody

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: barcode

2020-03-18 Thread Jody Bevan via 4D_Tech
Is there a problem with using a font? Just asking as that is what I am doing. 
Seems to work great.
The font is free, so cost is not an issue.

Thanks

Jody


> On Mar 18, 2020, at 4:53 AM, stardata.info via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> Someone know how print bar codes in 4D?
> Now i use a font.
> 
> Thanks
> 
> /Ferdinando/
> 

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: barcode

2020-03-18 Thread Stephen J. Orth via 4D_Tech
I would also highly recommend hmBarcode...


Steve

-Original Message-
From: 4D_Tech <4d_tech-boun...@lists.4d.com> On Behalf Of kculotta via 4D_Tech
Sent: Wednesday, March 18, 2020 9:12 AM
To: 4D iNug Technical <4d_tech@lists.4d.com>
Cc: kculotta 
Subject: Re: barcode

This is a good place to look: 
https://github.com/miyako?tab=repositories=zint==

> On Mar 18, 2020, at 5:53 AM, stardata.info via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> Someone know how print bar codes in 4D?
> Now i use a font.
> 
> Thanks
> 
> /Ferdinando/

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: barcode

2020-03-18 Thread kculotta via 4D_Tech
This is a good place to look: 
https://github.com/miyako?tab=repositories=zint==

> On Mar 18, 2020, at 5:53 AM, stardata.info via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> Someone know how print bar codes in 4D?
> Now i use a font.
> 
> Thanks
> 
> /Ferdinando/

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Barcode Data Entry - Cool New Solution

2019-08-30 Thread JasonH via 4D_Tech
Thanks for posting this.  Very timely as I need something like this for a
current project!



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**