Using OCX to print barcodes in Navision (report)
mcaverly
Member Posts: 26
Could we use any OCXs to print barcode(s) in Navision (report)?
TIA
TIA
0
Comments
-
check the download section.
Also you can use a font to print 3of9 or code128 barcode.
Also for this there are examples in the forum.viewtopic.php?f=23&t=26270
Or you create a bitmap viewtopic.php?t=1789&postdays=0&postorder=asc&start=0Do you make it right, it works too!0 -
Thanks. I will try your leads.0
-
garak wrote:check the download section.
Also you can use a font to print 3of9 or code128 barcode.
Also for this there are examples in the forum.viewtopic.php?f=23&t=26270
==========================================
We have to use UCC EAN 128 compliance font.
Do you have any suggestion? Does Microsoft/NAV offer any downloaded font(s)?
TIA0 -
using the generaor would be something like this
Using the Item Table as an example we are going to create a EAN128 barcode of the DESCRIPTION.OnAfterGetRecord() IF Item.Description <> '' THEN BEGIN CreateBarcode:= SHELL(STRSUBSTNO('%1%2%3%4%5%6', 'c:\Navibar.exe', // Program ' ' + Item.Description+'{', // code to generate '15'+'{', // barcodetype '500'+'{', // width in pixel '50'+'{', // high in pixel 'c:\temp\createdbarcode.bmp')); // destination for the .bmp-file Picture.IMPORT('c:\temp\createdbarcode.bmp'); END;
You need to create a c:\temp directory
You need to download Navibar.exe and put it c: (for this example)
CreateBarcode is a variable type Integer
In the report view->sections & add a picturebox with sourceexp = Picture
that's it.
the other Barcode types are: (i'm using 15 for this example)
00-ISBN
01-EAN 13
02-EAN 8
03-EAN 5
04-EAN 2
05-UPC A
06-Code 39
07-Code 25 interleaved
08-CodeBar
09-Code 25
10-Code 39 Extended
11-Code 128 A
12-Code 128 B
13-Code 128 C
14-Code 128
15-EAN 128
16-EAN 99
17-UPC E
18-PostNet
19-Royal Mail
20-MSI
21-Code 93
22-Code 93 Extended
23-PZN
99-None
The download does mention an OCX - but i didn't use that0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions