cannot Print barcode in report

moff2
Member Posts: 9
hi all,
I've created 1 report to show barcode in invoice
in development server is correct
what I've done is just install barcode font in development server (nav and db server in the same server)
I save my invoice as pdf
********************************
CLEAR(SalesInvoiceSecDepReport);
SalesInvoiceSecDepReport.SETTABLEVIEW(SIH);
ReturnValue := SalesInvoiceSecDepReport.SAVEASPDF(FileFolder+FileName);
********************************
this one is successful
but even using the same object in production server, install barcode font
if I do the same steps... it will not produce pdf file with barcode font
notes : if i preview from the server, it will show with barcode
did i miss something?
I've created 1 report to show barcode in invoice
in development server is correct
what I've done is just install barcode font in development server (nav and db server in the same server)
I save my invoice as pdf
********************************
CLEAR(SalesInvoiceSecDepReport);
SalesInvoiceSecDepReport.SETTABLEVIEW(SIH);
ReturnValue := SalesInvoiceSecDepReport.SAVEASPDF(FileFolder+FileName);
********************************
this one is successful
but even using the same object in production server, install barcode font
if I do the same steps... it will not produce pdf file with barcode font
notes : if i preview from the server, it will show with barcode
did i miss something?
0
Comments
-
Hello,
You need to embed the barcode font in your PDF. If you don't, the PDF will not display the barcode on a machine without the font. See this for yourself: Save a PDF with barcode on your development machine. Email this PDF to someone without this font and open the PDF. You will not see the barcode. So even if you install the font on the production server, the PDF is not ready to be sent to someone else. Therefore, you need te embed the font somehow. I have not done this before in NAV, so I can't tell you how.0 -
Marijn wrote:Hello,
You need to embed the barcode font in your PDF. If you don't, the PDF will not display the barcode on a machine without the font. See this for yourself: Save a PDF with barcode on your development machine. Email this PDF to someone without this font and open the PDF. You will not see the barcode. So even if you install the font on the production server, the PDF is not ready to be sent to someone else. Therefore, you need te embed the font somehow. I have not done this before in NAV, so I can't tell you how.
Hi Marijn,
what do you mean by embed?
because from apps server.. if i preview and then print manually
it will show as barcode
but is using mycode saveaspdf it wont0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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